diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 3bcea265..f6f1f667 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -302,7 +302,7 @@ PODS: - React-jsinspector (0.70.6) - React-logger (0.70.6): - glog - - react-native-ldk (0.0.111): + - react-native-ldk (0.0.113): - React - react-native-randombytes (3.6.1): - React-Core @@ -593,7 +593,7 @@ SPEC CHECKSUMS: React-jsiexecutor: b4a65947391c658450151275aa406f2b8263178f React-jsinspector: 60769e5a0a6d4b32294a2456077f59d0266f9a8b React-logger: 1623c216abaa88974afce404dc8f479406bbc3a0 - react-native-ldk: 20bafd3ad8ea69c33841d7b4895379b6eb8cf9f6 + react-native-ldk: dd463969f46a47599bd622fc02a67d878f13abe5 react-native-randombytes: 421f1c7d48c0af8dbcd471b0324393ebf8fe7846 react-native-tcp-socket: c1b7297619616b4c9caae6889bcb0aba78086989 React-perflogger: 8c79399b0500a30ee8152d0f9f11beae7fc36595 diff --git a/lib/android/libs/LDK-release.aar b/lib/android/libs/LDK-release.aar index f086d1ec..70c2e616 100644 Binary files a/lib/android/libs/LDK-release.aar and b/lib/android/libs/LDK-release.aar differ diff --git a/lib/android/libs/ldk-java-javadoc.jar b/lib/android/libs/ldk-java-javadoc.jar index 9a11d64f..4e75511d 100644 Binary files a/lib/android/libs/ldk-java-javadoc.jar and b/lib/android/libs/ldk-java-javadoc.jar differ diff --git a/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt b/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt index 51d86b59..592c8870 100644 --- a/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt +++ b/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt @@ -9,16 +9,13 @@ import org.ldk.batteries.NioPeerHandler import org.ldk.enums.Currency import org.ldk.enums.Network import org.ldk.enums.Recipient -import org.ldk.impl.bindings.LDKDestination.Node import org.ldk.impl.bindings.get_ldk_c_bindings_version import org.ldk.impl.bindings.get_ldk_version import org.ldk.structs.* import org.ldk.structs.Result_Bolt11InvoiceParseOrSemanticErrorZ.Result_Bolt11InvoiceParseOrSemanticErrorZ_OK import org.ldk.structs.Result_Bolt11InvoiceSignOrCreationErrorZ.Result_Bolt11InvoiceSignOrCreationErrorZ_OK -import org.ldk.structs.Result_PaymentIdPaymentErrorZ.Result_PaymentIdPaymentErrorZ_OK -import org.ldk.structs.Result_PublicKeyErrorZ.Result_PublicKeyErrorZ_OK import org.ldk.structs.Result_PublicKeyNoneZ.Result_PublicKeyNoneZ_OK -import org.ldk.structs.Result_StringErrorZ.Result_StringErrorZ_OK +import org.ldk.structs.Result_StrSecp256k1ErrorZ.Result_StrSecp256k1ErrorZ_OK import org.ldk.util.UInt128 import java.io.File import java.net.InetSocketAddress @@ -685,7 +682,7 @@ class LdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMod ldkOutputs.toTypedArray(), changeDestinationScript.hexa(), feeRate.toInt(), - Option_PackedLockTimeZ.none() + Option_u32Z.none() ) if (!res.is_ok) { @@ -735,7 +732,7 @@ class LdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMod UtilMethods.pay_invoice(invoice, Retry.timeout(timeoutSeconds.toLong()), channelManager) if (res.is_ok) { channelManagerPersister.persistPaymentSent(hashMapOf( - "payment_id" to (res as Result_PaymentIdPaymentErrorZ_OK).res.hexEncodedString(), + "payment_id" to (res as Result_ThirtyTwoBytesPaymentErrorZ.Result_ThirtyTwoBytesPaymentErrorZ_OK).res.hexEncodedString(), "payment_hash" to invoice.payment_hash().hexEncodedString(), "amount_sat" to if (isZeroValueInvoice) amountSats.toLong() else ((invoice.amount_milli_satoshis() as Option_u64Z.Some).some.toInt() / 1000), "unix_timestamp" to (System.currentTimeMillis() / 1000).toInt(), @@ -745,7 +742,7 @@ class LdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMod return handleResolve(promise, LdkCallbackResponses.invoice_payment_success) } - val error = res as? Result_PaymentIdPaymentErrorZ.Result_PaymentIdPaymentErrorZ_Err + val error = res as? Result_ThirtyTwoBytesPaymentErrorZ.Result_ThirtyTwoBytesPaymentErrorZ_Err val invoiceError = error?.err as? PaymentError.Invoice if (invoiceError != null) { @@ -1056,7 +1053,7 @@ class LdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMod emptyArray(), changeDestinationScript.hexa(), feeRate.toInt(), - Option_PackedLockTimeZ.none() + Option_u32Z.none() ) if (!res.is_ok) { @@ -1076,7 +1073,7 @@ class LdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMod return handleReject(promise, LdkErrors.failed_signing_request) } - promise.resolve((res as Result_StringErrorZ_OK).res) + promise.resolve((res as Result_StrSecp256k1ErrorZ_OK).res) } @ReactMethod diff --git a/lib/android/src/main/java/com/reactnativeldk/classes/BackupClient.kt b/lib/android/src/main/java/com/reactnativeldk/classes/BackupClient.kt index 155c16af..93c9468c 100644 --- a/lib/android/src/main/java/com/reactnativeldk/classes/BackupClient.kt +++ b/lib/android/src/main/java/com/reactnativeldk/classes/BackupClient.kt @@ -6,7 +6,7 @@ import com.reactnativeldk.handleReject import com.reactnativeldk.hexEncodedString import com.reactnativeldk.hexa import org.json.JSONObject -import org.ldk.structs.Result_StringErrorZ.Result_StringErrorZ_OK +import org.ldk.structs.Result_StrSecp256k1ErrorZ.Result_StrSecp256k1ErrorZ_OK import org.ldk.structs.UtilMethods import java.net.HttpURLConnection import java.net.URL @@ -370,7 +370,7 @@ class BackupClient { throw BackupError.signingError } - return (res as Result_StringErrorZ_OK).res + return (res as Result_StrSecp256k1ErrorZ_OK).res } private fun verifySignature(message: String, signature: String, pubKey: String): Boolean { diff --git a/lib/android/src/main/java/com/reactnativeldk/classes/LdkChannelManagerPersister.kt b/lib/android/src/main/java/com/reactnativeldk/classes/LdkChannelManagerPersister.kt index dd2a890f..a8be925c 100644 --- a/lib/android/src/main/java/com/reactnativeldk/classes/LdkChannelManagerPersister.kt +++ b/lib/android/src/main/java/com/reactnativeldk/classes/LdkChannelManagerPersister.kt @@ -6,9 +6,7 @@ import com.reactnativeldk.* import org.json.JSONArray import org.ldk.batteries.ChannelManagerConstructor import org.ldk.structs.Event -import org.ldk.structs.Option_PaymentHashZ -import org.ldk.structs.Option_PaymentIdZ -import org.ldk.structs.Option_PaymentPreimageZ +import org.ldk.structs.Option_ThirtyTwoBytesZ import org.ldk.structs.Option_u64Z import org.ldk.structs.PaymentPurpose import java.io.File @@ -29,7 +27,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler { body.putHexString("payment_hash", paymentClaimable.payment_hash) body.putInt("amount_sat", paymentClaimable.amount_msat.toInt() / 1000) (paymentClaimable.purpose as? PaymentPurpose.InvoicePayment)?.let { - body.putHexString("payment_preimage", (it.payment_preimage as Option_PaymentPreimageZ.Some).some) + body.putHexString("payment_preimage", (it.payment_preimage as Option_ThirtyTwoBytesZ.Some).some) body.putHexString("payment_secret", it.payment_secret) } (paymentClaimable.purpose as? PaymentPurpose.SpontaneousPayment)?.let { @@ -44,7 +42,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler { (event as? Event.PaymentSent)?.let { paymentSent -> val body = Arguments.createMap() - body.putHexString("payment_id", (paymentSent.payment_id as Option_PaymentIdZ.Some).some) + body.putHexString("payment_id", (paymentSent.payment_id as Option_ThirtyTwoBytesZ.Some).some) body.putHexString("payment_preimage", paymentSent.payment_preimage) body.putHexString("payment_hash", paymentSent.payment_hash) body.putInt("fee_paid_sat", (paymentSent.fee_paid_msat as Option_u64Z.Some).some.toInt() / 1000) @@ -73,7 +71,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler { val body = Arguments.createMap() body.putHexString("payment_id", paymentPathSuccessful.payment_id) - body.putHexString("payment_hash", (paymentPathSuccessful.payment_hash as Option_PaymentHashZ.Some).some) + body.putHexString("payment_hash", (paymentPathSuccessful.payment_hash as Option_ThirtyTwoBytesZ.Some).some) val pathHops = Arguments.createArray() println(paymentPathSuccessful.path) @@ -84,7 +82,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler { (event as? Event.PaymentPathFailed)?.let { paymentPathFailed -> val body = Arguments.createMap() - body.putHexString("payment_id", (paymentPathFailed.payment_id as Option_PaymentIdZ.Some).some) + body.putHexString("payment_id", (paymentPathFailed.payment_id as Option_ThirtyTwoBytesZ.Some).some) body.putHexString("payment_hash", paymentPathFailed.payment_hash) body.putBoolean("payment_failed_permanently", paymentPathFailed.payment_failed_permanently) body.putInt("short_channel_id", (paymentPathFailed.short_channel_id as Option_u64Z.Some).some.toInt()) @@ -94,7 +92,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler { if (paymentPathFailed.payment_id != null) { persistPaymentSent(hashMapOf( - "payment_id" to (paymentPathFailed.payment_id!! as Option_PaymentIdZ.Some).some.hexEncodedString(), + "payment_id" to (paymentPathFailed.payment_id!! as Option_ThirtyTwoBytesZ.Some).some.hexEncodedString(), "payment_hash" to paymentPathFailed.payment_hash.hexEncodedString(), "unix_timestamp" to (System.currentTimeMillis() / 1000).toInt(), "state" to if (paymentPathFailed.payment_failed_permanently) "failed" else "pending" @@ -159,7 +157,7 @@ class LdkChannelManagerPersister: ChannelManagerConstructor.EventHandler { body.putHexString("payment_hash", paymentClaimed.payment_hash) body.putInt("amount_sat", paymentClaimed.amount_msat.toInt() / 1000) (paymentClaimed.purpose as? PaymentPurpose.InvoicePayment)?.let { - body.putHexString("payment_preimage", (it.payment_preimage as Option_PaymentPreimageZ.Some).some) + body.putHexString("payment_preimage", (it.payment_preimage as Option_ThirtyTwoBytesZ.Some).some) body.putHexString("payment_secret", it.payment_secret) } (paymentClaimed.purpose as? PaymentPurpose.SpontaneousPayment)?.let { diff --git a/lib/android/src/main/java/com/reactnativeldk/classes/LdkFilter.kt b/lib/android/src/main/java/com/reactnativeldk/classes/LdkFilter.kt index 51364809..a84724d6 100644 --- a/lib/android/src/main/java/com/reactnativeldk/classes/LdkFilter.kt +++ b/lib/android/src/main/java/com/reactnativeldk/classes/LdkFilter.kt @@ -7,7 +7,7 @@ import com.reactnativeldk.hexEncodedString import com.reactnativeldk.putHexString import org.ldk.structs.Filter import org.ldk.structs.Filter.FilterInterface -import org.ldk.structs.Option_BlockHashZ +import org.ldk.structs.Option_ThirtyTwoBytesZ import org.ldk.structs.WatchedOutput class LdkFilter { @@ -21,8 +21,8 @@ class LdkFilter { override fun register_output(output: WatchedOutput) { val body = Arguments.createMap() - if (output._block_hash is Option_BlockHashZ.Some) { - body.putHexString("block_hash", (output._block_hash as Option_BlockHashZ.Some).some) + if (output._block_hash is Option_ThirtyTwoBytesZ.Some) { + body.putHexString("block_hash", (output._block_hash as Option_ThirtyTwoBytesZ.Some).some) } body.putInt("index", output._outpoint._index.toInt()) body.putString("script_pubkey", output._script_pubkey.hexEncodedString()) diff --git a/lib/android/src/main/java/com/reactnativeldk/classes/LdkPersister.kt b/lib/android/src/main/java/com/reactnativeldk/classes/LdkPersister.kt index 40bc7841..30e1edbe 100644 --- a/lib/android/src/main/java/com/reactnativeldk/classes/LdkPersister.kt +++ b/lib/android/src/main/java/com/reactnativeldk/classes/LdkPersister.kt @@ -37,7 +37,7 @@ class LdkPersister { return ChannelMonitorUpdateStatus.LDKChannelMonitorUpdateStatus_Completed } catch (e: Exception) { LdkEventEmitter.send(EventTypes.emergency_force_close_channel, body) - return ChannelMonitorUpdateStatus.LDKChannelMonitorUpdateStatus_PermanentFailure + return ChannelMonitorUpdateStatus.LDKChannelMonitorUpdateStatus_UnrecoverableError } } diff --git a/lib/ios/Classes/LdkChannelManagerPersister.swift b/lib/ios/Classes/LdkChannelManagerPersister.swift index 3f41ec29..a19a1502 100644 --- a/lib/ios/Classes/LdkChannelManagerPersister.swift +++ b/lib/ios/Classes/LdkChannelManagerPersister.swift @@ -261,9 +261,9 @@ class LdkChannelManagerPersister: Persister, ExtendedChannelManagerPersister { } } - override func persistManager(channelManager: ChannelManager) -> Result_NoneErrorZ { + override func persistManager(channelManager: Bindings.ChannelManager) -> Bindings.Result_NoneIOErrorZ { guard let managerStorage = Ldk.accountStoragePath?.appendingPathComponent(LdkFileNames.channel_manager.rawValue) else { - return Result_NoneErrorZ.initWithErr(e: .Other) + return Result_NoneIOErrorZ.initWithErr(e: .Other) } do { @@ -274,44 +274,44 @@ class LdkChannelManagerPersister: Persister, ExtendedChannelManagerPersister { LdkEventEmitter.shared.send(withEvent: .backup, body: "") - return Result_NoneErrorZ.initWithOk() + return Result_NoneIOErrorZ.initWithOk() } catch { LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist channel manager to disk Error \(error.localizedDescription).") - return Result_NoneErrorZ.initWithErr(e: .Other) + return Result_NoneIOErrorZ.initWithErr(e: .Other) } } - override func persistGraph(networkGraph: NetworkGraph) -> Result_NoneErrorZ { + override func persistGraph(networkGraph: Bindings.NetworkGraph) -> Bindings.Result_NoneIOErrorZ { guard let graphStorage = Ldk.accountStoragePath?.appendingPathComponent(LdkFileNames.network_graph.rawValue) else { - return Result_NoneErrorZ.initWithErr(e: .Other) + return Result_NoneIOErrorZ.initWithErr(e: .Other) } do { try Data(networkGraph.write()).write(to: graphStorage) LdkEventEmitter.shared.send(withEvent: .native_log, body: "Persisted network graph to disk") - return Result_NoneErrorZ.initWithOk() + return Result_NoneIOErrorZ.initWithOk() } catch { LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist network graph to disk Error \(error.localizedDescription).") - return Result_NoneErrorZ.initWithErr(e: .Other) + return Result_NoneIOErrorZ.initWithErr(e: .Other) } } - override func persistScorer(scorer: WriteableScore) -> Bindings.Result_NoneErrorZ { + override func persistScorer(scorer: Bindings.WriteableScore) -> Bindings.Result_NoneIOErrorZ { guard let scorerStorage = Ldk.accountStoragePath?.appendingPathComponent(LdkFileNames.scorer.rawValue) else { - return Result_NoneErrorZ.initWithErr(e: .Other) + return Result_NoneIOErrorZ.initWithErr(e: .Other) } do { try Data(scorer.write()).write(to: scorerStorage) - return Result_NoneErrorZ.initWithOk() + return Result_NoneIOErrorZ.initWithOk() } catch { LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist scorer to disk Error \(error.localizedDescription).") - return Result_NoneErrorZ.initWithErr(e: .Other) + return Result_NoneIOErrorZ.initWithErr(e: .Other) } } - + /// Saves claiming/claimed payment to disk. If payment hash exists already then the payment values are merged into the existing entry as an update /// - Parameter payment: payment obj private func persistPaymentClaimed(_ payment: [String: Any]) { diff --git a/lib/ios/Classes/LdkPersist.swift b/lib/ios/Classes/LdkPersist.swift index 3576da99..2c97691e 100644 --- a/lib/ios/Classes/LdkPersist.swift +++ b/lib/ios/Classes/LdkPersist.swift @@ -40,7 +40,7 @@ class LdkPersister: Persist { return ChannelMonitorUpdateStatus.Completed } catch { LdkEventEmitter.shared.send(withEvent: .native_log, body: "Error. Failed to persist channel (\(channelId)) to disk Error \(error.localizedDescription).") - return ChannelMonitorUpdateStatus.PermanentFailure + return ChannelMonitorUpdateStatus.UnrecoverableError } } diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_rust_types.h b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_rust_types.h index 5e75a71c..a8f431a8 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_rust_types.h +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_rust_types.h @@ -57,8 +57,10 @@ struct nativeRouteHintHopOpaque; typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop; struct nativeMultiThreadedLockableScoreOpaque; typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore; -struct nativeMultiThreadedScoreLockOpaque; -typedef struct nativeMultiThreadedScoreLockOpaque LDKnativeMultiThreadedScoreLock; +struct nativeMultiThreadedScoreLockReadOpaque; +typedef struct nativeMultiThreadedScoreLockReadOpaque LDKnativeMultiThreadedScoreLockRead; +struct nativeMultiThreadedScoreLockWriteOpaque; +typedef struct nativeMultiThreadedScoreLockWriteOpaque LDKnativeMultiThreadedScoreLockWrite; struct nativeChannelUsageOpaque; typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage; struct nativeFixedPenaltyScorerOpaque; @@ -159,6 +161,8 @@ struct nativeChannelConfigUpdateOpaque; typedef struct nativeChannelConfigUpdateOpaque LDKnativeChannelConfigUpdate; struct nativeUserConfigOpaque; typedef struct nativeUserConfigOpaque LDKnativeUserConfig; +struct nativeTaggedHashOpaque; +typedef struct nativeTaggedHashOpaque LDKnativeTaggedHash; struct nativeChannelMonitorUpdateOpaque; typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate; struct nativeHTLCUpdateOpaque; @@ -179,10 +183,14 @@ struct nativePeerManagerOpaque; typedef struct nativePeerManagerOpaque LDKnativePeerManager; struct nativeRapidGossipSyncOpaque; typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync; +struct nativeMonitorUpdatingPersisterOpaque; +typedef struct nativeMonitorUpdatingPersisterOpaque LDKnativeMonitorUpdatingPersister; struct nativeUnsignedInvoiceRequestOpaque; typedef struct nativeUnsignedInvoiceRequestOpaque LDKnativeUnsignedInvoiceRequest; struct nativeInvoiceRequestOpaque; typedef struct nativeInvoiceRequestOpaque LDKnativeInvoiceRequest; +struct nativeVerifiedInvoiceRequestOpaque; +typedef struct nativeVerifiedInvoiceRequestOpaque LDKnativeVerifiedInvoiceRequest; struct nativeInitOpaque; typedef struct nativeInitOpaque LDKnativeInit; struct nativeErrorMessageOpaque; @@ -315,8 +323,10 @@ struct nativeInvalidShutdownScriptOpaque; typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript; struct nativeBolt12ParseErrorOpaque; typedef struct nativeBolt12ParseErrorOpaque LDKnativeBolt12ParseError; -struct nativeFilesystemPersisterOpaque; -typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister; +struct nativePacketOpaque; +typedef struct nativePacketOpaque LDKnativePacket; +struct nativeClaimedHTLCOpaque; +typedef struct nativeClaimedHTLCOpaque LDKnativeClaimedHTLC; struct nativeBolt11InvoiceOpaque; typedef struct nativeBolt11InvoiceOpaque LDKnativeBolt11Invoice; struct nativeSignedRawBolt11InvoiceOpaque; @@ -353,6 +363,16 @@ struct nativeUntrustedStringOpaque; typedef struct nativeUntrustedStringOpaque LDKnativeUntrustedString; struct nativePrintableStringOpaque; typedef struct nativePrintableStringOpaque LDKnativePrintableString; +struct nativeForwardNodeOpaque; +typedef struct nativeForwardNodeOpaque LDKnativeForwardNode; +struct nativeForwardTlvsOpaque; +typedef struct nativeForwardTlvsOpaque LDKnativeForwardTlvs; +struct nativeReceiveTlvsOpaque; +typedef struct nativeReceiveTlvsOpaque LDKnativeReceiveTlvs; +struct nativePaymentRelayOpaque; +typedef struct nativePaymentRelayOpaque LDKnativePaymentRelay; +struct nativePaymentConstraintsOpaque; +typedef struct nativePaymentConstraintsOpaque LDKnativePaymentConstraints; struct nativeUtxoFutureOpaque; typedef struct nativeUtxoFutureOpaque LDKnativeUtxoFuture; struct nativeOnionMessengerOpaque; @@ -361,6 +381,8 @@ struct nativeDefaultMessageRouterOpaque; typedef struct nativeDefaultMessageRouterOpaque LDKnativeDefaultMessageRouter; struct nativeOnionMessagePathOpaque; typedef struct nativeOnionMessagePathOpaque LDKnativeOnionMessagePath; +struct nativeFilesystemStoreOpaque; +typedef struct nativeFilesystemStoreOpaque LDKnativeFilesystemStore; struct nativeBlindedPathOpaque; typedef struct nativeBlindedPathOpaque LDKnativeBlindedPath; struct nativeBlindedHopOpaque; diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_ver.h b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_ver.h index f1b62b3c..32eaa4c0 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_ver.h +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/ldk_ver.h @@ -8,8 +8,8 @@ static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) { return 0; } -#define _LDK_HEADER_VER "v0.0.116-18-g42de5b818613b331" -#define _LDK_C_BINDINGS_HEADER_VER "v0.0.116.0" +#define _LDK_HEADER_VER "v0.0.117-rc1-44-g4b81eb2c308e657b" +#define _LDK_C_BINDINGS_HEADER_VER "v0.0.117.0" static inline const char* check_get_ldk_version() { LDKStr bin_ver = _ldk_get_compiled_version(); if (_ldk_strncmp(_LDK_HEADER_VER, (const char*)bin_ver.chars, bin_ver.len) != 0) { diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/lightning.h b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/lightning.h index 8dbf7732..7c9183c3 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/lightning.h +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Headers/lightning.h @@ -196,6 +196,25 @@ typedef enum LDKCOption_NoneZ { /** * An enum representing the status of a channel monitor update persistence. + * + * These are generally used as the return value for an implementation of [`Persist`] which is used + * as the storage layer for a [`ChainMonitor`]. See the docs on [`Persist`] for a high-level + * explanation of how to handle different cases. + * + * While `UnrecoverableError` is provided as a failure variant, it is not truly \"handled\" on the + * calling side, and generally results in an immediate panic. For those who prefer to avoid + * panics, `InProgress` can be used and you can retry the update operation in the background or + * shut down cleanly. + * + * Note that channels should generally *not* be force-closed after a persistence failure. + * Force-closing with the latest [`ChannelMonitorUpdate`] applied may result in a transaction + * being broadcast which can only be spent by the latest [`ChannelMonitor`]! Thus, if the + * latest [`ChannelMonitor`] is not durably persisted anywhere and exists only in memory, naively + * calling [`ChannelManager::force_close_broadcasting_latest_txn`] *may result in loss of funds*! + * + * [`Persist`]: chainmonitor::Persist + * [`ChainMonitor`]: chainmonitor::ChainMonitor + * [`ChannelManager::force_close_broadcasting_latest_txn`]: crate::ln::channelmanager::ChannelManager::force_close_broadcasting_latest_txn */ typedef enum LDKChannelMonitorUpdateStatus { /** @@ -207,17 +226,13 @@ typedef enum LDKChannelMonitorUpdateStatus { */ LDKChannelMonitorUpdateStatus_Completed, /** - * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of - * our state failed, but is expected to succeed at some point in the future). - * - * Such a failure will \"freeze\" a channel, preventing us from revoking old states or - * submitting new commitment transactions to the counterparty. Once the update(s) which failed - * have been successfully applied, a [`MonitorEvent::Completed`] can be used to restore the - * channel to an operational state. + * Indicates that the update will happen asynchronously in the background or that a transient + * failure occurred which is being retried in the background and will eventually complete. * - * Note that a given [`ChannelManager`] will *never* re-generate a [`ChannelMonitorUpdate`]. - * If you return this error you must ensure that it is written to disk safely before writing - * the latest [`ChannelManager`] state, or you should return [`PermanentFailure`] instead. + * This will \"freeze\" a channel, preventing us from revoking old states or submitting a new + * commitment transaction to the counterparty. Once the update(s) which are `InProgress` have + * been completed, a [`MonitorEvent::Completed`] can be used to restore the channel to an + * operational state. * * Even when a channel has been \"frozen\", updates to the [`ChannelMonitor`] can continue to * occur (e.g. if an inbound HTLC which we forwarded was claimed upstream, resulting in us @@ -227,56 +242,31 @@ typedef enum LDKChannelMonitorUpdateStatus { * until a [`MonitorEvent::Completed`] is provided, even if you return no error on a later * monitor update for the same channel. * - * For deployments where a copy of ChannelMonitors and other local state are backed up in a - * remote location (with local copies persisted immediately), it is anticipated that all + * For deployments where a copy of [`ChannelMonitor`]s and other local state are backed up in + * a remote location (with local copies persisted immediately), it is anticipated that all * updates will return [`InProgress`] until the remote copies could be updated. * - * [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure + * Note that while fully asynchronous persistence of [`ChannelMonitor`] data is generally + * reliable, this feature is considered beta, and a handful of edge-cases remain. Until the + * remaining cases are fixed, in rare cases, *using this feature may lead to funds loss*. + * * [`InProgress`]: ChannelMonitorUpdateStatus::InProgress - * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ LDKChannelMonitorUpdateStatus_InProgress, /** - * Used to indicate no further channel monitor updates will be allowed (likely a disk failure - * or a remote copy of this [`ChannelMonitor`] is no longer reachable and thus not updatable). - * - * When this is returned, [`ChannelManager`] will force-close the channel but *not* broadcast - * our current commitment transaction. This avoids a dangerous case where a local disk failure - * (e.g. the Linux-default remounting of the disk as read-only) causes [`PermanentFailure`]s - * for all monitor updates. If we were to broadcast our latest commitment transaction and then - * restart, we could end up reading a previous [`ChannelMonitor`] and [`ChannelManager`], - * revoking our now-broadcasted state before seeing it confirm and losing all our funds. - * - * Note that this is somewhat of a tradeoff - if the disk is really gone and we may have lost - * the data permanently, we really should broadcast immediately. If the data can be recovered - * with manual intervention, we'd rather close the channel, rejecting future updates to it, - * and broadcast the latest state only if we have HTLCs to claim which are timing out (which - * we do as long as blocks are connected). - * - * In order to broadcast the latest local commitment transaction, you'll need to call - * [`ChannelMonitor::get_latest_holder_commitment_txn`] and broadcast the resulting - * transactions once you've safely ensured no further channel updates can be generated by your - * [`ChannelManager`]. - * - * Note that at least one final [`ChannelMonitorUpdate`] may still be provided, which must - * still be processed by a running [`ChannelMonitor`]. This final update will mark the - * [`ChannelMonitor`] as finalized, ensuring no further updates (e.g. revocation of the latest - * commitment transaction) are allowed. - * - * Note that even if you return a [`PermanentFailure`] due to unavailability of secondary - * [`ChannelMonitor`] copies, you should still make an attempt to store the update where - * possible to ensure you can claim HTLC outputs on the latest commitment transaction - * broadcasted later. - * - * In case of distributed watchtowers deployment, the new version must be written to disk, as - * state may have been stored but rejected due to a block forcing a commitment broadcast. This - * storage is used to claim outputs of rejected state confirmed onchain by another watchtower, - * lagging behind on block processing. - * - * [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure - * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager + * Indicates that an update has failed and will not complete at any point in the future. + * + * Currently returning this variant will cause LDK to immediately panic to encourage immediate + * shutdown. In the future this may be updated to disconnect peers and refuse to continue + * normal operation without a panic. + * + * Applications which wish to perform an orderly shutdown after failure should consider + * returning [`InProgress`] instead and simply shut down without ever marking the update + * complete. + * + * [`InProgress`]: ChannelMonitorUpdateStatus::InProgress */ - LDKChannelMonitorUpdateStatus_PermanentFailure, + LDKChannelMonitorUpdateStatus_UnrecoverableError, /** * Must be last for serialization purposes */ @@ -423,36 +413,6 @@ typedef enum LDKCurrency { LDKCurrency_Sentinel, } LDKCurrency; -/** - * This enum is used to specify which error data to send to peers when failing back an HTLC - * using [`ChannelManager::fail_htlc_backwards_with_reason`]. - * - * For more info on failure codes, see . - */ -typedef enum LDKFailureCode { - /** - * We had a temporary error processing the payment. Useful if no other error codes fit - * and you want to indicate that the payer may want to retry. - */ - LDKFailureCode_TemporaryNodeFailure, - /** - * We have a required feature which was not in this onion. For example, you may require - * some additional metadata that was not provided with this payment. - */ - LDKFailureCode_RequiredNodeFeatureMissing, - /** - * You may wish to use this when a `payment_preimage` is unknown, or the CLTV expiry of - * the HTLC is too close to the current block height for safe handling. - * Using this failure code in [`ChannelManager::fail_htlc_backwards_with_reason`] is - * equivalent to calling [`ChannelManager::fail_htlc_backwards`]. - */ - LDKFailureCode_IncorrectOrUnknownPaymentDetails, - /** - * Must be last for serialization purposes - */ - LDKFailureCode_Sentinel, -} LDKFailureCode; - /** * Describes the type of HTLC claim as determined by analyzing the witness. */ @@ -755,6 +715,32 @@ typedef enum LDKSiPrefix { LDKSiPrefix_Sentinel, } LDKSiPrefix; +/** + * [`SocketAddress`] error variants + */ +typedef enum LDKSocketAddressParseError { + /** + * Socket address (IPv4/IPv6) parsing error + */ + LDKSocketAddressParseError_SocketAddrParse, + /** + * Invalid input format + */ + LDKSocketAddressParseError_InvalidInput, + /** + * Invalid port + */ + LDKSocketAddressParseError_InvalidPort, + /** + * Invalid onion v3 address + */ + LDKSocketAddressParseError_InvalidOnionV3, + /** + * Must be last for serialization purposes + */ + LDKSocketAddressParseError_Sentinel, +} LDKSocketAddressParseError; + /** * An error when accessing the chain via [`UtxoLookup`]. */ @@ -1002,29 +988,29 @@ typedef struct LDKTxOut { /** * An enum which can either contain a u64 or not */ -typedef enum LDKCOption_DurationZ_Tag { +typedef enum LDKCOption_u64Z_Tag { /** - * When we're in this state, this COption_DurationZ contains a u64 + * When we're in this state, this COption_u64Z contains a u64 */ - LDKCOption_DurationZ_Some, + LDKCOption_u64Z_Some, /** - * When we're in this state, this COption_DurationZ contains nothing + * When we're in this state, this COption_u64Z contains nothing */ - LDKCOption_DurationZ_None, + LDKCOption_u64Z_None, /** * Must be last for serialization purposes */ - LDKCOption_DurationZ_Sentinel, -} LDKCOption_DurationZ_Tag; + LDKCOption_u64Z_Sentinel, +} LDKCOption_u64Z_Tag; -typedef struct LDKCOption_DurationZ { - LDKCOption_DurationZ_Tag tag; +typedef struct LDKCOption_u64Z { + LDKCOption_u64Z_Tag tag; union { struct { uint64_t some; }; }; -} LDKCOption_DurationZ; +} LDKCOption_u64Z; @@ -1063,33 +1049,6 @@ typedef struct LDKCVec_BlindedPathZ { uintptr_t datalen; } LDKCVec_BlindedPathZ; -/** - * An enum which can either contain a u64 or not - */ -typedef enum LDKCOption_u64Z_Tag { - /** - * When we're in this state, this COption_u64Z contains a u64 - */ - LDKCOption_u64Z_Some, - /** - * When we're in this state, this COption_u64Z contains nothing - */ - LDKCOption_u64Z_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_u64Z_Sentinel, -} LDKCOption_u64Z_Tag; - -typedef struct LDKCOption_u64Z { - LDKCOption_u64Z_Tag tag; - union { - struct { - uint64_t some; - }; - }; -} LDKCOption_u64Z; - /** @@ -1170,6 +1129,129 @@ typedef struct LDKCResult_RefundBolt12ParseErrorZ { bool result_ok; } LDKCResult_RefundBolt12ParseErrorZ; +/** + * Strategies available to retry payment path failures. + */ +typedef enum LDKRetry_Tag { + /** + * Max number of attempts to retry payment. + * + * Each attempt may be multiple HTLCs along multiple paths if the router decides to split up a + * retry, and may retry multiple failed HTLCs at once if they failed around the same time and + * were retried along a route from a single call to [`Router::find_route_with_id`]. + */ + LDKRetry_Attempts, + /** + * Time elapsed before abandoning retries for a payment. At least one attempt at payment is made; + * see [`PaymentParameters::expiry_time`] to avoid any attempt at payment after a specific time. + * + * [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time + */ + LDKRetry_Timeout, + /** + * Must be last for serialization purposes + */ + LDKRetry_Sentinel, +} LDKRetry_Tag; + +typedef struct MUST_USE_STRUCT LDKRetry { + LDKRetry_Tag tag; + union { + struct { + uint32_t attempts; + }; + struct { + uint64_t timeout; + }; + }; +} LDKRetry; + +/** + * An error in decoding a message or struct. + */ +typedef enum LDKDecodeError_Tag { + /** + * A version byte specified something we don't know how to handle. + * + * Includes unknown realm byte in an onion hop data packet. + */ + LDKDecodeError_UnknownVersion, + /** + * Unknown feature mandating we fail to parse message (e.g., TLV with an even, unknown type) + */ + LDKDecodeError_UnknownRequiredFeature, + /** + * Value was invalid. + * + * For example, a byte which was supposed to be a bool was something other than a 0 + * or 1, a public key/private key/signature was invalid, text wasn't UTF-8, TLV was + * syntactically incorrect, etc. + */ + LDKDecodeError_InvalidValue, + /** + * The buffer to be read was too short. + */ + LDKDecodeError_ShortRead, + /** + * A length descriptor in the packet didn't describe the later data correctly. + */ + LDKDecodeError_BadLengthDescriptor, + /** + * Error from [`std::io`]. + */ + LDKDecodeError_Io, + /** + * The message included zlib-compressed values, which we don't support. + */ + LDKDecodeError_UnsupportedCompression, + /** + * Must be last for serialization purposes + */ + LDKDecodeError_Sentinel, +} LDKDecodeError_Tag; + +typedef struct MUST_USE_STRUCT LDKDecodeError { + LDKDecodeError_Tag tag; + union { + struct { + enum LDKIOError io; + }; + }; +} LDKDecodeError; + +/** + * The contents of CResult_RetryDecodeErrorZ + */ +typedef union LDKCResult_RetryDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKRetry *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_RetryDecodeErrorZPtr; + +/** + * A CResult_RetryDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::outbound_payment::Retry on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_RetryDecodeErrorZ { + /** + * The contents of this CResult_RetryDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_RetryDecodeErrorZPtr contents; + /** + * Whether this CResult_RetryDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_RetryDecodeErrorZ; + /** @@ -1364,29 +1446,29 @@ typedef struct LDKCVec_APIErrorZ { /** * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not */ -typedef enum LDKCOption_PaymentSecretZ_Tag { +typedef enum LDKCOption_ThirtyTwoBytesZ_Tag { /** - * When we're in this state, this COption_PaymentSecretZ contains a crate::c_types::ThirtyTwoBytes + * When we're in this state, this COption_ThirtyTwoBytesZ contains a crate::c_types::ThirtyTwoBytes */ - LDKCOption_PaymentSecretZ_Some, + LDKCOption_ThirtyTwoBytesZ_Some, /** - * When we're in this state, this COption_PaymentSecretZ contains nothing + * When we're in this state, this COption_ThirtyTwoBytesZ contains nothing */ - LDKCOption_PaymentSecretZ_None, + LDKCOption_ThirtyTwoBytesZ_None, /** * Must be last for serialization purposes */ - LDKCOption_PaymentSecretZ_Sentinel, -} LDKCOption_PaymentSecretZ_Tag; + LDKCOption_ThirtyTwoBytesZ_Sentinel, +} LDKCOption_ThirtyTwoBytesZ_Tag; -typedef struct LDKCOption_PaymentSecretZ { - LDKCOption_PaymentSecretZ_Tag tag; +typedef struct LDKCOption_ThirtyTwoBytesZ { + LDKCOption_ThirtyTwoBytesZ_Tag tag; union { struct { struct LDKThirtyTwoBytes some; }; }; -} LDKCOption_PaymentSecretZ; +} LDKCOption_ThirtyTwoBytesZ; /** * An enum which can either contain a crate::c_types::derived::CVec_u8Z or not @@ -1439,90 +1521,174 @@ typedef struct MUST_USE_STRUCT LDKRecipientOnionFields { } LDKRecipientOnionFields; /** - * An error in decoding a message or struct. + * The contents of CResult_RecipientOnionFieldsDecodeErrorZ */ -typedef enum LDKDecodeError_Tag { +typedef union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr { /** - * A version byte specified something we don't know how to handle. - * - * Includes unknown realm byte in an onion hop data packet. + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - LDKDecodeError_UnknownVersion, + struct LDKRecipientOnionFields *result; /** - * Unknown feature mandating we fail to parse message (e.g., TLV with an even, unknown type) + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - LDKDecodeError_UnknownRequiredFeature, + struct LDKDecodeError *err; +} LDKCResult_RecipientOnionFieldsDecodeErrorZPtr; + +/** + * A CResult_RecipientOnionFieldsDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::outbound_payment::RecipientOnionFields on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_RecipientOnionFieldsDecodeErrorZ { /** - * Value was invalid. - * - * For example, a byte which was supposed to be a bool was something other than a 0 - * or 1, a public key/private key/signature was invalid, text wasn't UTF-8, TLV was - * syntactically incorrect, etc. + * The contents of this CResult_RecipientOnionFieldsDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKDecodeError_InvalidValue, + union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr contents; /** - * The buffer to be read was too short. + * Whether this CResult_RecipientOnionFieldsDecodeErrorZ represents a success state. */ - LDKDecodeError_ShortRead, + bool result_ok; +} LDKCResult_RecipientOnionFieldsDecodeErrorZ; + +/** + * A tuple of 2 elements. See the individual fields for the types contained. + */ +typedef struct LDKC2Tuple_u64CVec_u8ZZ { /** - * A length descriptor in the packet didn't describe the later data correctly. + * The element at position 0 */ - LDKDecodeError_BadLengthDescriptor, + uint64_t a; /** - * Error from [`std::io`]. + * The element at position 1 */ - LDKDecodeError_Io, + struct LDKCVec_u8Z b; +} LDKC2Tuple_u64CVec_u8ZZ; + +/** + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_u64CVec_u8ZZs of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_C2Tuple_u64CVec_u8ZZZ { /** - * The message included zlib-compressed values, which we don't support. + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - LDKDecodeError_UnsupportedCompression, + struct LDKC2Tuple_u64CVec_u8ZZ *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_C2Tuple_u64CVec_u8ZZZ; + +/** + * The contents of CResult_RecipientOnionFieldsNoneZ + */ +typedef union LDKCResult_RecipientOnionFieldsNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKRecipientOnionFields *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_RecipientOnionFieldsNoneZPtr; + +/** + * A CResult_RecipientOnionFieldsNoneZ represents the result of a fallible operation, + * containing a crate::lightning::ln::outbound_payment::RecipientOnionFields on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_RecipientOnionFieldsNoneZ { + /** + * The contents of this CResult_RecipientOnionFieldsNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_RecipientOnionFieldsNoneZPtr contents; + /** + * Whether this CResult_RecipientOnionFieldsNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_RecipientOnionFieldsNoneZ; + +/** + * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_ThirtyTwoBytesZ { + /** + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). + */ + struct LDKThirtyTwoBytes *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_ThirtyTwoBytesZ; + +/** + * An enum which can either contain a crate::c_types::derived::CVec_ThirtyTwoBytesZ or not + */ +typedef enum LDKCOption_CVec_ThirtyTwoBytesZZ_Tag { + /** + * When we're in this state, this COption_CVec_ThirtyTwoBytesZZ contains a crate::c_types::derived::CVec_ThirtyTwoBytesZ + */ + LDKCOption_CVec_ThirtyTwoBytesZZ_Some, + /** + * When we're in this state, this COption_CVec_ThirtyTwoBytesZZ contains nothing + */ + LDKCOption_CVec_ThirtyTwoBytesZZ_None, /** * Must be last for serialization purposes */ - LDKDecodeError_Sentinel, -} LDKDecodeError_Tag; + LDKCOption_CVec_ThirtyTwoBytesZZ_Sentinel, +} LDKCOption_CVec_ThirtyTwoBytesZZ_Tag; -typedef struct MUST_USE_STRUCT LDKDecodeError { - LDKDecodeError_Tag tag; +typedef struct LDKCOption_CVec_ThirtyTwoBytesZZ { + LDKCOption_CVec_ThirtyTwoBytesZZ_Tag tag; union { struct { - enum LDKIOError io; + struct LDKCVec_ThirtyTwoBytesZ some; }; }; -} LDKDecodeError; +} LDKCOption_CVec_ThirtyTwoBytesZZ; /** - * The contents of CResult_RecipientOnionFieldsDecodeErrorZ + * The contents of CResult_ThirtyTwoBytesNoneZ */ -typedef union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr { +typedef union LDKCResult_ThirtyTwoBytesNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKRecipientOnionFields *result; + struct LDKThirtyTwoBytes *result; /** - * A pointer to the contents in the error state. - * Reading from this pointer when `result_ok` is set is undefined. + * Note that this value is always NULL, as there are no contents in the Err variant */ - struct LDKDecodeError *err; -} LDKCResult_RecipientOnionFieldsDecodeErrorZPtr; + void *err; +} LDKCResult_ThirtyTwoBytesNoneZPtr; /** - * A CResult_RecipientOnionFieldsDecodeErrorZ represents the result of a fallible operation, - * containing a crate::lightning::ln::outbound_payment::RecipientOnionFields on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_ThirtyTwoBytesNoneZ represents the result of a fallible operation, + * containing a crate::c_types::ThirtyTwoBytes on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_RecipientOnionFieldsDecodeErrorZ { +typedef struct LDKCResult_ThirtyTwoBytesNoneZ { /** - * The contents of this CResult_RecipientOnionFieldsDecodeErrorZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr contents; + union LDKCResult_ThirtyTwoBytesNoneZPtr contents; /** - * Whether this CResult_RecipientOnionFieldsDecodeErrorZ represents a success state. + * Whether this CResult_ThirtyTwoBytesNoneZ represents a success state. */ bool result_ok; -} LDKCResult_RecipientOnionFieldsDecodeErrorZ; +} LDKCResult_ThirtyTwoBytesNoneZ; @@ -1775,15 +1941,23 @@ typedef enum LDKSpendableOutputDescriptor_Tag { */ LDKSpendableOutputDescriptor_DelayedPaymentOutput, /** - * An output to a P2WPKH, spendable exclusively by our payment key (i.e., the private key - * which corresponds to the `payment_point` in [`ChannelSigner::pubkeys`]). The witness - * in the spending input is, thus, simply: + * An output spendable exclusively by our payment key (i.e., the private key that corresponds + * to the `payment_point` in [`ChannelSigner::pubkeys`]). The output type depends on the + * channel type negotiated. + * + * On an anchor outputs channel, the witness in the spending input is: + * ```bitcoin + * + * ``` + * + * Otherwise, it is: * ```bitcoin * * ``` * * These are generally the result of our counterparty having broadcast the current state, - * allowing us to claim the non-HTLC-encumbered outputs immediately. + * allowing us to claim the non-HTLC-encumbered outputs immediately, or after one confirmation + * in the case of anchor outputs channels. */ LDKSpendableOutputDescriptor_StaticPaymentOutput, /** @@ -1884,34 +2058,34 @@ typedef struct LDKCVec_TxOutZ { /** * An enum which can either contain a u32 or not */ -typedef enum LDKCOption_PackedLockTimeZ_Tag { +typedef enum LDKCOption_u32Z_Tag { /** - * When we're in this state, this COption_PackedLockTimeZ contains a u32 + * When we're in this state, this COption_u32Z contains a u32 */ - LDKCOption_PackedLockTimeZ_Some, + LDKCOption_u32Z_Some, /** - * When we're in this state, this COption_PackedLockTimeZ contains nothing + * When we're in this state, this COption_u32Z contains nothing */ - LDKCOption_PackedLockTimeZ_None, + LDKCOption_u32Z_None, /** * Must be last for serialization purposes */ - LDKCOption_PackedLockTimeZ_Sentinel, -} LDKCOption_PackedLockTimeZ_Tag; + LDKCOption_u32Z_Sentinel, +} LDKCOption_u32Z_Tag; -typedef struct LDKCOption_PackedLockTimeZ { - LDKCOption_PackedLockTimeZ_Tag tag; +typedef struct LDKCOption_u32Z { + LDKCOption_u32Z_Tag tag; union { struct { uint32_t some; }; }; -} LDKCOption_PackedLockTimeZ; +} LDKCOption_u32Z; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_PartiallySignedTransactionusizeZ { +typedef struct LDKC2Tuple_CVec_u8ZusizeZ { /** * The element at position 0 */ @@ -1920,55 +2094,39 @@ typedef struct LDKC2Tuple_PartiallySignedTransactionusizeZ { * The element at position 1 */ uintptr_t b; -} LDKC2Tuple_PartiallySignedTransactionusizeZ; +} LDKC2Tuple_CVec_u8ZusizeZ; /** - * The contents of CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ + * The contents of CResult_C2Tuple_CVec_u8ZusizeZNoneZ */ -typedef union LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZPtr { +typedef union LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_PartiallySignedTransactionusizeZ *result; + struct LDKC2Tuple_CVec_u8ZusizeZ *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZPtr; +} LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZPtr; /** - * A CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_PartiallySignedTransactionusizeZ on success and a () on failure. + * A CResult_C2Tuple_CVec_u8ZusizeZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_CVec_u8ZusizeZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ { +typedef struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ { /** - * The contents of this CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ, accessible via either + * The contents of this CResult_C2Tuple_CVec_u8ZusizeZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZPtr contents; + union LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZPtr contents; /** - * Whether this CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ represents a success state. + * Whether this CResult_C2Tuple_CVec_u8ZusizeZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ; - -/** - * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_PaymentPreimageZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKThirtyTwoBytes *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_PaymentPreimageZ; +} LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ; /** * The contents of CResult_NoneNoneZ @@ -2002,108 +2160,108 @@ typedef struct LDKCResult_NoneNoneZ { } LDKCResult_NoneNoneZ; /** - * Represents a secp256k1 signature serialized as two 32-byte numbers + * Represents a secp256k1 ECDSA signature serialized as two 32-byte numbers */ -typedef struct LDKSignature { +typedef struct LDKECDSASignature { /** * The bytes of the signature in "compact" form */ uint8_t compact_form[64]; -} LDKSignature; +} LDKECDSASignature; /** - * A dynamically-allocated array of crate::c_types::Signatures of arbitrary size. + * A dynamically-allocated array of crate::c_types::ECDSASignatures of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_SignatureZ { +typedef struct LDKCVec_ECDSASignatureZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKSignature *data; + struct LDKECDSASignature *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_SignatureZ; +} LDKCVec_ECDSASignatureZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_SignatureCVec_SignatureZZ { +typedef struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ { /** * The element at position 0 */ - struct LDKSignature a; + struct LDKECDSASignature a; /** * The element at position 1 */ - struct LDKCVec_SignatureZ b; -} LDKC2Tuple_SignatureCVec_SignatureZZ; + struct LDKCVec_ECDSASignatureZ b; +} LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ; /** - * The contents of CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ + * The contents of CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ */ -typedef union LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr { +typedef union LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_SignatureCVec_SignatureZZ *result; + struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr; +} LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZPtr; /** - * A CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_SignatureCVec_SignatureZZ on success and a () on failure. + * A CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ { +typedef struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ { /** - * The contents of this CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ, accessible via either + * The contents of this CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr contents; + union LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZPtr contents; /** - * Whether this CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ represents a success state. + * Whether this CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ; +} LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ; /** - * The contents of CResult_SignatureNoneZ + * The contents of CResult_ECDSASignatureNoneZ */ -typedef union LDKCResult_SignatureNoneZPtr { +typedef union LDKCResult_ECDSASignatureNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKSignature *result; + struct LDKECDSASignature *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_SignatureNoneZPtr; +} LDKCResult_ECDSASignatureNoneZPtr; /** - * A CResult_SignatureNoneZ represents the result of a fallible operation, - * containing a crate::c_types::Signature on success and a () on failure. + * A CResult_ECDSASignatureNoneZ represents the result of a fallible operation, + * containing a crate::c_types::ECDSASignature on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_SignatureNoneZ { +typedef struct LDKCResult_ECDSASignatureNoneZ { /** - * The contents of this CResult_SignatureNoneZ, accessible via either + * The contents of this CResult_ECDSASignatureNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_SignatureNoneZPtr contents; + union LDKCResult_ECDSASignatureNoneZPtr contents; /** - * Whether this CResult_SignatureNoneZ represents a success state. + * Whether this CResult_ECDSASignatureNoneZ represents a success state. */ bool result_ok; -} LDKCResult_SignatureNoneZ; +} LDKCResult_ECDSASignatureNoneZ; /** * Represents a valid secp256k1 public key serialized in "compressed form" as a 33 byte array. @@ -2150,61 +2308,29 @@ typedef struct LDKCResult_PublicKeyNoneZ { /** * An enum which can either contain a crate::c_types::BigEndianScalar or not */ -typedef enum LDKCOption_ScalarZ_Tag { +typedef enum LDKCOption_BigEndianScalarZ_Tag { /** - * When we're in this state, this COption_ScalarZ contains a crate::c_types::BigEndianScalar + * When we're in this state, this COption_BigEndianScalarZ contains a crate::c_types::BigEndianScalar */ - LDKCOption_ScalarZ_Some, + LDKCOption_BigEndianScalarZ_Some, /** - * When we're in this state, this COption_ScalarZ contains nothing + * When we're in this state, this COption_BigEndianScalarZ contains nothing */ - LDKCOption_ScalarZ_None, + LDKCOption_BigEndianScalarZ_None, /** * Must be last for serialization purposes */ - LDKCOption_ScalarZ_Sentinel, -} LDKCOption_ScalarZ_Tag; + LDKCOption_BigEndianScalarZ_Sentinel, +} LDKCOption_BigEndianScalarZ_Tag; -typedef struct LDKCOption_ScalarZ { - LDKCOption_ScalarZ_Tag tag; +typedef struct LDKCOption_BigEndianScalarZ { + LDKCOption_BigEndianScalarZ_Tag tag; union { struct { struct LDKBigEndianScalar some; }; }; -} LDKCOption_ScalarZ; - -/** - * The contents of CResult_SharedSecretNoneZ - */ -typedef union LDKCResult_SharedSecretNoneZPtr { - /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. - */ - struct LDKThirtyTwoBytes *result; - /** - * Note that this value is always NULL, as there are no contents in the Err variant - */ - void *err; -} LDKCResult_SharedSecretNoneZPtr; - -/** - * A CResult_SharedSecretNoneZ represents the result of a fallible operation, - * containing a crate::c_types::ThirtyTwoBytes on success and a () on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. - */ -typedef struct LDKCResult_SharedSecretNoneZ { - /** - * The contents of this CResult_SharedSecretNoneZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. - */ - union LDKCResult_SharedSecretNoneZPtr contents; - /** - * Whether this CResult_SharedSecretNoneZ represents a success state. - */ - bool result_ok; -} LDKCResult_SharedSecretNoneZ; +} LDKCOption_BigEndianScalarZ; /** * Integer in the range `0..32` @@ -2273,6 +2399,48 @@ typedef struct LDKCResult_RecoverableSignatureNoneZ { bool result_ok; } LDKCResult_RecoverableSignatureNoneZ; +/** + * Represents a secp256k1 Schnorr signature serialized as two 32-byte numbers + */ +typedef struct LDKSchnorrSignature { + /** + * The bytes of the signature as two 32-byte numbers + */ + uint8_t compact_form[64]; +} LDKSchnorrSignature; + +/** + * The contents of CResult_SchnorrSignatureNoneZ + */ +typedef union LDKCResult_SchnorrSignatureNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKSchnorrSignature *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_SchnorrSignatureNoneZPtr; + +/** + * A CResult_SchnorrSignatureNoneZ represents the result of a fallible operation, + * containing a crate::c_types::SchnorrSignature on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_SchnorrSignatureNoneZ { + /** + * The contents of this CResult_SchnorrSignatureNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_SchnorrSignatureNoneZPtr contents; + /** + * Whether this CResult_SchnorrSignatureNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_SchnorrSignatureNoneZ; + /** @@ -2492,7 +2660,7 @@ typedef struct LDKChannelSigner { * Note that all the relevant preimages will be provided, but there may also be additional * irrelevant or duplicate preimages. */ - struct LDKCResult_NoneNoneZ (*validate_holder_commitment)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages); + struct LDKCResult_NoneNoneZ (*validate_holder_commitment)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_ThirtyTwoBytesZ preimages); /** * Returns the holder's channel public keys and basepoints. */ @@ -2558,7 +2726,7 @@ typedef struct LDKEcdsaChannelSigner { * Note that all the relevant preimages will be provided, but there may also be additional * irrelevant or duplicate preimages. */ - struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ (*sign_counterparty_commitment)(const void *this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages); + struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ (*sign_counterparty_commitment)(const void *this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_ThirtyTwoBytesZ preimages); /** * Validate the counterparty's revocation. * @@ -2583,7 +2751,7 @@ typedef struct LDKEcdsaChannelSigner { * * [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor */ - struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ (*sign_holder_commitment_and_htlcs)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx); + struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ (*sign_holder_commitment_and_htlcs)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx); /** * Create a signature for the given input in a transaction spending an HTLC transaction output * or a commitment transaction `to_local` output when our counterparty broadcasts an old state. @@ -2600,7 +2768,7 @@ typedef struct LDKEcdsaChannelSigner { * not allow the spending of any funds by itself (you need our holder `revocation_secret` to do * so). */ - struct LDKCResult_SignatureNoneZ (*sign_justice_revoked_output)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]); + struct LDKCResult_ECDSASignatureNoneZ (*sign_justice_revoked_output)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]); /** * Create a signature for the given input in a transaction spending a commitment transaction * HTLC output when our counterparty broadcasts an old state. @@ -2621,7 +2789,7 @@ typedef struct LDKEcdsaChannelSigner { * `htlc` holds HTLC elements (hash, timelock), thus changing the format of the witness script * (which is committed to in the BIP 143 signatures). */ - struct LDKCResult_SignatureNoneZ (*sign_justice_revoked_htlc)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); + struct LDKCResult_ECDSASignatureNoneZ (*sign_justice_revoked_htlc)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); /** * Computes the signature for a commitment transaction's HTLC output used as an input within * `htlc_tx`, which spends the commitment transaction at index `input`. The signature returned @@ -2631,7 +2799,7 @@ typedef struct LDKEcdsaChannelSigner { * * [`EcdsaSighashType::All`]: bitcoin::blockdata::transaction::EcdsaSighashType::All */ - struct LDKCResult_SignatureNoneZ (*sign_holder_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor); + struct LDKCResult_ECDSASignatureNoneZ (*sign_holder_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor); /** * Create a signature for a claiming transaction for a HTLC output on a counterparty's commitment * transaction, either offered or received. @@ -2651,19 +2819,19 @@ typedef struct LDKEcdsaChannelSigner { * channel state keys, which are then included in the witness script and committed to in the * BIP 143 signature. */ - struct LDKCResult_SignatureNoneZ (*sign_counterparty_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); + struct LDKCResult_ECDSASignatureNoneZ (*sign_counterparty_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); /** * Create a signature for a (proposed) closing transaction. * * Note that, due to rounding, there may be one \"missing\" satoshi, and either party may have * chosen to forgo their output as dust. */ - struct LDKCResult_SignatureNoneZ (*sign_closing_transaction)(const void *this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx); + struct LDKCResult_ECDSASignatureNoneZ (*sign_closing_transaction)(const void *this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx); /** * Computes the signature for a commitment transaction's anchor output used as an * input within `anchor_tx`, which spends the commitment transaction, at index `input`. */ - struct LDKCResult_SignatureNoneZ (*sign_holder_anchor_input)(const void *this_arg, struct LDKTransaction anchor_tx, uintptr_t input); + struct LDKCResult_ECDSASignatureNoneZ (*sign_holder_anchor_input)(const void *this_arg, struct LDKTransaction anchor_tx, uintptr_t input); /** * Signs a channel announcement message with our funding key proving it comes from one of the * channel participants. @@ -2675,7 +2843,7 @@ typedef struct LDKEcdsaChannelSigner { * our counterparty may (though likely will not) close the channel on us for violating the * protocol. */ - struct LDKCResult_SignatureNoneZ (*sign_channel_announcement_with_funding_key)(const void *this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg); + struct LDKCResult_ECDSASignatureNoneZ (*sign_channel_announcement_with_funding_key)(const void *this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg); /** * Implementation of ChannelSigner for this object. */ @@ -2757,9 +2925,9 @@ typedef struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ { } LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ; /** - * The contents of CResult_ScriptNoneZ + * The contents of CResult_CVec_u8ZNoneZ */ -typedef union LDKCResult_ScriptNoneZPtr { +typedef union LDKCResult_CVec_u8ZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -2769,24 +2937,24 @@ typedef union LDKCResult_ScriptNoneZPtr { * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_ScriptNoneZPtr; +} LDKCResult_CVec_u8ZNoneZPtr; /** - * A CResult_ScriptNoneZ represents the result of a fallible operation, + * A CResult_CVec_u8ZNoneZ represents the result of a fallible operation, * containing a crate::c_types::derived::CVec_u8Z on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_ScriptNoneZ { +typedef struct LDKCResult_CVec_u8ZNoneZ { /** - * The contents of this CResult_ScriptNoneZ, accessible via either + * The contents of this CResult_CVec_u8ZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_ScriptNoneZPtr contents; + union LDKCResult_CVec_u8ZNoneZPtr contents; /** - * Whether this CResult_ScriptNoneZ represents a success state. + * Whether this CResult_CVec_u8ZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_ScriptNoneZ; +} LDKCResult_CVec_u8ZNoneZ; /** * The contents of CResult_ShutdownScriptNoneZ @@ -2820,6 +2988,60 @@ typedef struct LDKCResult_ShutdownScriptNoneZ { bool result_ok; } LDKCResult_ShutdownScriptNoneZ; +/** + * An enum which can either contain a u16 or not + */ +typedef enum LDKCOption_u16Z_Tag { + /** + * When we're in this state, this COption_u16Z contains a u16 + */ + LDKCOption_u16Z_Some, + /** + * When we're in this state, this COption_u16Z contains nothing + */ + LDKCOption_u16Z_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_u16Z_Sentinel, +} LDKCOption_u16Z_Tag; + +typedef struct LDKCOption_u16Z { + LDKCOption_u16Z_Tag tag; + union { + struct { + uint16_t some; + }; + }; +} LDKCOption_u16Z; + +/** + * An enum which can either contain a bool or not + */ +typedef enum LDKCOption_boolZ_Tag { + /** + * When we're in this state, this COption_boolZ contains a bool + */ + LDKCOption_boolZ_Some, + /** + * When we're in this state, this COption_boolZ contains nothing + */ + LDKCOption_boolZ_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_boolZ_Sentinel, +} LDKCOption_boolZ_Tag; + +typedef struct LDKCOption_boolZ { + LDKCOption_boolZ_Tag tag; + union { + struct { + bool some; + }; + }; +} LDKCOption_boolZ; + /** * A dynamically-allocated array of crate::c_types::derived::CVec_u8Zs of arbitrary size. * This corresponds to std::vector in C++ @@ -2924,38 +3146,6 @@ typedef struct LDKCResult_InMemorySignerDecodeErrorZ { bool result_ok; } LDKCResult_InMemorySignerDecodeErrorZ; -/** - * The contents of CResult_PartiallySignedTransactionNoneZ - */ -typedef union LDKCResult_PartiallySignedTransactionNoneZPtr { - /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. - */ - struct LDKCVec_u8Z *result; - /** - * Note that this value is always NULL, as there are no contents in the Err variant - */ - void *err; -} LDKCResult_PartiallySignedTransactionNoneZPtr; - -/** - * A CResult_PartiallySignedTransactionNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::CVec_u8Z on success and a () on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. - */ -typedef struct LDKCResult_PartiallySignedTransactionNoneZ { - /** - * The contents of this CResult_PartiallySignedTransactionNoneZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. - */ - union LDKCResult_PartiallySignedTransactionNoneZPtr contents; - /** - * Whether this CResult_PartiallySignedTransactionNoneZ represents a success state. - */ - bool result_ok; -} LDKCResult_PartiallySignedTransactionNoneZ; - /** * The contents of CResult_TransactionNoneZ */ @@ -3011,7 +3201,7 @@ typedef struct MUST_USE_STRUCT LDKNodeId { /** - * Proposed use of a channel passed as a parameter to [`Score::channel_penalty_msat`]. + * Proposed use of a channel passed as a parameter to [`ScoreLookUp::channel_penalty_msat`]. */ typedef struct MUST_USE_STRUCT LDKChannelUsage { /** @@ -3054,6 +3244,37 @@ typedef struct MUST_USE_STRUCT LDKProbabilisticScoringFeeParameters { bool is_owned; } LDKProbabilisticScoringFeeParameters; +/** + * An interface used to score payment channels for path finding. + * + * `ScoreLookUp` is used to determine the penalty for a given channel. + * + * Scoring is in terms of fees willing to be paid in order to avoid routing through a channel. + */ +typedef struct LDKScoreLookUp { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the + * given channel in the direction from `source` to `target`. + * + * The channel's capacity (less any other MPP parts that are also being considered for use in + * the same payment) is given by `capacity_msat`. It may be determined from various sources + * such as a chain data, network gossip, or invoice hints. For invoice hints, a capacity near + * [`u64::max_value`] is given to indicate sufficient capacity for the invoice's full amount. + * Thus, implementations should be overflow-safe. + */ + uint64_t (*channel_penalty_msat)(const void *this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKScoreLookUp; + /** @@ -3076,27 +3297,14 @@ typedef struct MUST_USE_STRUCT LDKPath { } LDKPath; /** - * An interface used to score payment channels for path finding. - * - *\tScoring is in terms of fees willing to be paid in order to avoid routing through a channel. + * `ScoreUpdate` is used to update the scorer's internal state after a payment attempt. */ -typedef struct LDKScore { +typedef struct LDKScoreUpdate { /** * An opaque pointer which is passed to your function implementations as an argument. * This has no meaning in the LDK, and can be NULL or any other value. */ void *this_arg; - /** - * Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the - * given channel in the direction from `source` to `target`. - * - * The channel's capacity (less any other MPP parts that are also being considered for use in - * the same payment) is given by `capacity_msat`. It may be determined from various sources - * such as a chain data, network gossip, or invoice hints. For invoice hints, a capacity near - * [`u64::max_value`] is given to indicate sufficient capacity for the invoice's full amount. - * Thus, implementations should be overflow-safe. - */ - uint64_t (*channel_penalty_msat)(const void *this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params); /** * Handles updating channel penalties after failing to route through a channel. */ @@ -3113,24 +3321,20 @@ typedef struct LDKScore { * Handles updating channel penalties after a probe over the given path succeeded. */ void (*probe_successful)(void *this_arg, const struct LDKPath *NONNULL_PTR path); - /** - * Serialize the object into a byte array - */ - struct LDKCVec_u8Z (*write)(const void *this_arg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. */ void (*free)(void *this_arg); -} LDKScore; +} LDKScoreUpdate; /** * A scorer that is accessed under a lock. * - * Needed so that calls to [`Score::channel_penalty_msat`] in [`find_route`] can be made while - * having shared ownership of a scorer but without requiring internal locking in [`Score`] + * Needed so that calls to [`ScoreLookUp::channel_penalty_msat`] in [`find_route`] can be made while + * having shared ownership of a scorer but without requiring internal locking in [`ScoreUpdate`] * implementations. Internal locking would be detrimental to route finding performance and could - * result in [`Score::channel_penalty_msat`] returning a different value for the same channel. + * result in [`ScoreLookUp::channel_penalty_msat`] returning a different value for the same channel. * * [`find_route`]: crate::routing::router::find_route */ @@ -3141,9 +3345,13 @@ typedef struct LDKLockableScore { */ void *this_arg; /** - * Returns the locked scorer. + * Returns read locked scorer. */ - struct LDKScore (*lock)(const void *this_arg); + struct LDKScoreLookUp (*read_lock)(const void *this_arg); + /** + * Returns write locked scorer. + */ + struct LDKScoreUpdate (*write_lock)(const void *this_arg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -3206,9 +3414,9 @@ typedef struct LDKCOption_WriteableScoreZ { } LDKCOption_WriteableScoreZ; /** - * The contents of CResult_NoneErrorZ + * The contents of CResult_NoneIOErrorZ */ -typedef union LDKCResult_NoneErrorZPtr { +typedef union LDKCResult_NoneIOErrorZPtr { /** * Note that this value is always NULL, as there are no contents in the OK variant */ @@ -3218,24 +3426,24 @@ typedef union LDKCResult_NoneErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKIOError *err; -} LDKCResult_NoneErrorZPtr; +} LDKCResult_NoneIOErrorZPtr; /** - * A CResult_NoneErrorZ represents the result of a fallible operation, + * A CResult_NoneIOErrorZ represents the result of a fallible operation, * containing a () on success and a crate::c_types::IOError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_NoneErrorZ { +typedef struct LDKCResult_NoneIOErrorZ { /** - * The contents of this CResult_NoneErrorZ, accessible via either + * The contents of this CResult_NoneIOErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_NoneErrorZPtr contents; + union LDKCResult_NoneIOErrorZPtr contents; /** - * Whether this CResult_NoneErrorZ represents a success state. + * Whether this CResult_NoneIOErrorZ represents a success state. */ bool result_ok; -} LDKCResult_NoneErrorZ; +} LDKCResult_NoneIOErrorZ; @@ -3458,8 +3666,9 @@ typedef struct LDKCResult_RouteHopDecodeErrorZ { /** - * Used to construct the blinded hops portion of a blinded path. These hops cannot be identified - * by outside observers and thus can be used to hide the identity of the recipient. + * An encrypted payload and node id corresponding to a hop in a payment or onion message path, to + * be encoded in the sender's onion packet. These hops cannot be identified by outside observers + * and thus can be used to hide the identity of the recipient. */ typedef struct MUST_USE_STRUCT LDKBlindedHop { /** @@ -3564,33 +3773,6 @@ typedef struct LDKCVec_RouteHopZ { uintptr_t datalen; } LDKCVec_RouteHopZ; -/** - * An enum which can either contain a u32 or not - */ -typedef enum LDKCOption_u32Z_Tag { - /** - * When we're in this state, this COption_u32Z contains a u32 - */ - LDKCOption_u32Z_Some, - /** - * When we're in this state, this COption_u32Z contains nothing - */ - LDKCOption_u32Z_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_u32Z_Sentinel, -} LDKCOption_u32Z_Tag; - -typedef struct LDKCOption_u32Z { - LDKCOption_u32Z_Tag tag; - union { - struct { - uint32_t some; - }; - }; -} LDKCOption_u32Z; - /** * A dynamically-allocated array of crate::lightning::routing::router::Paths of arbitrary size. * This corresponds to std::vector in C++ @@ -3951,7 +4133,7 @@ typedef struct LDKCVec_PublicKeyZ { /** - * [`Score`] implementation that uses a fixed penalty. + * [`ScoreLookUp`] implementation that uses a fixed penalty. */ typedef struct MUST_USE_STRUCT LDKFixedPenaltyScorer { /** @@ -4059,14 +4241,14 @@ typedef struct LDKCOption_C2Tuple_u64u64ZZ { } LDKCOption_C2Tuple_u64u64ZZ; /** - * 8 u16s + * 32 u16s */ -typedef struct LDKEightU16s { +typedef struct LDKThirtyTwoU16s { /** - * The eight 16-bit integers + * The thirty-two 16-bit integers */ - uint16_t data[8]; -} LDKEightU16s; + uint16_t data[32]; +} LDKThirtyTwoU16s; /** * A tuple of 2 elements. See the individual fields for the types contained. @@ -4075,53 +4257,80 @@ typedef struct LDKC2Tuple_Z { /** * The element at position 0 */ - struct LDKEightU16s a; + struct LDKThirtyTwoU16s a; /** * The element at position 1 */ - struct LDKEightU16s b; + struct LDKThirtyTwoU16s b; } LDKC2Tuple_Z; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple__u168_u168Z { +typedef struct LDKC2Tuple__u1632_u1632Z { /** * The element at position 0 */ - struct LDKEightU16s a; + struct LDKThirtyTwoU16s a; /** * The element at position 1 */ - struct LDKEightU16s b; -} LDKC2Tuple__u168_u168Z; + struct LDKThirtyTwoU16s b; +} LDKC2Tuple__u1632_u1632Z; + +/** + * An enum which can either contain a crate::c_types::derived::C2Tuple__u1632_u1632Z or not + */ +typedef enum LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Tag { + /** + * When we're in this state, this COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ contains a crate::c_types::derived::C2Tuple__u1632_u1632Z + */ + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some, + /** + * When we're in this state, this COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ contains nothing + */ + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Sentinel, +} LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Tag; + +typedef struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ { + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Tag tag; + union { + struct { + struct LDKC2Tuple__u1632_u1632Z some; + }; + }; +} LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ; /** - * An enum which can either contain a crate::c_types::derived::C2Tuple__u168_u168Z or not + * An enum which can either contain a f64 or not */ -typedef enum LDKCOption_C2Tuple_EightU16sEightU16sZZ_Tag { +typedef enum LDKCOption_f64Z_Tag { /** - * When we're in this state, this COption_C2Tuple_EightU16sEightU16sZZ contains a crate::c_types::derived::C2Tuple__u168_u168Z + * When we're in this state, this COption_f64Z contains a f64 */ - LDKCOption_C2Tuple_EightU16sEightU16sZZ_Some, + LDKCOption_f64Z_Some, /** - * When we're in this state, this COption_C2Tuple_EightU16sEightU16sZZ contains nothing + * When we're in this state, this COption_f64Z contains nothing */ - LDKCOption_C2Tuple_EightU16sEightU16sZZ_None, + LDKCOption_f64Z_None, /** * Must be last for serialization purposes */ - LDKCOption_C2Tuple_EightU16sEightU16sZZ_Sentinel, -} LDKCOption_C2Tuple_EightU16sEightU16sZZ_Tag; + LDKCOption_f64Z_Sentinel, +} LDKCOption_f64Z_Tag; -typedef struct LDKCOption_C2Tuple_EightU16sEightU16sZZ { - LDKCOption_C2Tuple_EightU16sEightU16sZZ_Tag tag; +typedef struct LDKCOption_f64Z { + LDKCOption_f64Z_Tag tag; union { struct { - struct LDKC2Tuple__u168_u168Z some; + double some; }; }; -} LDKCOption_C2Tuple_EightU16sEightU16sZZ; +} LDKCOption_f64Z; @@ -4187,7 +4396,7 @@ typedef struct MUST_USE_STRUCT LDKNetworkGraph { /** - * [`Score`] implementation using channel success probability distributions. + * [`ScoreLookUp`] implementation using channel success probability distributions. * * Channels are tracked with upper and lower liquidity bounds - when an HTLC fails at a channel, * we learn that the upper-bound on the available liquidity is lower than the amount of the HTLC. @@ -4197,7 +4406,7 @@ typedef struct MUST_USE_STRUCT LDKNetworkGraph { * These bounds are then used to determine a success probability using the formula from * *Optimally Reliable & Cheap Payment Flows on the Lightning Network* by Rene Pickhardt * and Stefan Richter [[1]] (i.e. `(upper_bound - payment_amount) / (upper_bound - lower_bound)`). - * + *6762, 1070 * This probability is combined with the [`liquidity_penalty_multiplier_msat`] and * [`liquidity_penalty_amount_multiplier_msat`] parameters to calculate a concrete penalty in * milli-satoshis. The penalties, when added across all hops, have the property of being linear in @@ -4302,37 +4511,10 @@ typedef struct LDKCVec_C2Tuple_usizeTransactionZZ { uintptr_t datalen; } LDKCVec_C2Tuple_usizeTransactionZZ; -/** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not - */ -typedef enum LDKCOption_BlockHashZ_Tag { - /** - * When we're in this state, this COption_BlockHashZ contains a crate::c_types::ThirtyTwoBytes - */ - LDKCOption_BlockHashZ_Some, - /** - * When we're in this state, this COption_BlockHashZ contains nothing - */ - LDKCOption_BlockHashZ_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_BlockHashZ_Sentinel, -} LDKCOption_BlockHashZ_Tag; - -typedef struct LDKCOption_BlockHashZ { - LDKCOption_BlockHashZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_BlockHashZ; - /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_TxidCOption_BlockHashZZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ { /** * The element at position 0 */ @@ -4340,24 +4522,56 @@ typedef struct LDKC2Tuple_TxidCOption_BlockHashZZ { /** * The element at position 1 */ - struct LDKCOption_BlockHashZ b; -} LDKC2Tuple_TxidCOption_BlockHashZZ; + struct LDKCOption_ThirtyTwoBytesZ b; +} LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_TxidCOption_BlockHashZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_TxidCOption_BlockHashZZ *data; + struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ; +} LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ; + +/** + * The contents of CResult_ChannelMonitorUpdateStatusNoneZ + */ +typedef union LDKCResult_ChannelMonitorUpdateStatusNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + enum LDKChannelMonitorUpdateStatus *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_ChannelMonitorUpdateStatusNoneZPtr; + +/** + * A CResult_ChannelMonitorUpdateStatusNoneZ represents the result of a fallible operation, + * containing a crate::lightning::chain::ChannelMonitorUpdateStatus on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ChannelMonitorUpdateStatusNoneZ { + /** + * The contents of this CResult_ChannelMonitorUpdateStatusNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ChannelMonitorUpdateStatusNoneZPtr contents; + /** + * Whether this CResult_ChannelMonitorUpdateStatusNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_ChannelMonitorUpdateStatusNoneZ; @@ -4392,7 +4606,7 @@ typedef enum LDKMonitorEvent_Tag { /** * A monitor event that the Channel's commitment transaction was confirmed. */ - LDKMonitorEvent_CommitmentTxConfirmed, + LDKMonitorEvent_HolderForceClosed, /** * Indicates a [`ChannelMonitor`] update has completed. See * [`ChannelMonitorUpdateStatus::InProgress`] for more information on how this is used. @@ -4400,13 +4614,6 @@ typedef enum LDKMonitorEvent_Tag { * [`ChannelMonitorUpdateStatus::InProgress`]: super::ChannelMonitorUpdateStatus::InProgress */ LDKMonitorEvent_Completed, - /** - * Indicates a [`ChannelMonitor`] update has failed. See - * [`ChannelMonitorUpdateStatus::PermanentFailure`] for more information on how this is used. - * - * [`ChannelMonitorUpdateStatus::PermanentFailure`]: super::ChannelMonitorUpdateStatus::PermanentFailure - */ - LDKMonitorEvent_UpdateFailed, /** * Must be last for serialization purposes */ @@ -4435,12 +4642,9 @@ typedef struct MUST_USE_STRUCT LDKMonitorEvent { struct LDKHTLCUpdate htlc_event; }; struct { - struct LDKOutPoint commitment_tx_confirmed; + struct LDKOutPoint holder_force_closed; }; LDKMonitorEvent_LDKCompleted_Body completed; - struct { - struct LDKOutPoint update_failed; - }; }; } LDKMonitorEvent; @@ -4874,22 +5078,6 @@ typedef struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ { bool result_ok; } LDKCResult_ChannelTypeFeaturesDecodeErrorZ; -/** - * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_ChainHashZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKThirtyTwoBytes *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_ChainHashZ; - /** @@ -4956,9 +5144,9 @@ typedef struct LDKCResult_OfferBolt12ParseErrorZ { } LDKCResult_OfferBolt12ParseErrorZ; /** - * The contents of CResult_PublicKeyErrorZ + * The contents of CResult_PublicKeySecp256k1ErrorZ */ -typedef union LDKCResult_PublicKeyErrorZPtr { +typedef union LDKCResult_PublicKeySecp256k1ErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -4969,24 +5157,24 @@ typedef union LDKCResult_PublicKeyErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKSecp256k1Error *err; -} LDKCResult_PublicKeyErrorZPtr; +} LDKCResult_PublicKeySecp256k1ErrorZPtr; /** - * A CResult_PublicKeyErrorZ represents the result of a fallible operation, + * A CResult_PublicKeySecp256k1ErrorZ represents the result of a fallible operation, * containing a crate::c_types::PublicKey on success and a crate::c_types::Secp256k1Error on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PublicKeyErrorZ { +typedef struct LDKCResult_PublicKeySecp256k1ErrorZ { /** - * The contents of this CResult_PublicKeyErrorZ, accessible via either + * The contents of this CResult_PublicKeySecp256k1ErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PublicKeyErrorZPtr contents; + union LDKCResult_PublicKeySecp256k1ErrorZPtr contents; /** - * Whether this CResult_PublicKeyErrorZ represents a success state. + * Whether this CResult_PublicKeySecp256k1ErrorZ represents a success state. */ bool result_ok; -} LDKCResult_PublicKeyErrorZ; +} LDKCResult_PublicKeySecp256k1ErrorZ; /** * The contents of CResult_NodeIdDecodeErrorZ @@ -5764,6 +5952,27 @@ typedef struct MUST_USE_STRUCT LDKTxAckRbf { +/** + * A tx_abort message which signals the cancellation of an in-progress transaction negotiation. + * + */ +typedef struct MUST_USE_STRUCT LDKTxAbort { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeTxAbort *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKTxAbort; + + + /** * A [`channel_ready`] message to be sent to or received from a peer. * @@ -6502,7 +6711,7 @@ typedef struct LDKMessageSendEvent_LDKSendTxAbort_Body { /** * The message which should be sent. */ - struct LDKTxAddInput msg; + struct LDKTxAbort msg; } LDKMessageSendEvent_LDKSendTxAbort_Body; typedef struct LDKMessageSendEvent_LDKSendChannelReady_Body { @@ -6953,40 +7162,40 @@ typedef struct MUST_USE_STRUCT LDKHostname { /** * An address which can be used to connect to a remote peer. */ -typedef enum LDKNetAddress_Tag { +typedef enum LDKSocketAddress_Tag { /** - * An IPv4 address/port on which the peer is listening. + * An IPv4 address and port on which the peer is listening. */ - LDKNetAddress_IPv4, + LDKSocketAddress_TcpIpV4, /** - * An IPv6 address/port on which the peer is listening. + * An IPv6 address and port on which the peer is listening. */ - LDKNetAddress_IPv6, + LDKSocketAddress_TcpIpV6, /** * An old-style Tor onion address/port on which the peer is listening. * * This field is deprecated and the Tor network generally no longer supports V2 Onion * addresses. Thus, the details are not parsed here. */ - LDKNetAddress_OnionV2, + LDKSocketAddress_OnionV2, /** * A new-style Tor onion address/port on which the peer is listening. * * To create the human-readable \"hostname\", concatenate the ED25519 pubkey, checksum, and version, * wrap as base32 and append \".onion\". */ - LDKNetAddress_OnionV3, + LDKSocketAddress_OnionV3, /** * A hostname/port on which the peer is listening. */ - LDKNetAddress_Hostname, + LDKSocketAddress_Hostname, /** * Must be last for serialization purposes */ - LDKNetAddress_Sentinel, -} LDKNetAddress_Tag; + LDKSocketAddress_Sentinel, +} LDKSocketAddress_Tag; -typedef struct LDKNetAddress_LDKIPv4_Body { +typedef struct LDKSocketAddress_LDKTcpIpV4_Body { /** * The 4-byte IPv4 address */ @@ -6995,9 +7204,9 @@ typedef struct LDKNetAddress_LDKIPv4_Body { * The port on which the node is listening */ uint16_t port; -} LDKNetAddress_LDKIPv4_Body; +} LDKSocketAddress_LDKTcpIpV4_Body; -typedef struct LDKNetAddress_LDKIPv6_Body { +typedef struct LDKSocketAddress_LDKTcpIpV6_Body { /** * The 16-byte IPv6 address */ @@ -7006,9 +7215,9 @@ typedef struct LDKNetAddress_LDKIPv6_Body { * The port on which the node is listening */ uint16_t port; -} LDKNetAddress_LDKIPv6_Body; +} LDKSocketAddress_LDKTcpIpV6_Body; -typedef struct LDKNetAddress_LDKOnionV3_Body { +typedef struct LDKSocketAddress_LDKOnionV3_Body { /** * The ed25519 long-term public key of the peer */ @@ -7025,9 +7234,9 @@ typedef struct LDKNetAddress_LDKOnionV3_Body { * The port on which the node is listening */ uint16_t port; -} LDKNetAddress_LDKOnionV3_Body; +} LDKSocketAddress_LDKOnionV3_Body; -typedef struct LDKNetAddress_LDKHostname_Body { +typedef struct LDKSocketAddress_LDKHostname_Body { /** * The hostname on which the node is listening. */ @@ -7036,36 +7245,36 @@ typedef struct LDKNetAddress_LDKHostname_Body { * The port on which the node is listening. */ uint16_t port; -} LDKNetAddress_LDKHostname_Body; +} LDKSocketAddress_LDKHostname_Body; -typedef struct MUST_USE_STRUCT LDKNetAddress { - LDKNetAddress_Tag tag; +typedef struct MUST_USE_STRUCT LDKSocketAddress { + LDKSocketAddress_Tag tag; union { - LDKNetAddress_LDKIPv4_Body i_pv4; - LDKNetAddress_LDKIPv6_Body i_pv6; + LDKSocketAddress_LDKTcpIpV4_Body tcp_ip_v4; + LDKSocketAddress_LDKTcpIpV6_Body tcp_ip_v6; struct { struct LDKTwelveBytes onion_v2; }; - LDKNetAddress_LDKOnionV3_Body onion_v3; - LDKNetAddress_LDKHostname_Body hostname; + LDKSocketAddress_LDKOnionV3_Body onion_v3; + LDKSocketAddress_LDKHostname_Body hostname; }; -} LDKNetAddress; +} LDKSocketAddress; /** - * A dynamically-allocated array of crate::lightning::ln::msgs::NetAddresss of arbitrary size. + * A dynamically-allocated array of crate::lightning::ln::msgs::SocketAddresss of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_NetAddressZ { +typedef struct LDKCVec_SocketAddressZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKNetAddress *data; + struct LDKSocketAddress *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_NetAddressZ; +} LDKCVec_SocketAddressZ; @@ -7263,58 +7472,117 @@ typedef struct LDKCResult_NetworkGraphDecodeErrorZ { } LDKCResult_NetworkGraphDecodeErrorZ; /** - * An enum which can either contain a crate::c_types::derived::CVec_NetAddressZ or not + * An enum which can either contain a crate::c_types::derived::CVec_SocketAddressZ or not */ -typedef enum LDKCOption_CVec_NetAddressZZ_Tag { +typedef enum LDKCOption_CVec_SocketAddressZZ_Tag { /** - * When we're in this state, this COption_CVec_NetAddressZZ contains a crate::c_types::derived::CVec_NetAddressZ + * When we're in this state, this COption_CVec_SocketAddressZZ contains a crate::c_types::derived::CVec_SocketAddressZ */ - LDKCOption_CVec_NetAddressZZ_Some, + LDKCOption_CVec_SocketAddressZZ_Some, /** - * When we're in this state, this COption_CVec_NetAddressZZ contains nothing + * When we're in this state, this COption_CVec_SocketAddressZZ contains nothing */ - LDKCOption_CVec_NetAddressZZ_None, + LDKCOption_CVec_SocketAddressZZ_None, /** * Must be last for serialization purposes */ - LDKCOption_CVec_NetAddressZZ_Sentinel, -} LDKCOption_CVec_NetAddressZZ_Tag; + LDKCOption_CVec_SocketAddressZZ_Sentinel, +} LDKCOption_CVec_SocketAddressZZ_Tag; -typedef struct LDKCOption_CVec_NetAddressZZ { - LDKCOption_CVec_NetAddressZZ_Tag tag; +typedef struct LDKCOption_CVec_SocketAddressZZ { + LDKCOption_CVec_SocketAddressZZ_Tag tag; union { struct { - struct LDKCVec_NetAddressZ some; + struct LDKCVec_SocketAddressZ some; }; }; -} LDKCOption_CVec_NetAddressZZ; +} LDKCOption_CVec_SocketAddressZZ; + + /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * The parameters required to derive a channel signer via [`SignerProvider`]. */ -typedef enum LDKCOption_PaymentPreimageZ_Tag { +typedef struct MUST_USE_STRUCT LDKChannelDerivationParameters { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeChannelDerivationParameters *inner; /** - * When we're in this state, this COption_PaymentPreimageZ contains a crate::c_types::ThirtyTwoBytes + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. */ - LDKCOption_PaymentPreimageZ_Some, + bool is_owned; +} LDKChannelDerivationParameters; + +/** + * The contents of CResult_ChannelDerivationParametersDecodeErrorZ + */ +typedef union LDKCResult_ChannelDerivationParametersDecodeErrorZPtr { /** - * When we're in this state, this COption_PaymentPreimageZ contains nothing + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - LDKCOption_PaymentPreimageZ_None, + struct LDKChannelDerivationParameters *result; /** - * Must be last for serialization purposes + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - LDKCOption_PaymentPreimageZ_Sentinel, -} LDKCOption_PaymentPreimageZ_Tag; + struct LDKDecodeError *err; +} LDKCResult_ChannelDerivationParametersDecodeErrorZPtr; -typedef struct LDKCOption_PaymentPreimageZ { - LDKCOption_PaymentPreimageZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_PaymentPreimageZ; +/** + * A CResult_ChannelDerivationParametersDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::events::bump_transaction::ChannelDerivationParameters on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ChannelDerivationParametersDecodeErrorZ { + /** + * The contents of this CResult_ChannelDerivationParametersDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ChannelDerivationParametersDecodeErrorZPtr contents; + /** + * Whether this CResult_ChannelDerivationParametersDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_ChannelDerivationParametersDecodeErrorZ; + +/** + * The contents of CResult_HTLCDescriptorDecodeErrorZ + */ +typedef union LDKCResult_HTLCDescriptorDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKHTLCDescriptor *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_HTLCDescriptorDecodeErrorZPtr; + +/** + * A CResult_HTLCDescriptorDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::events::bump_transaction::HTLCDescriptor on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_HTLCDescriptorDecodeErrorZ { + /** + * The contents of this CResult_HTLCDescriptorDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_HTLCDescriptorDecodeErrorZPtr contents; + /** + * Whether this CResult_HTLCDescriptorDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_HTLCDescriptorDecodeErrorZ; /** * A dynamically-allocated array of crate::lightning::ln::chan_utils::HTLCOutputInCommitments of arbitrary size. @@ -7536,31 +7804,45 @@ typedef struct LDKCResult_CVec_UtxoZNoneZ { } LDKCResult_CVec_UtxoZNoneZ; /** - * An enum which can either contain a u16 or not + * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef enum LDKCOption_u16Z_Tag { +typedef struct LDKC2Tuple_u64u16Z { /** - * When we're in this state, this COption_u16Z contains a u16 + * The element at position 0 */ - LDKCOption_u16Z_Some, + uint64_t a; /** - * When we're in this state, this COption_u16Z contains nothing + * The element at position 1 */ - LDKCOption_u16Z_None, + uint16_t b; +} LDKC2Tuple_u64u16Z; + +/** + * An enum which can either contain a crate::c_types::derived::C2Tuple_u64u16Z or not + */ +typedef enum LDKCOption_C2Tuple_u64u16ZZ_Tag { + /** + * When we're in this state, this COption_C2Tuple_u64u16ZZ contains a crate::c_types::derived::C2Tuple_u64u16Z + */ + LDKCOption_C2Tuple_u64u16ZZ_Some, + /** + * When we're in this state, this COption_C2Tuple_u64u16ZZ contains nothing + */ + LDKCOption_C2Tuple_u64u16ZZ_None, /** * Must be last for serialization purposes */ - LDKCOption_u16Z_Sentinel, -} LDKCOption_u16Z_Tag; + LDKCOption_C2Tuple_u64u16ZZ_Sentinel, +} LDKCOption_C2Tuple_u64u16ZZ_Tag; -typedef struct LDKCOption_u16Z { - LDKCOption_u16Z_Tag tag; +typedef struct LDKCOption_C2Tuple_u64u16ZZ { + LDKCOption_C2Tuple_u64u16ZZ_Tag tag; union { struct { - uint16_t some; + struct LDKC2Tuple_u64u16Z some; }; }; -} LDKCOption_u16Z; +} LDKCOption_C2Tuple_u64u16ZZ; /** * An enum which can either contain a crate::lightning::ln::channelmanager::ChannelShutdownState or not @@ -7590,36 +7872,9 @@ typedef struct LDKCOption_ChannelShutdownStateZ { } LDKCOption_ChannelShutdownStateZ; /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * The contents of CResult_ThirtyTwoBytesAPIErrorZ */ -typedef enum LDKCOption_PaymentHashZ_Tag { - /** - * When we're in this state, this COption_PaymentHashZ contains a crate::c_types::ThirtyTwoBytes - */ - LDKCOption_PaymentHashZ_Some, - /** - * When we're in this state, this COption_PaymentHashZ contains nothing - */ - LDKCOption_PaymentHashZ_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_PaymentHashZ_Sentinel, -} LDKCOption_PaymentHashZ_Tag; - -typedef struct LDKCOption_PaymentHashZ { - LDKCOption_PaymentHashZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_PaymentHashZ; - -/** - * The contents of CResult__u832APIErrorZ - */ -typedef union LDKCResult__u832APIErrorZPtr { +typedef union LDKCResult_ThirtyTwoBytesAPIErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -7630,30 +7885,34 @@ typedef union LDKCResult__u832APIErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKAPIError *err; -} LDKCResult__u832APIErrorZPtr; +} LDKCResult_ThirtyTwoBytesAPIErrorZPtr; /** - * A CResult__u832APIErrorZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesAPIErrorZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::util::errors::APIError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult__u832APIErrorZ { +typedef struct LDKCResult_ThirtyTwoBytesAPIErrorZ { /** - * The contents of this CResult__u832APIErrorZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesAPIErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult__u832APIErrorZPtr contents; + union LDKCResult_ThirtyTwoBytesAPIErrorZPtr contents; /** - * Whether this CResult__u832APIErrorZ represents a success state. + * Whether this CResult_ThirtyTwoBytesAPIErrorZ represents a success state. */ bool result_ok; -} LDKCResult__u832APIErrorZ; +} LDKCResult_ThirtyTwoBytesAPIErrorZ; /** * Used by [`ChannelManager::list_recent_payments`] to express the status of recent payments. * These include payments that have yet to find a successful path, or have unresolved HTLCs. */ typedef enum LDKRecentPaymentDetails_Tag { + /** + * When an invoice was requested and thus a payment has not yet been sent. + */ + LDKRecentPaymentDetails_AwaitingInvoice, /** * When a payment is still being sent and awaiting successful delivery. */ @@ -7676,7 +7935,20 @@ typedef enum LDKRecentPaymentDetails_Tag { LDKRecentPaymentDetails_Sentinel, } LDKRecentPaymentDetails_Tag; +typedef struct LDKRecentPaymentDetails_LDKAwaitingInvoice_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; +} LDKRecentPaymentDetails_LDKAwaitingInvoice_Body; + typedef struct LDKRecentPaymentDetails_LDKPending_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; /** * Hash of the payment that is currently being sent but has yet to be fulfilled or * abandoned. @@ -7690,14 +7962,24 @@ typedef struct LDKRecentPaymentDetails_LDKPending_Body { } LDKRecentPaymentDetails_LDKPending_Body; typedef struct LDKRecentPaymentDetails_LDKFulfilled_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; /** * Hash of the payment that was claimed. `None` for serializations of [`ChannelManager`] * made before LDK version 0.0.104. */ - struct LDKCOption_PaymentHashZ payment_hash; + struct LDKCOption_ThirtyTwoBytesZ payment_hash; } LDKRecentPaymentDetails_LDKFulfilled_Body; typedef struct LDKRecentPaymentDetails_LDKAbandoned_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; /** * Hash of the payment that we have given up trying to send. */ @@ -7707,6 +7989,7 @@ typedef struct LDKRecentPaymentDetails_LDKAbandoned_Body { typedef struct MUST_USE_STRUCT LDKRecentPaymentDetails { LDKRecentPaymentDetails_Tag tag; union { + LDKRecentPaymentDetails_LDKAwaitingInvoice_Body awaiting_invoice; LDKRecentPaymentDetails_LDKPending_Body pending; LDKRecentPaymentDetails_LDKFulfilled_Body fulfilled; LDKRecentPaymentDetails_LDKAbandoned_Body abandoned; @@ -7905,9 +8188,9 @@ typedef struct LDKCResult_NoneRetryableSendFailureZ { } LDKCResult_NoneRetryableSendFailureZ; /** - * The contents of CResult_PaymentHashPaymentSendFailureZ + * The contents of CResult_ThirtyTwoBytesPaymentSendFailureZ */ -typedef union LDKCResult_PaymentHashPaymentSendFailureZPtr { +typedef union LDKCResult_ThirtyTwoBytesPaymentSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -7918,29 +8201,29 @@ typedef union LDKCResult_PaymentHashPaymentSendFailureZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKPaymentSendFailure *err; -} LDKCResult_PaymentHashPaymentSendFailureZPtr; +} LDKCResult_ThirtyTwoBytesPaymentSendFailureZPtr; /** - * A CResult_PaymentHashPaymentSendFailureZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesPaymentSendFailureZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::ln::outbound_payment::PaymentSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentHashPaymentSendFailureZ { +typedef struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ { /** - * The contents of this CResult_PaymentHashPaymentSendFailureZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesPaymentSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentHashPaymentSendFailureZPtr contents; + union LDKCResult_ThirtyTwoBytesPaymentSendFailureZPtr contents; /** - * Whether this CResult_PaymentHashPaymentSendFailureZ represents a success state. + * Whether this CResult_ThirtyTwoBytesPaymentSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentHashPaymentSendFailureZ; +} LDKCResult_ThirtyTwoBytesPaymentSendFailureZ; /** - * The contents of CResult_PaymentHashRetryableSendFailureZ + * The contents of CResult_ThirtyTwoBytesRetryableSendFailureZ */ -typedef union LDKCResult_PaymentHashRetryableSendFailureZPtr { +typedef union LDKCResult_ThirtyTwoBytesRetryableSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -7951,29 +8234,29 @@ typedef union LDKCResult_PaymentHashRetryableSendFailureZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKRetryableSendFailure *err; -} LDKCResult_PaymentHashRetryableSendFailureZPtr; +} LDKCResult_ThirtyTwoBytesRetryableSendFailureZPtr; /** - * A CResult_PaymentHashRetryableSendFailureZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesRetryableSendFailureZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::ln::outbound_payment::RetryableSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentHashRetryableSendFailureZ { +typedef struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ { /** - * The contents of this CResult_PaymentHashRetryableSendFailureZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesRetryableSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentHashRetryableSendFailureZPtr contents; + union LDKCResult_ThirtyTwoBytesRetryableSendFailureZPtr contents; /** - * Whether this CResult_PaymentHashRetryableSendFailureZ represents a success state. + * Whether this CResult_ThirtyTwoBytesRetryableSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentHashRetryableSendFailureZ; +} LDKCResult_ThirtyTwoBytesRetryableSendFailureZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_PaymentHashPaymentIdZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ { /** * The element at position 0 */ @@ -7982,194 +8265,181 @@ typedef struct LDKC2Tuple_PaymentHashPaymentIdZ { * The element at position 1 */ struct LDKThirtyTwoBytes b; -} LDKC2Tuple_PaymentHashPaymentIdZ; +} LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ; /** - * The contents of CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ */ -typedef union LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_PaymentHashPaymentIdZ *result; + struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKPaymentSendFailure *err; -} LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZPtr; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZPtr; /** - * A CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_PaymentHashPaymentIdZ on success and a crate::lightning::ln::outbound_payment::PaymentSendFailure on failure. + * A CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ on success and a crate::lightning::ln::outbound_payment::PaymentSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ { /** - * The contents of this CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZPtr contents; /** - * Whether this CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ; /** - * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesThirtyTwoBytesZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_ThirtyTwoBytesZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKThirtyTwoBytes *data; + struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_ThirtyTwoBytesZ; +} LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ; /** - * A tuple of 2 elements. See the individual fields for the types contained. + * Indicates that we failed to send a payment probe. Further errors may be surfaced later via + * [`Event::ProbeFailed`]. + * + * [`Event::ProbeFailed`]: crate::events::Event::ProbeFailed */ -typedef struct LDKC2Tuple_PaymentHashPaymentSecretZ { +typedef enum LDKProbeSendFailure_Tag { /** - * The element at position 0 + * We were unable to find a route to the destination. */ - struct LDKThirtyTwoBytes a; + LDKProbeSendFailure_RouteNotFound, /** - * The element at position 1 + * We failed to send the payment probes. */ - struct LDKThirtyTwoBytes b; -} LDKC2Tuple_PaymentHashPaymentSecretZ; + LDKProbeSendFailure_SendingFailed, + /** + * Must be last for serialization purposes + */ + LDKProbeSendFailure_Sentinel, +} LDKProbeSendFailure_Tag; + +typedef struct MUST_USE_STRUCT LDKProbeSendFailure { + LDKProbeSendFailure_Tag tag; + union { + struct { + struct LDKPaymentSendFailure sending_failed; + }; + }; +} LDKProbeSendFailure; /** - * The contents of CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ + * The contents of CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ */ -typedef union LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZPtr { +typedef union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_PaymentHashPaymentSecretZ *result; + struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ *result; /** - * Note that this value is always NULL, as there are no contents in the Err variant + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - void *err; -} LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZPtr; + struct LDKProbeSendFailure *err; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZPtr; /** - * A CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_PaymentHashPaymentSecretZ on success and a () on failure. + * A CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ on success and a crate::lightning::ln::outbound_payment::ProbeSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ { +typedef struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ { /** - * The contents of this CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ, accessible via either + * The contents of this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZPtr contents; + union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZPtr contents; /** - * Whether this CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ represents a success state. + * Whether this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ; /** - * The contents of CResult_PaymentSecretNoneZ + * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef union LDKCResult_PaymentSecretNoneZPtr { +typedef struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ { /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. + * The element at position 0 */ - struct LDKThirtyTwoBytes *result; + struct LDKThirtyTwoBytes a; /** - * Note that this value is always NULL, as there are no contents in the Err variant + * The element at position 1 */ - void *err; -} LDKCResult_PaymentSecretNoneZPtr; + struct LDKPublicKey b; +} LDKC2Tuple_ThirtyTwoBytesPublicKeyZ; /** - * A CResult_PaymentSecretNoneZ represents the result of a fallible operation, - * containing a crate::c_types::ThirtyTwoBytes on success and a () on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesPublicKeyZs of arbitrary size. + * This corresponds to std::vector in C++ */ -typedef struct LDKCResult_PaymentSecretNoneZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ { /** - * The contents of this CResult_PaymentSecretNoneZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - union LDKCResult_PaymentSecretNoneZPtr contents; + struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *data; /** - * Whether this CResult_PaymentSecretNoneZ represents a success state. + * The number of elements pointed to by `data`. */ - bool result_ok; -} LDKCResult_PaymentSecretNoneZ; + uintptr_t datalen; +} LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ; /** - * The contents of CResult_PaymentPreimageAPIErrorZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ */ -typedef union LDKCResult_PaymentPreimageAPIErrorZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKThirtyTwoBytes *result; + struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *result; /** - * A pointer to the contents in the error state. - * Reading from this pointer when `result_ok` is set is undefined. + * Note that this value is always NULL, as there are no contents in the Err variant */ - struct LDKAPIError *err; -} LDKCResult_PaymentPreimageAPIErrorZPtr; + void *err; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZPtr; /** - * A CResult_PaymentPreimageAPIErrorZ represents the result of a fallible operation, - * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::util::errors::APIError on failure. + * A CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentPreimageAPIErrorZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ { /** - * The contents of this CResult_PaymentPreimageAPIErrorZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentPreimageAPIErrorZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZPtr contents; /** - * Whether this CResult_PaymentPreimageAPIErrorZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentPreimageAPIErrorZ; - -/** - * An enum which can either contain a crate::c_types::derived::CVec_ChainHashZ or not - */ -typedef enum LDKCOption_CVec_ChainHashZZ_Tag { - /** - * When we're in this state, this COption_CVec_ChainHashZZ contains a crate::c_types::derived::CVec_ChainHashZ - */ - LDKCOption_CVec_ChainHashZZ_Some, - /** - * When we're in this state, this COption_CVec_ChainHashZZ contains nothing - */ - LDKCOption_CVec_ChainHashZZ_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_CVec_ChainHashZZ_Sentinel, -} LDKCOption_CVec_ChainHashZZ_Tag; - -typedef struct LDKCOption_CVec_ChainHashZZ { - LDKCOption_CVec_ChainHashZZ_Tag tag; - union { - struct { - struct LDKCVec_ChainHashZ some; - }; - }; -} LDKCOption_CVec_ChainHashZZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ; @@ -8476,21 +8746,12 @@ typedef struct MUST_USE_STRUCT LDKChannelMonitorUpdate { * blocks are connected and disconnected. * * Each channel is associated with a [`ChannelMonitor`]. Implementations of this trait are - * responsible for maintaining a set of monitors such that they can be updated accordingly as - * channel state changes and HTLCs are resolved. See method documentation for specific - * requirements. - * - * Implementations **must** ensure that updates are successfully applied and persisted upon method - * completion. If an update fails with a [`PermanentFailure`], then it must immediately shut down - * without taking any further action such as persisting the current state. - * - * If an implementation maintains multiple instances of a channel's monitor (e.g., by storing - * backup copies), then it must ensure that updates are applied across all instances. Otherwise, it - * could result in a revoked transaction being broadcast, allowing the counterparty to claim all - * funds in the channel. See [`ChannelMonitorUpdateStatus`] for more details about how to handle - * multiple instances. + * responsible for maintaining a set of monitors such that they can be updated as channel state + * changes. On each update, *all copies* of a [`ChannelMonitor`] must be updated and the update + * persisted to disk to ensure that the latest [`ChannelMonitor`] state can be reloaded if the + * application crashes. * - * [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure + * See method documentation and [`ChannelMonitorUpdateStatus`] for specific requirements. */ typedef struct LDKWatch { /** @@ -8505,21 +8766,33 @@ typedef struct LDKWatch { * with any spends of outputs returned by [`get_outputs_to_watch`]. In practice, this means * calling [`block_connected`] and [`block_disconnected`] on the monitor. * - * Note: this interface MUST error with [`ChannelMonitorUpdateStatus::PermanentFailure`] if - * the given `funding_txo` has previously been registered via `watch_channel`. + * A return of `Err(())` indicates that the channel should immediately be force-closed without + * broadcasting the funding transaction. + * + * If the given `funding_txo` has previously been registered via `watch_channel`, `Err(())` + * must be returned. * * [`get_outputs_to_watch`]: channelmonitor::ChannelMonitor::get_outputs_to_watch * [`block_connected`]: channelmonitor::ChannelMonitor::block_connected * [`block_disconnected`]: channelmonitor::ChannelMonitor::block_disconnected */ - enum LDKChannelMonitorUpdateStatus (*watch_channel)(const void *this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor); + struct LDKCResult_ChannelMonitorUpdateStatusNoneZ (*watch_channel)(const void *this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor); /** * Updates a channel identified by `funding_txo` by applying `update` to its monitor. * - * Implementations must call [`update_monitor`] with the given update. See - * [`ChannelMonitorUpdateStatus`] for invariants around returning an error. + * Implementations must call [`ChannelMonitor::update_monitor`] with the given update. This + * may fail (returning an `Err(())`), in which case this should return + * [`ChannelMonitorUpdateStatus::InProgress`] (and the update should never complete). This + * generally implies the channel has been closed (either by the funding outpoint being spent + * on-chain or the [`ChannelMonitor`] having decided to do so and broadcasted a transaction), + * and the [`ChannelManager`] state will be updated once it sees the funding spend on-chain. + * + * In general, persistence failures should be retried after returning + * [`ChannelMonitorUpdateStatus::InProgress`] and eventually complete. If a failure truly + * cannot be retried, the node should shut down immediately after returning + * [`ChannelMonitorUpdateStatus::UnrecoverableError`], see its documentation for more info. * - * [`update_monitor`]: channelmonitor::ChannelMonitor::update_monitor + * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ enum LDKChannelMonitorUpdateStatus (*update_channel)(const void *this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); /** @@ -8627,6 +8900,56 @@ typedef struct LDKu8slice { +/** + * A semantically valid [`InvoiceRequest`] that hasn't been signed. + * + * # Serialization + * + * This is serialized as a TLV stream, which includes TLV records from the originating message. As + * such, it may include unknown, odd TLV records. + */ +typedef struct MUST_USE_STRUCT LDKUnsignedInvoiceRequest { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeUnsignedInvoiceRequest *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKUnsignedInvoiceRequest; + + + +/** + * A semantically valid [`Bolt12Invoice`] that hasn't been signed. + * + * # Serialization + * + * This is serialized as a TLV stream, which includes TLV records from the originating message. As + * such, it may include unknown, odd TLV records. + */ +typedef struct MUST_USE_STRUCT LDKUnsignedBolt12Invoice { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeUnsignedBolt12Invoice *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKUnsignedBolt12Invoice; + + + /** * The unsigned part of a [`channel_update`] message. * @@ -8746,7 +9069,7 @@ typedef struct LDKNodeSigner { * * Errors if the [`Recipient`] variant is not supported by the implementation. */ - struct LDKCResult_SharedSecretNoneZ (*ecdh)(const void *this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_ScalarZ tweak); + struct LDKCResult_ThirtyTwoBytesNoneZ (*ecdh)(const void *this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_BigEndianScalarZ tweak); /** * Sign an invoice. * @@ -8761,6 +9084,34 @@ typedef struct LDKNodeSigner { * Errors if the [`Recipient`] variant is not supported by the implementation. */ struct LDKCResult_RecoverableSignatureNoneZ (*sign_invoice)(const void *this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient); + /** + * Signs the [`TaggedHash`] of a BOLT 12 invoice request. + * + * May be called by a function passed to [`UnsignedInvoiceRequest::sign`] where + * `invoice_request` is the callee. + * + * Implementors may check that the `invoice_request` is expected rather than blindly signing + * the tagged hash. An `Ok` result should sign `invoice_request.tagged_hash().as_digest()` with + * the node's signing key or an ephemeral key to preserve privacy, whichever is associated with + * [`UnsignedInvoiceRequest::payer_id`]. + * + * [`TaggedHash`]: crate::offers::merkle::TaggedHash + */ + struct LDKCResult_SchnorrSignatureNoneZ (*sign_bolt12_invoice_request)(const void *this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR invoice_request); + /** + * Signs the [`TaggedHash`] of a BOLT 12 invoice. + * + * May be called by a function passed to [`UnsignedBolt12Invoice::sign`] where `invoice` is the + * callee. + * + * Implementors may check that the `invoice` is expected rather than blindly signing the tagged + * hash. An `Ok` result should sign `invoice.tagged_hash().as_digest()` with the node's signing + * key or an ephemeral key to preserve privacy, whichever is associated with + * [`UnsignedBolt12Invoice::signing_pubkey`]. + * + * [`TaggedHash`]: crate::offers::merkle::TaggedHash + */ + struct LDKCResult_SchnorrSignatureNoneZ (*sign_bolt12_invoice)(const void *this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR invoice); /** * Sign a gossip message. * @@ -8769,7 +9120,7 @@ typedef struct LDKNodeSigner { * message to be broadcast, as otherwise it may prevent one from receiving funds over the * corresponding channel. */ - struct LDKCResult_SignatureNoneZ (*sign_gossip_message)(const void *this_arg, struct LDKUnsignedGossipMessage msg); + struct LDKCResult_ECDSASignatureNoneZ (*sign_gossip_message)(const void *this_arg, struct LDKUnsignedGossipMessage msg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -8828,7 +9179,7 @@ typedef struct LDKSignerProvider { * This method should return a different value each time it is called, to avoid linking * on-chain funds across channels as controlled to the same user. */ - struct LDKCResult_ScriptNoneZ (*get_destination_script)(const void *this_arg); + struct LDKCResult_CVec_u8ZNoneZ (*get_destination_script)(const void *this_arg); /** * Get a script pubkey which we will send funds to when closing a channel. * @@ -8935,12 +9286,14 @@ typedef struct LDKRouter { * called [`funding_transaction_generated`] for outbound channels) being closed. * * Note that you can be a bit lazier about writing out `ChannelManager` than you can be with - * [`ChannelMonitor`]. With [`ChannelMonitor`] you MUST write each monitor update out to disk before - * returning from [`chain::Watch::watch_channel`]/[`update_channel`], with ChannelManagers, writing updates - * happens out-of-band (and will prevent any other `ChannelManager` operations from occurring during - * the serialization process). If the deserialized version is out-of-date compared to the - * [`ChannelMonitor`] passed by reference to [`read`], those channels will be force-closed based on the - * `ChannelMonitor` state and no funds will be lost (mod on-chain transaction fees). + * [`ChannelMonitor`]. With [`ChannelMonitor`] you MUST durably write each + * [`ChannelMonitorUpdate`] before returning from + * [`chain::Watch::watch_channel`]/[`update_channel`] or before completing async writes. With + * `ChannelManager`s, writing updates happens out-of-band (and will prevent any other + * `ChannelManager` operations from occurring during the serialization process). If the + * deserialized version is out-of-date compared to the [`ChannelMonitor`] passed by reference to + * [`read`], those channels will be force-closed based on the `ChannelMonitor` state and no funds + * will be lost (modulo on-chain transaction fees). * * Note that the deserializer is only implemented for `(`[`BlockHash`]`, `[`ChannelManager`]`)`, which * tells you the last block hash which was connected. You should get the best block tip before using the manager. @@ -8994,7 +9347,7 @@ typedef struct MUST_USE_STRUCT LDKChannelManager { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_BlockHashChannelManagerZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ { /** * The element at position 0 */ @@ -9003,40 +9356,40 @@ typedef struct LDKC2Tuple_BlockHashChannelManagerZ { * The element at position 1 */ struct LDKChannelManager b; -} LDKC2Tuple_BlockHashChannelManagerZ; +} LDKC2Tuple_ThirtyTwoBytesChannelManagerZ; /** - * The contents of CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ */ -typedef union LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_BlockHashChannelManagerZ *result; + struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKDecodeError *err; -} LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZPtr; /** - * A CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_BlockHashChannelManagerZ on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelManagerZ on success and a crate::lightning::ln::msgs::DecodeError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ { /** - * The contents of this CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZPtr contents; /** - * Whether this CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ; /** * Options for how to set the max dust HTLC exposure allowed on a channel. See @@ -9406,7 +9759,7 @@ typedef struct LDKCResult_HTLCUpdateDecodeErrorZ { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_OutPointScriptZ { +typedef struct LDKC2Tuple_OutPointCVec_u8ZZ { /** * The element at position 0 */ @@ -9415,12 +9768,12 @@ typedef struct LDKC2Tuple_OutPointScriptZ { * The element at position 1 */ struct LDKCVec_u8Z b; -} LDKC2Tuple_OutPointScriptZ; +} LDKC2Tuple_OutPointCVec_u8ZZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_u32ScriptZ { +typedef struct LDKC2Tuple_u32CVec_u8ZZ { /** * The element at position 0 */ @@ -9429,28 +9782,28 @@ typedef struct LDKC2Tuple_u32ScriptZ { * The element at position 1 */ struct LDKCVec_u8Z b; -} LDKC2Tuple_u32ScriptZ; +} LDKC2Tuple_u32CVec_u8ZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_u32ScriptZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_u32CVec_u8ZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_u32ScriptZZ { +typedef struct LDKCVec_C2Tuple_u32CVec_u8ZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_u32ScriptZ *data; + struct LDKC2Tuple_u32CVec_u8ZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_u32ScriptZZ; +} LDKCVec_C2Tuple_u32CVec_u8ZZZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ { /** * The element at position 0 */ @@ -9458,24 +9811,40 @@ typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ { /** * The element at position 1 */ - struct LDKCVec_C2Tuple_u32ScriptZZ b; -} LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ; + struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b; +} LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *data; + struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ; +} LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ; + +/** + * A dynamically-allocated array of crate::lightning::ln::chan_utils::CommitmentTransactions of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_CommitmentTransactionZ { + /** + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). + */ + struct LDKCommitmentTransaction *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_CommitmentTransactionZ; /** * A tuple of 2 elements. See the individual fields for the types contained. @@ -9510,7 +9879,7 @@ typedef struct LDKCVec_C2Tuple_u32TxOutZZ { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ { /** * The element at position 0 */ @@ -9519,10 +9888,10 @@ typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ { * The element at position 1 */ struct LDKCVec_C2Tuple_u32TxOutZZ b; -} LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ; +} LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZs of arbitrary size. * This corresponds to std::vector in C++ */ typedef struct LDKCVec_TransactionOutputsZ { @@ -9530,7 +9899,7 @@ typedef struct LDKCVec_TransactionOutputsZ { * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *data; + struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *data; /** * The number of elements pointed to by `data`. */ @@ -9708,7 +10077,7 @@ typedef struct LDKCVec_BalanceZ { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_BlockHashChannelMonitorZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ { /** * The element at position 0 */ @@ -9717,40 +10086,40 @@ typedef struct LDKC2Tuple_BlockHashChannelMonitorZ { * The element at position 1 */ struct LDKChannelMonitor b; -} LDKC2Tuple_BlockHashChannelMonitorZ; +} LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ; /** - * The contents of CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ */ -typedef union LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_BlockHashChannelMonitorZ *result; + struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKDecodeError *err; -} LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZPtr; /** - * A CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_BlockHashChannelMonitorZ on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelMonitorZ on success and a crate::lightning::ln::msgs::DecodeError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ { /** - * The contents of this CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZPtr contents; /** - * Whether this CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ; /** * Defines a type identifier for sending messages over the wire. @@ -10115,36 +10484,36 @@ typedef struct LDKCResult_COption_TypeZDecodeErrorZ { } LDKCResult_COption_TypeZDecodeErrorZ; /** - * An enum which can either contain a crate::lightning::ln::msgs::NetAddress or not + * An enum which can either contain a crate::lightning::ln::msgs::SocketAddress or not */ -typedef enum LDKCOption_NetAddressZ_Tag { +typedef enum LDKCOption_SocketAddressZ_Tag { /** - * When we're in this state, this COption_NetAddressZ contains a crate::lightning::ln::msgs::NetAddress + * When we're in this state, this COption_SocketAddressZ contains a crate::lightning::ln::msgs::SocketAddress */ - LDKCOption_NetAddressZ_Some, + LDKCOption_SocketAddressZ_Some, /** - * When we're in this state, this COption_NetAddressZ contains nothing + * When we're in this state, this COption_SocketAddressZ contains nothing */ - LDKCOption_NetAddressZ_None, + LDKCOption_SocketAddressZ_None, /** * Must be last for serialization purposes */ - LDKCOption_NetAddressZ_Sentinel, -} LDKCOption_NetAddressZ_Tag; + LDKCOption_SocketAddressZ_Sentinel, +} LDKCOption_SocketAddressZ_Tag; -typedef struct LDKCOption_NetAddressZ { - LDKCOption_NetAddressZ_Tag tag; +typedef struct LDKCOption_SocketAddressZ { + LDKCOption_SocketAddressZ_Tag tag; union { struct { - struct LDKNetAddress some; + struct LDKSocketAddress some; }; }; -} LDKCOption_NetAddressZ; +} LDKCOption_SocketAddressZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ { +typedef struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ { /** * The element at position 0 */ @@ -10152,24 +10521,24 @@ typedef struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ { /** * The element at position 1 */ - struct LDKCOption_NetAddressZ b; -} LDKC2Tuple_PublicKeyCOption_NetAddressZZ; + struct LDKCOption_SocketAddressZ b; +} LDKC2Tuple_PublicKeyCOption_SocketAddressZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_PublicKeyCOption_NetAddressZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_PublicKeyCOption_SocketAddressZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ { +typedef struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *data; + struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ; +} LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ; @@ -10357,100 +10726,258 @@ typedef struct LDKCResult_u32GraphSyncErrorZ { } LDKCResult_u32GraphSyncErrorZ; /** - * Represents a valid secp256k1 secret key serialized as a 32 byte array. + * The contents of CResult_CVec_u8ZIOErrorZ */ -typedef struct LDKSecretKey { +typedef union LDKCResult_CVec_u8ZIOErrorZPtr { /** - * The bytes of the secret key + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - uint8_t bytes[32]; -} LDKSecretKey; + struct LDKCVec_u8Z *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + enum LDKIOError *err; +} LDKCResult_CVec_u8ZIOErrorZPtr; /** - * An enum which can either contain a crate::c_types::SecretKey or not + * A CResult_CVec_u8ZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_u8Z on success and a crate::c_types::IOError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef enum LDKCOption_KeyPairZ_Tag { +typedef struct LDKCResult_CVec_u8ZIOErrorZ { /** - * When we're in this state, this COption_KeyPairZ contains a crate::c_types::SecretKey + * The contents of this CResult_CVec_u8ZIOErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKCOption_KeyPairZ_Some, + union LDKCResult_CVec_u8ZIOErrorZPtr contents; /** - * When we're in this state, this COption_KeyPairZ contains nothing + * Whether this CResult_CVec_u8ZIOErrorZ represents a success state. */ - LDKCOption_KeyPairZ_None, + bool result_ok; +} LDKCResult_CVec_u8ZIOErrorZ; + +/** + * A dynamically-allocated array of crate::c_types::Strs of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_StrZ { /** - * Must be last for serialization purposes + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - LDKCOption_KeyPairZ_Sentinel, -} LDKCOption_KeyPairZ_Tag; + struct LDKStr *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_StrZ; -typedef struct LDKCOption_KeyPairZ { - LDKCOption_KeyPairZ_Tag tag; - union { - struct { - struct LDKSecretKey some; - }; - }; -} LDKCOption_KeyPairZ; +/** + * The contents of CResult_CVec_StrZIOErrorZ + */ +typedef union LDKCResult_CVec_StrZIOErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKCVec_StrZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + enum LDKIOError *err; +} LDKCResult_CVec_StrZIOErrorZPtr; /** - * The contents of CResult_COption_KeyPairZNoneZ + * A CResult_CVec_StrZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_StrZ on success and a crate::c_types::IOError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef union LDKCResult_COption_KeyPairZNoneZPtr { +typedef struct LDKCResult_CVec_StrZIOErrorZ { + /** + * The contents of this CResult_CVec_StrZIOErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_CVec_StrZIOErrorZPtr contents; + /** + * Whether this CResult_CVec_StrZIOErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_CVec_StrZIOErrorZ; + +/** + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelMonitorZs of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ { + /** + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). + */ + struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ; + +/** + * The contents of CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + */ +typedef union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKCOption_KeyPairZ *result; + struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ *result; /** - * Note that this value is always NULL, as there are no contents in the Err variant + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - void *err; -} LDKCResult_COption_KeyPairZNoneZPtr; + enum LDKIOError *err; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZPtr; /** - * A CResult_COption_KeyPairZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::COption_KeyPairZ on success and a () on failure. + * A CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ on success and a crate::c_types::IOError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_COption_KeyPairZNoneZ { +typedef struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ { /** - * The contents of this CResult_COption_KeyPairZNoneZ, accessible via either + * The contents of this CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_COption_KeyPairZNoneZPtr contents; + union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZPtr contents; /** - * Whether this CResult_COption_KeyPairZNoneZ represents a success state. + * Whether this CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ represents a success state. */ bool result_ok; -} LDKCResult_COption_KeyPairZNoneZ; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ; /** - * An enum which can either contain a crate::c_types::derived::CVec_u8Z or not + * The contents of CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + */ +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + enum LDKIOError *err; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZPtr; + +/** + * A CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelMonitorZ on success and a crate::c_types::IOError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef enum LDKCOption_ScriptZ_Tag { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ { /** - * When we're in this state, this COption_ScriptZ contains a crate::c_types::derived::CVec_u8Z + * The contents of this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKCOption_ScriptZ_Some, + union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZPtr contents; /** - * When we're in this state, this COption_ScriptZ contains nothing + * Whether this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ represents a success state. */ - LDKCOption_ScriptZ_None, + bool result_ok; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ; + +/** + * Represents a valid secp256k1 secret key serialized as a 32 byte array. + */ +typedef struct LDKSecretKey { + /** + * The bytes of the secret key + */ + uint8_t bytes[32]; +} LDKSecretKey; + +/** + * An enum which can either contain a crate::c_types::SecretKey or not + */ +typedef enum LDKCOption_SecretKeyZ_Tag { + /** + * When we're in this state, this COption_SecretKeyZ contains a crate::c_types::SecretKey + */ + LDKCOption_SecretKeyZ_Some, + /** + * When we're in this state, this COption_SecretKeyZ contains nothing + */ + LDKCOption_SecretKeyZ_None, /** * Must be last for serialization purposes */ - LDKCOption_ScriptZ_Sentinel, -} LDKCOption_ScriptZ_Tag; + LDKCOption_SecretKeyZ_Sentinel, +} LDKCOption_SecretKeyZ_Tag; -typedef struct LDKCOption_ScriptZ { - LDKCOption_ScriptZ_Tag tag; +typedef struct LDKCOption_SecretKeyZ { + LDKCOption_SecretKeyZ_Tag tag; union { struct { - struct LDKCVec_u8Z some; + struct LDKSecretKey some; }; }; -} LDKCOption_ScriptZ; +} LDKCOption_SecretKeyZ; + + + +/** + * An [`InvoiceRequest`] that has been verified by [`InvoiceRequest::verify`] and exposes different + * ways to respond depending on whether the signing keys were derived. + */ +typedef struct MUST_USE_STRUCT LDKVerifiedInvoiceRequest { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeVerifiedInvoiceRequest *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKVerifiedInvoiceRequest; + +/** + * The contents of CResult_VerifiedInvoiceRequestNoneZ + */ +typedef union LDKCResult_VerifiedInvoiceRequestNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKVerifiedInvoiceRequest *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_VerifiedInvoiceRequestNoneZPtr; + +/** + * A CResult_VerifiedInvoiceRequestNoneZ represents the result of a fallible operation, + * containing a crate::lightning::offers::invoice_request::VerifiedInvoiceRequest on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_VerifiedInvoiceRequestNoneZ { + /** + * The contents of this CResult_VerifiedInvoiceRequestNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_VerifiedInvoiceRequestNoneZPtr contents; + /** + * Whether this CResult_VerifiedInvoiceRequestNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_VerifiedInvoiceRequestNoneZ; /** * A dynamically-allocated array of crate::c_types::Witnesss of arbitrary size. @@ -10496,64 +11023,70 @@ typedef struct LDKCOption_i64Z { } LDKCOption_i64Z; /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * The contents of CResult_SocketAddressDecodeErrorZ */ -typedef enum LDKCOption_TxidZ_Tag { +typedef union LDKCResult_SocketAddressDecodeErrorZPtr { /** - * When we're in this state, this COption_TxidZ contains a crate::c_types::ThirtyTwoBytes + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - LDKCOption_TxidZ_Some, + struct LDKSocketAddress *result; /** - * When we're in this state, this COption_TxidZ contains nothing + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - LDKCOption_TxidZ_None, + struct LDKDecodeError *err; +} LDKCResult_SocketAddressDecodeErrorZPtr; + +/** + * A CResult_SocketAddressDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::msgs::SocketAddress on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_SocketAddressDecodeErrorZ { /** - * Must be last for serialization purposes + * The contents of this CResult_SocketAddressDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKCOption_TxidZ_Sentinel, -} LDKCOption_TxidZ_Tag; - -typedef struct LDKCOption_TxidZ { - LDKCOption_TxidZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_TxidZ; + union LDKCResult_SocketAddressDecodeErrorZPtr contents; + /** + * Whether this CResult_SocketAddressDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_SocketAddressDecodeErrorZ; /** - * The contents of CResult_NetAddressDecodeErrorZ + * The contents of CResult_SocketAddressSocketAddressParseErrorZ */ -typedef union LDKCResult_NetAddressDecodeErrorZPtr { +typedef union LDKCResult_SocketAddressSocketAddressParseErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKNetAddress *result; + struct LDKSocketAddress *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ - struct LDKDecodeError *err; -} LDKCResult_NetAddressDecodeErrorZPtr; + enum LDKSocketAddressParseError *err; +} LDKCResult_SocketAddressSocketAddressParseErrorZPtr; /** - * A CResult_NetAddressDecodeErrorZ represents the result of a fallible operation, - * containing a crate::lightning::ln::msgs::NetAddress on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_SocketAddressSocketAddressParseErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::msgs::SocketAddress on success and a crate::lightning::ln::msgs::SocketAddressParseError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_NetAddressDecodeErrorZ { +typedef struct LDKCResult_SocketAddressSocketAddressParseErrorZ { /** - * The contents of this CResult_NetAddressDecodeErrorZ, accessible via either + * The contents of this CResult_SocketAddressSocketAddressParseErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_NetAddressDecodeErrorZPtr contents; + union LDKCResult_SocketAddressSocketAddressParseErrorZPtr contents; /** - * Whether this CResult_NetAddressDecodeErrorZ represents a success state. + * Whether this CResult_SocketAddressSocketAddressParseErrorZ represents a success state. */ bool result_ok; -} LDKCResult_NetAddressDecodeErrorZ; +} LDKCResult_SocketAddressSocketAddressParseErrorZ; @@ -11037,27 +11570,6 @@ typedef struct LDKCResult_TxAckRbfDecodeErrorZ { bool result_ok; } LDKCResult_TxAckRbfDecodeErrorZ; - - -/** - * A tx_abort message which signals the cancellation of an in-progress transaction negotiation. - * - */ -typedef struct MUST_USE_STRUCT LDKTxAbort { - /** - * A pointer to the opaque Rust object. - * Nearly everywhere, inner must be non-null, however in places where - * the Rust equivalent takes an Option, it may be set to null to indicate None. - */ - LDKnativeTxAbort *inner; - /** - * Indicates that this is the only struct which contains the same pointer. - * Rust functions which take ownership of an object provided via an argument require - * this to be true and invalidate the object pointed to by inner. - */ - bool is_owned; -} LDKTxAbort; - /** * The contents of CResult_TxAbortDecodeErrorZ */ @@ -13100,36 +13612,63 @@ typedef struct LDKCResult_TrustedCommitmentTransactionNoneZ { } LDKCResult_TrustedCommitmentTransactionNoneZ; /** - * The contents of CResult_CVec_SignatureZNoneZ + * The contents of CResult_CVec_ECDSASignatureZNoneZ */ -typedef union LDKCResult_CVec_SignatureZNoneZPtr { +typedef union LDKCResult_CVec_ECDSASignatureZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKCVec_SignatureZ *result; + struct LDKCVec_ECDSASignatureZ *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_CVec_SignatureZNoneZPtr; +} LDKCResult_CVec_ECDSASignatureZNoneZPtr; /** - * A CResult_CVec_SignatureZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::CVec_SignatureZ on success and a () on failure. + * A CResult_CVec_ECDSASignatureZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_ECDSASignatureZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_CVec_SignatureZNoneZ { +typedef struct LDKCResult_CVec_ECDSASignatureZNoneZ { /** - * The contents of this CResult_CVec_SignatureZNoneZ, accessible via either + * The contents of this CResult_CVec_ECDSASignatureZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_CVec_SignatureZNoneZPtr contents; + union LDKCResult_CVec_ECDSASignatureZNoneZPtr contents; /** - * Whether this CResult_CVec_SignatureZNoneZ represents a success state. + * Whether this CResult_CVec_ECDSASignatureZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_CVec_SignatureZNoneZ; +} LDKCResult_CVec_ECDSASignatureZNoneZ; + +/** + * An enum which can either contain a usize or not + */ +typedef enum LDKCOption_usizeZ_Tag { + /** + * When we're in this state, this COption_usizeZ contains a usize + */ + LDKCOption_usizeZ_Some, + /** + * When we're in this state, this COption_usizeZ contains nothing + */ + LDKCOption_usizeZ_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_usizeZ_Sentinel, +} LDKCOption_usizeZ_Tag; + +typedef struct LDKCOption_usizeZ { + LDKCOption_usizeZ_Tag tag; + union { + struct { + uintptr_t some; + }; + }; +} LDKCOption_usizeZ; /** * The contents of CResult_ShutdownScriptDecodeErrorZ @@ -13246,7 +13785,7 @@ typedef struct LDKPaymentPurpose_LDKInvoicePayment_Body { * [`ChannelManager::create_inbound_payment`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment * [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds */ - struct LDKCOption_PaymentPreimageZ payment_preimage; + struct LDKCOption_ThirtyTwoBytesZ payment_preimage; /** * The \"payment secret\". This authenticates the sender to the recipient, preventing a * number of deanonymization attacks during the routing process. @@ -13305,6 +13844,59 @@ typedef struct LDKCResult_PaymentPurposeDecodeErrorZ { bool result_ok; } LDKCResult_PaymentPurposeDecodeErrorZ; + + +/** + * Information about an HTLC that is part of a payment that can be claimed. + */ +typedef struct MUST_USE_STRUCT LDKClaimedHTLC { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeClaimedHTLC *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKClaimedHTLC; + +/** + * The contents of CResult_ClaimedHTLCDecodeErrorZ + */ +typedef union LDKCResult_ClaimedHTLCDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKClaimedHTLC *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_ClaimedHTLCDecodeErrorZPtr; + +/** + * A CResult_ClaimedHTLCDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::events::ClaimedHTLC on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ClaimedHTLCDecodeErrorZ { + /** + * The contents of this CResult_ClaimedHTLCDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ClaimedHTLCDecodeErrorZPtr contents; + /** + * Whether this CResult_ClaimedHTLCDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_ClaimedHTLCDecodeErrorZ; + /** * When the payment path failure took place and extra details about it. [`PathFailure::OnPath`] may * contain a [`NetworkUpdate`] that needs to be applied to the [`NetworkGraph`]. @@ -13496,6 +14088,11 @@ typedef enum LDKClosureReason_Tag { * The channel has been immediately closed. */ LDKClosureReason_CounterpartyCoopClosedUnfundedChannel, + /** + * Another channel in the same funding batch closed before the funding transaction + * was ready to be broadcast. + */ + LDKClosureReason_FundingBatchClosure, /** * Must be last for serialization purposes */ @@ -13769,56 +14366,45 @@ typedef struct LDKCResult_PaymentFailureReasonDecodeErrorZ { /** * An enum which can either contain a crate::c_types::U128 or not */ -typedef enum LDKCOption_u128Z_Tag { +typedef enum LDKCOption_U128Z_Tag { /** - * When we're in this state, this COption_u128Z contains a crate::c_types::U128 + * When we're in this state, this COption_U128Z contains a crate::c_types::U128 */ - LDKCOption_u128Z_Some, + LDKCOption_U128Z_Some, /** - * When we're in this state, this COption_u128Z contains nothing + * When we're in this state, this COption_U128Z contains nothing */ - LDKCOption_u128Z_None, + LDKCOption_U128Z_None, /** * Must be last for serialization purposes */ - LDKCOption_u128Z_Sentinel, -} LDKCOption_u128Z_Tag; + LDKCOption_U128Z_Sentinel, +} LDKCOption_U128Z_Tag; -typedef struct LDKCOption_u128Z { - LDKCOption_u128Z_Tag tag; +typedef struct LDKCOption_U128Z { + LDKCOption_U128Z_Tag tag; union { struct { struct LDKU128 some; }; }; -} LDKCOption_u128Z; +} LDKCOption_U128Z; /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * A dynamically-allocated array of crate::lightning::events::ClaimedHTLCs of arbitrary size. + * This corresponds to std::vector in C++ */ -typedef enum LDKCOption_PaymentIdZ_Tag { +typedef struct LDKCVec_ClaimedHTLCZ { /** - * When we're in this state, this COption_PaymentIdZ contains a crate::c_types::ThirtyTwoBytes - */ - LDKCOption_PaymentIdZ_Some, - /** - * When we're in this state, this COption_PaymentIdZ contains nothing + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - LDKCOption_PaymentIdZ_None, + struct LDKClaimedHTLC *data; /** - * Must be last for serialization purposes + * The number of elements pointed to by `data`. */ - LDKCOption_PaymentIdZ_Sentinel, -} LDKCOption_PaymentIdZ_Tag; - -typedef struct LDKCOption_PaymentIdZ { - LDKCOption_PaymentIdZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_PaymentIdZ; + uintptr_t datalen; +} LDKCVec_ClaimedHTLCZ; /** * An enum which can either contain a crate::lightning::events::PaymentFailureReason or not @@ -14048,9 +14634,19 @@ typedef enum LDKEvent_Tag { * Note that if the preimage is not known, you should call * [`ChannelManager::fail_htlc_backwards`] or [`ChannelManager::fail_htlc_backwards_with_reason`] * to free up resources for this HTLC and avoid network congestion. - * If you fail to call either [`ChannelManager::claim_funds`], [`ChannelManager::fail_htlc_backwards`], - * or [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will be - * automatically failed. + * + * If [`Event::PaymentClaimable::onion_fields`] is `Some`, and includes custom TLVs with even type + * numbers, you should use [`ChannelManager::fail_htlc_backwards_with_reason`] with + * [`FailureCode::InvalidOnionPayload`] if you fail to understand and handle the contents, or + * [`ChannelManager::claim_funds_with_known_custom_tlvs`] upon successful handling. + * If you don't intend to check for custom TLVs, you can simply use + * [`ChannelManager::claim_funds`], which will automatically fail back even custom TLVs. + * + * If you fail to call [`ChannelManager::claim_funds`], + * [`ChannelManager::claim_funds_with_known_custom_tlvs`], + * [`ChannelManager::fail_htlc_backwards`], or + * [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will + * be automatically failed. * * # Note * LDK will not stop an inbound payment from being paid multiple times, so multiple @@ -14062,6 +14658,8 @@ typedef enum LDKEvent_Tag { * This event used to be called `PaymentReceived` in LDK versions 0.0.112 and earlier. * * [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds + * [`ChannelManager::claim_funds_with_known_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_custom_tlvs + * [`FailureCode::InvalidOnionPayload`]: crate::ln::channelmanager::FailureCode::InvalidOnionPayload * [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards * [`ChannelManager::fail_htlc_backwards_with_reason`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards_with_reason */ @@ -14099,6 +14697,11 @@ typedef enum LDKEvent_Tag { * payment is no longer retryable, due either to the [`Retry`] provided or * [`ChannelManager::abandon_payment`] having been called for the corresponding payment. * + * In exceedingly rare cases, it is possible that an [`Event::PaymentFailed`] is generated for + * a payment after an [`Event::PaymentSent`] event for this same payment has already been + * received and processed. In this case, the [`Event::PaymentFailed`] event MUST be ignored, + * and the payment MUST be treated as having succeeded. + * * [`Retry`]: crate::ln::channelmanager::Retry * [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment */ @@ -14185,18 +14788,28 @@ typedef enum LDKEvent_Tag { /** * Used to indicate that a previously opened channel with the given `channel_id` is in the * process of closure. + * + * Note that this event is only triggered for accepted channels: if the + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true and the channel is + * rejected, no `ChannelClosed` event will be sent. + * + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ LDKEvent_ChannelClosed, /** * Used to indicate to the user that they can abandon the funding transaction and recycle the * inputs for another purpose. + * + * This event is not guaranteed to be generated for channels that are closed due to a restart. */ LDKEvent_DiscardFunding, /** * Indicates a request to open a new channel by a peer. * - * To accept the request, call [`ChannelManager::accept_inbound_channel`]. To reject the - * request, call [`ChannelManager::force_close_without_broadcasting_txn`]. + * To accept the request, call [`ChannelManager::accept_inbound_channel`]. To reject the request, + * call [`ChannelManager::force_close_without_broadcasting_txn`]. Note that a ['ChannelClosed`] + * event will _not_ be triggered if the channel is rejected. * * The event is only triggered when a new open channel request is received and the * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. @@ -14262,11 +14875,15 @@ typedef struct LDKEvent_LDKFundingGenerationReady_Body { */ struct LDKCVec_u8Z output_script; /** - * The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or a - * random value for an inbound channel. This may be zero for objects serialized with LDK - * versions prior to 0.0.113. + * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound + * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. This may be zero for objects + * serialized with LDK versions prior to 0.0.113. * * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ struct LDKU128 user_channel_id; } LDKEvent_LDKFundingGenerationReady_Body; @@ -14327,14 +14944,12 @@ typedef struct LDKEvent_LDKPaymentClaimable_Body { struct LDKPaymentPurpose purpose; /** * The `channel_id` indicating over which channel we received the payment. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes via_channel_id; + struct LDKCOption_ThirtyTwoBytesZ via_channel_id; /** * The `user_channel_id` indicating over which channel we received the payment. */ - struct LDKCOption_u128Z via_user_channel_id; + struct LDKCOption_U128Z via_user_channel_id; /** * The block height at which this payment will be failed back and will no longer be * eligible for claiming. @@ -14374,6 +14989,16 @@ typedef struct LDKEvent_LDKPaymentClaimed_Body { * spontaneous payment. */ struct LDKPaymentPurpose purpose; + /** + * The HTLCs that comprise the claimed payment. This will be empty for events serialized prior + * to LDK version 0.0.117. + */ + struct LDKCVec_ClaimedHTLCZ htlcs; + /** + * The sender-intended sum total of all the MPP parts. This will be `None` for events + * serialized prior to LDK version 0.0.117. + */ + struct LDKCOption_u64Z sender_intended_total_msat; } LDKEvent_LDKPaymentClaimed_Body; typedef struct LDKEvent_LDKPaymentSent_Body { @@ -14382,7 +15007,7 @@ typedef struct LDKEvent_LDKPaymentSent_Body { * * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment */ - struct LDKCOption_PaymentIdZ payment_id; + struct LDKCOption_ThirtyTwoBytesZ payment_id; /** * The preimage to the hash given to ChannelManager::send_payment. * Note that this serves as a payment receipt, if you wish to have such a thing, you must @@ -14443,7 +15068,7 @@ typedef struct LDKEvent_LDKPaymentPathSuccessful_Body { * * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment */ - struct LDKCOption_PaymentHashZ payment_hash; + struct LDKCOption_ThirtyTwoBytesZ payment_hash; /** * The payment path that was successful. * @@ -14461,7 +15086,7 @@ typedef struct LDKEvent_LDKPaymentPathFailed_Body { * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment * [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment */ - struct LDKCOption_PaymentIdZ payment_id; + struct LDKCOption_ThirtyTwoBytesZ payment_id; /** * The hash that was given to [`ChannelManager::send_payment`]. * @@ -14591,23 +15216,25 @@ typedef struct LDKEvent_LDKSpendableOutputs_Body { * The outputs which you should store as spendable by you. */ struct LDKCVec_SpendableOutputDescriptorZ outputs; + /** + * The `channel_id` indicating which channel the spendable outputs belong to. + * + * This will always be `Some` for events generated by LDK versions 0.0.117 and above. + */ + struct LDKCOption_ThirtyTwoBytesZ channel_id; } LDKEvent_LDKSpendableOutputs_Body; typedef struct LDKEvent_LDKPaymentForwarded_Body { /** * The incoming channel between the previous node and us. This is only `None` for events * generated or serialized by versions prior to 0.0.107. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes prev_channel_id; + struct LDKCOption_ThirtyTwoBytesZ prev_channel_id; /** * The outgoing channel between the next node and us. This is only `None` for events * generated or serialized by versions prior to 0.0.107. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes next_channel_id; + struct LDKCOption_ThirtyTwoBytesZ next_channel_id; /** * The fee, in milli-satoshis, which was earned as a result of the payment. * @@ -14657,10 +15284,8 @@ typedef struct LDKEvent_LDKChannelPending_Body { * The `temporary_channel_id` this channel used to be known by during channel establishment. * * Will be `None` for channels created prior to LDK version 0.0.115. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes former_temporary_channel_id; + struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id; /** * The `node_id` of the channel counterparty. */ @@ -14720,6 +15345,20 @@ typedef struct LDKEvent_LDKChannelClosed_Body { * The reason the channel was closed. */ struct LDKClosureReason reason; + /** + * Counterparty in the closed channel. + * + * This field will be `None` for objects serialized prior to LDK 0.0.117. + * + * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None + */ + struct LDKPublicKey counterparty_node_id; + /** + * Channel capacity of the closing channel (sats). + * + * This field will be `None` for objects serialized prior to LDK 0.0.117. + */ + struct LDKCOption_u64Z channel_capacity_sats; } LDKEvent_LDKChannelClosed_Body; typedef struct LDKEvent_LDKDiscardFunding_Body { @@ -14884,55 +15523,6 @@ typedef struct LDKCResult_COption_EventZDecodeErrorZ { bool result_ok; } LDKCResult_COption_EventZDecodeErrorZ; -/** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_BlockHashChannelMonitorZs of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKC2Tuple_BlockHashChannelMonitorZ *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_C2Tuple_BlockHashChannelMonitorZZ; - -/** - * The contents of CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - */ -typedef union LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZPtr { - /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. - */ - struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ *result; - /** - * A pointer to the contents in the error state. - * Reading from this pointer when `result_ok` is set is undefined. - */ - enum LDKIOError *err; -} LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZPtr; - -/** - * A CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ represents the result of a fallible operation, - * containing a crate::c_types::derived::CVec_C2Tuple_BlockHashChannelMonitorZZ on success and a crate::c_types::IOError on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. - */ -typedef struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ { - /** - * The contents of this CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. - */ - union LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZPtr contents; - /** - * Whether this CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ represents a success state. - */ - bool result_ok; -} LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ; - /** * Sub-errors which don't have specific information in them use this type. */ @@ -15235,9 +15825,9 @@ typedef struct MUST_USE_STRUCT LDKPayeePubKey { } LDKPayeePubKey; /** - * The contents of CResult_PayeePubKeyErrorZ + * The contents of CResult_PayeePubKeySecp256k1ErrorZ */ -typedef union LDKCResult_PayeePubKeyErrorZPtr { +typedef union LDKCResult_PayeePubKeySecp256k1ErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -15248,24 +15838,24 @@ typedef union LDKCResult_PayeePubKeyErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKSecp256k1Error *err; -} LDKCResult_PayeePubKeyErrorZPtr; +} LDKCResult_PayeePubKeySecp256k1ErrorZPtr; /** - * A CResult_PayeePubKeyErrorZ represents the result of a fallible operation, + * A CResult_PayeePubKeySecp256k1ErrorZ represents the result of a fallible operation, * containing a crate::lightning_invoice::PayeePubKey on success and a crate::c_types::Secp256k1Error on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PayeePubKeyErrorZ { +typedef struct LDKCResult_PayeePubKeySecp256k1ErrorZ { /** - * The contents of this CResult_PayeePubKeyErrorZ, accessible via either + * The contents of this CResult_PayeePubKeySecp256k1ErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PayeePubKeyErrorZPtr contents; + union LDKCResult_PayeePubKeySecp256k1ErrorZPtr contents; /** - * Whether this CResult_PayeePubKeyErrorZ represents a success state. + * Whether this CResult_PayeePubKeySecp256k1ErrorZ represents a success state. */ bool result_ok; -} LDKCResult_PayeePubKeyErrorZ; +} LDKCResult_PayeePubKeySecp256k1ErrorZ; @@ -15430,22 +16020,6 @@ typedef struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ { bool result_ok; } LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ; -/** - * A dynamically-allocated array of crate::c_types::Strs of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_AddressZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKStr *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_AddressZ; - /** @@ -15781,6 +16355,170 @@ typedef struct LDKCResult_UntrustedStringDecodeErrorZ { bool result_ok; } LDKCResult_UntrustedStringDecodeErrorZ; + + +/** + * Data to construct a [`BlindedHop`] for receiving a payment. This payload is custom to LDK and + * may not be valid if received by another lightning implementation. + */ +typedef struct MUST_USE_STRUCT LDKReceiveTlvs { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeReceiveTlvs *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKReceiveTlvs; + +/** + * The contents of CResult_ReceiveTlvsDecodeErrorZ + */ +typedef union LDKCResult_ReceiveTlvsDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKReceiveTlvs *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_ReceiveTlvsDecodeErrorZPtr; + +/** + * A CResult_ReceiveTlvsDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::blinded_path::payment::ReceiveTlvs on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ReceiveTlvsDecodeErrorZ { + /** + * The contents of this CResult_ReceiveTlvsDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ReceiveTlvsDecodeErrorZPtr contents; + /** + * Whether this CResult_ReceiveTlvsDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_ReceiveTlvsDecodeErrorZ; + + + +/** + * Parameters for relaying over a given [`BlindedHop`]. + * + * [`BlindedHop`]: crate::blinded_path::BlindedHop + */ +typedef struct MUST_USE_STRUCT LDKPaymentRelay { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativePaymentRelay *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKPaymentRelay; + +/** + * The contents of CResult_PaymentRelayDecodeErrorZ + */ +typedef union LDKCResult_PaymentRelayDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKPaymentRelay *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_PaymentRelayDecodeErrorZPtr; + +/** + * A CResult_PaymentRelayDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::blinded_path::payment::PaymentRelay on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_PaymentRelayDecodeErrorZ { + /** + * The contents of this CResult_PaymentRelayDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_PaymentRelayDecodeErrorZPtr contents; + /** + * Whether this CResult_PaymentRelayDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_PaymentRelayDecodeErrorZ; + + + +/** + * Constraints for relaying over a given [`BlindedHop`]. + * + * [`BlindedHop`]: crate::blinded_path::BlindedHop + */ +typedef struct MUST_USE_STRUCT LDKPaymentConstraints { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativePaymentConstraints *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKPaymentConstraints; + +/** + * The contents of CResult_PaymentConstraintsDecodeErrorZ + */ +typedef union LDKCResult_PaymentConstraintsDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKPaymentConstraints *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_PaymentConstraintsDecodeErrorZPtr; + +/** + * A CResult_PaymentConstraintsDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::blinded_path::payment::PaymentConstraints on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_PaymentConstraintsDecodeErrorZ { + /** + * The contents of this CResult_PaymentConstraintsDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_PaymentConstraintsDecodeErrorZPtr contents; + /** + * Whether this CResult_PaymentConstraintsDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_PaymentConstraintsDecodeErrorZ; + /** * An error that may occur when making a payment. */ @@ -15812,9 +16550,9 @@ typedef struct MUST_USE_STRUCT LDKPaymentError { } LDKPaymentError; /** - * The contents of CResult_PaymentIdPaymentErrorZ + * The contents of CResult_ThirtyTwoBytesPaymentErrorZ */ -typedef union LDKCResult_PaymentIdPaymentErrorZPtr { +typedef union LDKCResult_ThirtyTwoBytesPaymentErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -15825,24 +16563,24 @@ typedef union LDKCResult_PaymentIdPaymentErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKPaymentError *err; -} LDKCResult_PaymentIdPaymentErrorZPtr; +} LDKCResult_ThirtyTwoBytesPaymentErrorZPtr; /** - * A CResult_PaymentIdPaymentErrorZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesPaymentErrorZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning_invoice::payment::PaymentError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentIdPaymentErrorZ { +typedef struct LDKCResult_ThirtyTwoBytesPaymentErrorZ { /** - * The contents of this CResult_PaymentIdPaymentErrorZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesPaymentErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentIdPaymentErrorZPtr contents; + union LDKCResult_ThirtyTwoBytesPaymentErrorZPtr contents; /** - * Whether this CResult_PaymentIdPaymentErrorZ represents a success state. + * Whether this CResult_ThirtyTwoBytesPaymentErrorZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentIdPaymentErrorZ; +} LDKCResult_ThirtyTwoBytesPaymentErrorZ; /** * The contents of CResult_NonePaymentErrorZ @@ -15877,9 +16615,72 @@ typedef struct LDKCResult_NonePaymentErrorZ { } LDKCResult_NonePaymentErrorZ; /** - * The contents of CResult_StringErrorZ + * An error that may occur when sending a payment probe. + */ +typedef enum LDKProbingError_Tag { + /** + * An error resulting from the provided [`Bolt11Invoice`]. + */ + LDKProbingError_Invoice, + /** + * An error occurring when sending a payment probe. + */ + LDKProbingError_Sending, + /** + * Must be last for serialization purposes + */ + LDKProbingError_Sentinel, +} LDKProbingError_Tag; + +typedef struct MUST_USE_STRUCT LDKProbingError { + LDKProbingError_Tag tag; + union { + struct { + struct LDKStr invoice; + }; + struct { + struct LDKProbeSendFailure sending; + }; + }; +} LDKProbingError; + +/** + * The contents of CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + */ +typedef union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKProbingError *err; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZPtr; + +/** + * A CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ on success and a crate::lightning_invoice::payment::ProbingError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ { + /** + * The contents of this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZPtr contents; + /** + * Whether this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ; + +/** + * The contents of CResult_StrSecp256k1ErrorZ */ -typedef union LDKCResult_StringErrorZPtr { +typedef union LDKCResult_StrSecp256k1ErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -15890,24 +16691,24 @@ typedef union LDKCResult_StringErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKSecp256k1Error *err; -} LDKCResult_StringErrorZPtr; +} LDKCResult_StrSecp256k1ErrorZPtr; /** - * A CResult_StringErrorZ represents the result of a fallible operation, + * A CResult_StrSecp256k1ErrorZ represents the result of a fallible operation, * containing a crate::c_types::Str on success and a crate::c_types::Secp256k1Error on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_StringErrorZ { +typedef struct LDKCResult_StrSecp256k1ErrorZ { /** - * The contents of this CResult_StringErrorZ, accessible via either + * The contents of this CResult_StrSecp256k1ErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_StringErrorZPtr contents; + union LDKCResult_StrSecp256k1ErrorZPtr contents; /** - * Whether this CResult_StringErrorZ represents a success state. + * Whether this CResult_StrSecp256k1ErrorZ represents a success state. */ bool result_ok; -} LDKCResult_StringErrorZ; +} LDKCResult_StrSecp256k1ErrorZ; @@ -15961,6 +16762,20 @@ typedef struct LDKCResult_OnionMessagePathNoneZ { bool result_ok; } LDKCResult_OnionMessagePathNoneZ; +/** + * A tuple of 2 elements. See the individual fields for the types contained. + */ +typedef struct LDKC2Tuple_PublicKeyOnionMessageZ { + /** + * The element at position 0 + */ + struct LDKPublicKey a; + /** + * The element at position 1 + */ + struct LDKOnionMessage b; +} LDKC2Tuple_PublicKeyOnionMessageZ; + /** * Errors that may occur when [sending an onion message]. * @@ -16021,6 +16836,39 @@ typedef struct MUST_USE_STRUCT LDKSendError { }; } LDKSendError; +/** + * The contents of CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ + */ +typedef union LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKC2Tuple_PublicKeyOnionMessageZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKSendError *err; +} LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZPtr; + +/** + * A CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_PublicKeyOnionMessageZ on success and a crate::lightning::onion_message::messenger::SendError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ { + /** + * The contents of this CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZPtr contents; + /** + * Whether this CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ; + /** * The contents of CResult_NoneSendErrorZ */ @@ -16085,6 +16933,38 @@ typedef struct LDKCResult_BlindedPathNoneZ { bool result_ok; } LDKCResult_BlindedPathNoneZ; +/** + * The contents of CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + */ +typedef union LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZPtr; + +/** + * A CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_BlindedPayInfoBlindedPathZ on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ { + /** + * The contents of this CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZPtr contents; + /** + * Whether this CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ; + /** * The contents of CResult_BlindedPathDecodeErrorZ */ @@ -16427,6 +17307,85 @@ typedef struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ { uintptr_t datalen; } LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ; +/** + * Provides an interface that allows storage and retrieval of persisted values that are associated + * with given keys. + * + * In order to avoid collisions the key space is segmented based on the given `primary_namespace`s + * and `secondary_namespace`s. Implementations of this trait are free to handle them in different + * ways, as long as per-namespace key uniqueness is asserted. + * + * Keys and namespaces are required to be valid ASCII strings in the range of + * [`KVSTORE_NAMESPACE_KEY_ALPHABET`] and no longer than [`KVSTORE_NAMESPACE_KEY_MAX_LEN`]. Empty + * primary namespaces and secondary namespaces (`\"\"`) are assumed to be a valid, however, if + * `primary_namespace` is empty, `secondary_namespace` is required to be empty, too. This means + * that concerns should always be separated by primary namespace first, before secondary + * namespaces are used. While the number of primary namespaces will be relatively small and is + * determined at compile time, there may be many secondary namespaces per primary namespace. Note + * that per-namespace uniqueness needs to also hold for keys *and* namespaces in any given + * namespace, i.e., conflicts between keys and equally named + * primary namespaces/secondary namespaces must be avoided. + * + * **Note:** Users migrating custom persistence backends from the pre-v0.0.117 `KVStorePersister` + * interface can use a concatenation of `[{primary_namespace}/[{secondary_namespace}/]]{key}` to + * recover a `key` compatible with the data model previously assumed by `KVStorePersister::persist`. + */ +typedef struct LDKKVStore { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Returns the data stored for the given `primary_namespace`, `secondary_namespace`, and + * `key`. + * + * Returns an [`ErrorKind::NotFound`] if the given `key` could not be found in the given + * `primary_namespace` and `secondary_namespace`. + * + * [`ErrorKind::NotFound`]: io::ErrorKind::NotFound + */ + struct LDKCResult_CVec_u8ZIOErrorZ (*read)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key); + /** + * Persists the given data under the given `key`. + * + * Will create the given `primary_namespace` and `secondary_namespace` if not already present + * in the store. + */ + struct LDKCResult_NoneIOErrorZ (*write)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf); + /** + * Removes any data that had previously been persisted under the given `key`. + * + * If the `lazy` flag is set to `true`, the backend implementation might choose to lazily + * remove the given `key` at some point in time after the method returns, e.g., as part of an + * eventual batch deletion of multiple keys. As a consequence, subsequent calls to + * [`KVStore::list`] might include the removed key until the changes are actually persisted. + * + * Note that while setting the `lazy` flag reduces the I/O burden of multiple subsequent + * `remove` calls, it also influences the atomicity guarantees as lazy `remove`s could + * potentially get lost on crash after the method returns. Therefore, this flag should only be + * set for `remove` operations that can be safely replayed at a later time. + * + * Returns successfully if no data will be stored for the given `primary_namespace`, + * `secondary_namespace`, and `key`, independently of whether it was present before its + * invokation or not. + */ + struct LDKCResult_NoneIOErrorZ (*remove)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy); + /** + * Returns a list of keys that are stored under the given `secondary_namespace` in + * `primary_namespace`. + * + * Returns the keys in arbitrary order, so users requiring a particular order need to sort the + * returned keys. Returns an empty list if `primary_namespace` or `secondary_namespace` is unknown. + */ + struct LDKCResult_CVec_StrZIOErrorZ (*list)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKKVStore; + /** * Trait that handles persisting a [`ChannelManager`], [`NetworkGraph`], and [`WriteableScore`] to disk. */ @@ -16439,15 +17398,15 @@ typedef struct LDKPersister { /** * Persist the given ['ChannelManager'] to disk, returning an error if persistence failed. */ - struct LDKCResult_NoneErrorZ (*persist_manager)(const void *this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager); + struct LDKCResult_NoneIOErrorZ (*persist_manager)(const void *this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager); /** * Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed. */ - struct LDKCResult_NoneErrorZ (*persist_graph)(const void *this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph); + struct LDKCResult_NoneIOErrorZ (*persist_graph)(const void *this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph); /** * Persist the given [`WriteableScore`] to disk, returning an error if persistence failed. */ - struct LDKCResult_NoneErrorZ (*persist_scorer)(const void *this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer); + struct LDKCResult_NoneIOErrorZ (*persist_scorer)(const void *this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -16457,6 +17416,233 @@ typedef struct LDKPersister { +/** + * Implements [`Persist`] in a way that writes and reads both [`ChannelMonitor`]s and + * [`ChannelMonitorUpdate`]s. + * + * # Overview + * + * The main benefit this provides over the [`KVStore`]'s [`Persist`] implementation is decreased + * I/O bandwidth and storage churn, at the expense of more IOPS (including listing, reading, and + * deleting) and complexity. This is because it writes channel monitor differential updates, + * whereas the other (default) implementation rewrites the entire monitor on each update. For + * routing nodes, updates can happen many times per second to a channel, and monitors can be tens + * of megabytes (or more). Updates can be as small as a few hundred bytes. + * + * Note that monitors written with `MonitorUpdatingPersister` are _not_ backward-compatible with + * the default [`KVStore`]'s [`Persist`] implementation. They have a prepended byte sequence, + * [`MONITOR_UPDATING_PERSISTER_PREPEND_SENTINEL`], applied to prevent deserialization with other + * persisters. This is because monitors written by this struct _may_ have unapplied updates. In + * order to downgrade, you must ensure that all updates are applied to the monitor, and remove the + * sentinel bytes. + * + * # Storing monitors + * + * Monitors are stored by implementing the [`Persist`] trait, which has two functions: + * + * - [`Persist::persist_new_channel`], which persists whole [`ChannelMonitor`]s. + * - [`Persist::update_persisted_channel`], which persists only a [`ChannelMonitorUpdate`] + * + * Whole [`ChannelMonitor`]s are stored in the [`CHANNEL_MONITOR_PERSISTENCE_PRIMARY_NAMESPACE`], + * using the familiar encoding of an [`OutPoint`] (for example, `[SOME-64-CHAR-HEX-STRING]_1`). + * + * Each [`ChannelMonitorUpdate`] is stored in a dynamic secondary namespace, as follows: + * + * - primary namespace: [`CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE`] + * - secondary namespace: [the monitor's encoded outpoint name] + * + * Under that secondary namespace, each update is stored with a number string, like `21`, which + * represents its `update_id` value. + * + * For example, consider this channel, named for its transaction ID and index, or [`OutPoint`]: + * + * - Transaction ID: `deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef` + * - Index: `1` + * + * Full channel monitors would be stored at a single key: + * + * `[CHANNEL_MONITOR_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1` + * + * Updates would be stored as follows (with `/` delimiting primary_namespace/secondary_namespace/key): + * + * ```text + * [CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1/1 + * [CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1/2 + * [CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1/3 + * ``` + * ... and so on. + * + * # Reading channel state from storage + * + * Channel state can be reconstructed by calling + * [`MonitorUpdatingPersister::read_all_channel_monitors_with_updates`]. Alternatively, users can + * list channel monitors themselves and load channels individually using + * [`MonitorUpdatingPersister::read_channel_monitor_with_updates`]. + * + * ## EXTREMELY IMPORTANT + * + * It is extremely important that your [`KVStore::read`] implementation uses the + * [`io::ErrorKind::NotFound`] variant correctly: that is, when a file is not found, and _only_ in + * that circumstance (not when there is really a permissions error, for example). This is because + * neither channel monitor reading function lists updates. Instead, either reads the monitor, and + * using its stored `update_id`, synthesizes update storage keys, and tries them in sequence until + * one is not found. All _other_ errors will be bubbled up in the function's [`Result`]. + * + * # Pruning stale channel updates + * + * Stale updates are pruned when a full monitor is written. The old monitor is first read, and if + * that succeeds, updates in the range between the old and new monitors are deleted. The `lazy` + * flag is used on the [`KVStore::remove`] method, so there are no guarantees that the deletions + * will complete. However, stale updates are not a problem for data integrity, since updates are + * only read that are higher than the stored [`ChannelMonitor`]'s `update_id`. + * + * If you have many stale updates stored (such as after a crash with pending lazy deletes), and + * would like to get rid of them, consider using the + * [`MonitorUpdatingPersister::cleanup_stale_updates`] function. + */ +typedef struct MUST_USE_STRUCT LDKMonitorUpdatingPersister { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeMonitorUpdatingPersister *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKMonitorUpdatingPersister; + +/** + * `Persist` defines behavior for persisting channel monitors: this could mean + * writing once to disk, and/or uploading to one or more backup services. + * + * Persistence can happen in one of two ways - synchronously completing before the trait method + * calls return or asynchronously in the background. + * + * # For those implementing synchronous persistence + * + * * If persistence completes fully (including any relevant `fsync()` calls), the implementation + * should return [`ChannelMonitorUpdateStatus::Completed`], indicating normal channel operation + * should continue. + * + * * If persistence fails for some reason, implementations should consider returning + * [`ChannelMonitorUpdateStatus::InProgress`] and retry all pending persistence operations in + * the background with [`ChainMonitor::list_pending_monitor_updates`] and + * [`ChainMonitor::get_monitor`]. + * + * Once a full [`ChannelMonitor`] has been persisted, all pending updates for that channel can + * be marked as complete via [`ChainMonitor::channel_monitor_updated`]. + * + * If at some point no further progress can be made towards persisting the pending updates, the + * node should simply shut down. + * + * * If the persistence has failed and cannot be retried further (e.g. because of an outage), + * [`ChannelMonitorUpdateStatus::UnrecoverableError`] can be used, though this will result in + * an immediate panic and future operations in LDK generally failing. + * + * # For those implementing asynchronous persistence + * + * All calls should generally spawn a background task and immediately return + * [`ChannelMonitorUpdateStatus::InProgress`]. Once the update completes, + * [`ChainMonitor::channel_monitor_updated`] should be called with the corresponding + * [`MonitorUpdateId`]. + * + * Note that unlike the direct [`chain::Watch`] interface, + * [`ChainMonitor::channel_monitor_updated`] must be called once for *each* update which occurs. + * + * If at some point no further progress can be made towards persisting a pending update, the node + * should simply shut down. Until then, the background task should either loop indefinitely, or + * persistence should be regularly retried with [`ChainMonitor::list_pending_monitor_updates`] + * and [`ChainMonitor::get_monitor`] (note that if a full monitor is persisted all pending + * monitor updates may be marked completed). + * + * # Using remote watchtowers + * + * Watchtowers may be updated as a part of an implementation of this trait, utilizing the async + * update process described above while the watchtower is being updated. The following methods are + * provided for bulding transactions for a watchtower: + * [`ChannelMonitor::initial_counterparty_commitment_tx`], + * [`ChannelMonitor::counterparty_commitment_txs_from_update`], + * [`ChannelMonitor::sign_to_local_justice_tx`], [`TrustedCommitmentTransaction::revokeable_output_index`], + * [`TrustedCommitmentTransaction::build_to_local_justice_tx`]. + * + * [`TrustedCommitmentTransaction::revokeable_output_index`]: crate::ln::chan_utils::TrustedCommitmentTransaction::revokeable_output_index + * [`TrustedCommitmentTransaction::build_to_local_justice_tx`]: crate::ln::chan_utils::TrustedCommitmentTransaction::build_to_local_justice_tx + */ +typedef struct LDKPersist { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Persist a new channel's data in response to a [`chain::Watch::watch_channel`] call. This is + * called by [`ChannelManager`] for new channels, or may be called directly, e.g. on startup. + * + * The data can be stored any way you want, but the identifier provided by LDK is the + * channel's outpoint (and it is up to you to maintain a correct mapping between the outpoint + * and the stored channel data). Note that you **must** persist every new monitor to disk. + * + * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], + * if you return [`ChannelMonitorUpdateStatus::InProgress`]. + * + * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor` + * and [`ChannelMonitorUpdateStatus`] for requirements when returning errors. + * + * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager + * [`Writeable::write`]: crate::util::ser::Writeable::write + */ + enum LDKChannelMonitorUpdateStatus (*persist_new_channel)(const void *this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); + /** + * Update one channel's data. The provided [`ChannelMonitor`] has already applied the given + * update. + * + * Note that on every update, you **must** persist either the [`ChannelMonitorUpdate`] or the + * updated monitor itself to disk/backups. See the [`Persist`] trait documentation for more + * details. + * + * During blockchain synchronization operations, and in some rare cases, this may be called with + * no [`ChannelMonitorUpdate`], in which case the full [`ChannelMonitor`] needs to be persisted. + * Note that after the full [`ChannelMonitor`] is persisted any previous + * [`ChannelMonitorUpdate`]s which were persisted should be discarded - they can no longer be + * applied to the persisted [`ChannelMonitor`] as they were already applied. + * + * If an implementer chooses to persist the updates only, they need to make + * sure that all the updates are applied to the `ChannelMonitors` *before* + * the set of channel monitors is given to the `ChannelManager` + * deserialization routine. See [`ChannelMonitor::update_monitor`] for + * applying a monitor update to a monitor. If full `ChannelMonitors` are + * persisted, then there is no need to persist individual updates. + * + * Note that there could be a performance tradeoff between persisting complete + * channel monitors on every update vs. persisting only updates and applying + * them in batches. The size of each monitor grows `O(number of state updates)` + * whereas updates are small and `O(1)`. + * + * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], + * if you return [`ChannelMonitorUpdateStatus::InProgress`]. + * + * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor`, + * [`Writeable::write`] on [`ChannelMonitorUpdate`] for writing out an update, and + * [`ChannelMonitorUpdateStatus`] for requirements when returning errors. + * + * [`Writeable::write`]: crate::util::ser::Writeable::write + * + * Note that update (or a relevant inner pointer) may be NULL or all-0s to represent None + */ + enum LDKChannelMonitorUpdateStatus (*update_persisted_channel)(const void *this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKPersist; + + + /** * A string that displays only printable characters, replacing control characters with * [`core::char::REPLACEMENT_CHARACTER`]. @@ -16780,7 +17966,7 @@ typedef struct LDKConfirm { * [`transactions_confirmed`]: Self::transactions_confirmed * [`transaction_unconfirmed`]: Self::transaction_unconfirmed */ - struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ (*get_relevant_txids)(const void *this_arg); + struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ (*get_relevant_txids)(const void *this_arg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -16788,97 +17974,6 @@ typedef struct LDKConfirm { void (*free)(void *this_arg); } LDKConfirm; -/** - * `Persist` defines behavior for persisting channel monitors: this could mean - * writing once to disk, and/or uploading to one or more backup services. - * - * Each method can return three possible values: - * * If persistence (including any relevant `fsync()` calls) happens immediately, the - * implementation should return [`ChannelMonitorUpdateStatus::Completed`], indicating normal - * channel operation should continue. - * * If persistence happens asynchronously, implementations should first ensure the - * [`ChannelMonitor`] or [`ChannelMonitorUpdate`] are written durably to disk, and then return - * [`ChannelMonitorUpdateStatus::InProgress`] while the update continues in the background. - * Once the update completes, [`ChainMonitor::channel_monitor_updated`] should be called with - * the corresponding [`MonitorUpdateId`]. - * - * Note that unlike the direct [`chain::Watch`] interface, - * [`ChainMonitor::channel_monitor_updated`] must be called once for *each* update which occurs. - * - * * If persistence fails for some reason, implementations should return - * [`ChannelMonitorUpdateStatus::PermanentFailure`], in which case the channel will likely be - * closed without broadcasting the latest state. See - * [`ChannelMonitorUpdateStatus::PermanentFailure`] for more details. - */ -typedef struct LDKPersist { - /** - * An opaque pointer which is passed to your function implementations as an argument. - * This has no meaning in the LDK, and can be NULL or any other value. - */ - void *this_arg; - /** - * Persist a new channel's data in response to a [`chain::Watch::watch_channel`] call. This is - * called by [`ChannelManager`] for new channels, or may be called directly, e.g. on startup. - * - * The data can be stored any way you want, but the identifier provided by LDK is the - * channel's outpoint (and it is up to you to maintain a correct mapping between the outpoint - * and the stored channel data). Note that you **must** persist every new monitor to disk. - * - * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], - * if you return [`ChannelMonitorUpdateStatus::InProgress`]. - * - * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor` - * and [`ChannelMonitorUpdateStatus`] for requirements when returning errors. - * - * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager - * [`Writeable::write`]: crate::util::ser::Writeable::write - */ - enum LDKChannelMonitorUpdateStatus (*persist_new_channel)(const void *this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); - /** - * Update one channel's data. The provided [`ChannelMonitor`] has already applied the given - * update. - * - * Note that on every update, you **must** persist either the [`ChannelMonitorUpdate`] or the - * updated monitor itself to disk/backups. See the [`Persist`] trait documentation for more - * details. - * - * During blockchain synchronization operations, this may be called with no - * [`ChannelMonitorUpdate`], in which case the full [`ChannelMonitor`] needs to be persisted. - * Note that after the full [`ChannelMonitor`] is persisted any previous - * [`ChannelMonitorUpdate`]s which were persisted should be discarded - they can no longer be - * applied to the persisted [`ChannelMonitor`] as they were already applied. - * - * If an implementer chooses to persist the updates only, they need to make - * sure that all the updates are applied to the `ChannelMonitors` *before* - * the set of channel monitors is given to the `ChannelManager` - * deserialization routine. See [`ChannelMonitor::update_monitor`] for - * applying a monitor update to a monitor. If full `ChannelMonitors` are - * persisted, then there is no need to persist individual updates. - * - * Note that there could be a performance tradeoff between persisting complete - * channel monitors on every update vs. persisting only updates and applying - * them in batches. The size of each monitor grows `O(number of state updates)` - * whereas updates are small and `O(1)`. - * - * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], - * if you return [`ChannelMonitorUpdateStatus::InProgress`]. - * - * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor`, - * [`Writeable::write`] on [`ChannelMonitorUpdate`] for writing out an update, and - * [`ChannelMonitorUpdateStatus`] for requirements when returning errors. - * - * [`Writeable::write`]: crate::util::ser::Writeable::write - * - * Note that update (or a relevant inner pointer) may be NULL or all-0s to represent None - */ - enum LDKChannelMonitorUpdateStatus (*update_persisted_channel)(const void *this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); - /** - * Frees any resources associated with this object given its this_arg pointer. - * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. - */ - void (*free)(void *this_arg); -} LDKPersist; - /** @@ -16997,6 +18092,53 @@ typedef struct LDKEventsProvider { void (*free)(void *this_arg); } LDKEventsProvider; +/** + * This enum is used to specify which error data to send to peers when failing back an HTLC + * using [`ChannelManager::fail_htlc_backwards_with_reason`]. + * + * For more info on failure codes, see . + */ +typedef enum LDKFailureCode_Tag { + /** + * We had a temporary error processing the payment. Useful if no other error codes fit + * and you want to indicate that the payer may want to retry. + */ + LDKFailureCode_TemporaryNodeFailure, + /** + * We have a required feature which was not in this onion. For example, you may require + * some additional metadata that was not provided with this payment. + */ + LDKFailureCode_RequiredNodeFeatureMissing, + /** + * You may wish to use this when a `payment_preimage` is unknown, or the CLTV expiry of + * the HTLC is too close to the current block height for safe handling. + * Using this failure code in [`ChannelManager::fail_htlc_backwards_with_reason`] is + * equivalent to calling [`ChannelManager::fail_htlc_backwards`]. + */ + LDKFailureCode_IncorrectOrUnknownPaymentDetails, + /** + * We failed to process the payload after the onion was decrypted. You may wish to + * use this when receiving custom HTLC TLVs with even type numbers that you don't recognize. + * + * If available, the tuple data may include the type number and byte offset in the + * decrypted byte stream where the failure occurred. + */ + LDKFailureCode_InvalidOnionPayload, + /** + * Must be last for serialization purposes + */ + LDKFailureCode_Sentinel, +} LDKFailureCode_Tag; + +typedef struct MUST_USE_STRUCT LDKFailureCode { + LDKFailureCode_Tag tag; + union { + struct { + struct LDKCOption_C2Tuple_u64u16ZZ invalid_onion_payload; + }; + }; +} LDKFailureCode; + /** @@ -17021,43 +18163,6 @@ typedef struct MUST_USE_STRUCT LDKChainParameters { bool is_owned; } LDKChainParameters; -/** - * Strategies available to retry payment path failures. - */ -typedef enum LDKRetry_Tag { - /** - * Max number of attempts to retry payment. - * - * Each attempt may be multiple HTLCs along multiple paths if the router decides to split up a - * retry, and may retry multiple failed HTLCs at once if they failed around the same time and - * were retried along a route from a single call to [`Router::find_route_with_id`]. - */ - LDKRetry_Attempts, - /** - * Time elapsed before abandoning retries for a payment. At least one attempt at payment is made; - * see [`PaymentParameters::expiry_time`] to avoid any attempt at payment after a specific time. - * - * [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time - */ - LDKRetry_Timeout, - /** - * Must be last for serialization purposes - */ - LDKRetry_Sentinel, -} LDKRetry_Tag; - -typedef struct MUST_USE_STRUCT LDKRetry { - LDKRetry_Tag tag; - union { - struct { - uintptr_t attempts; - }; - struct { - uint64_t timeout; - }; - }; -} LDKRetry; - /** * A trait indicating an object may generate message send events */ @@ -17239,7 +18344,7 @@ typedef struct LDKChannelMessageHandler { * If it's `None`, then no particular network chain hash compatibility will be enforced when * connecting to peers. */ - struct LDKCOption_CVec_ChainHashZZ (*get_genesis_hashes)(const void *this_arg); + struct LDKCOption_CVec_ThirtyTwoBytesZZ (*get_genesis_hashes)(const void *this_arg); /** * Implementation of MessageSendEventsProvider for this object. */ @@ -17325,6 +18430,26 @@ typedef struct MUST_USE_STRUCT LDKExpandedKey { bool is_owned; } LDKExpandedKey; + + +/** + * Packet of hop data for next peer + */ +typedef struct MUST_USE_STRUCT LDKPacket { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativePacket *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKPacket; + /** * A 3-byte byte array. */ @@ -17899,106 +19024,90 @@ typedef struct LDKWitnessVersion { /** - * A semantically valid [`Bolt12Invoice`] that hasn't been signed. - */ -typedef struct MUST_USE_STRUCT LDKUnsignedBolt12Invoice { - /** - * A pointer to the opaque Rust object. - * Nearly everywhere, inner must be non-null, however in places where - * the Rust equivalent takes an Option, it may be set to null to indicate None. - */ - LDKnativeUnsignedBolt12Invoice *inner; - /** - * Indicates that this is the only struct which contains the same pointer. - * Rust functions which take ownership of an object provided via an argument require - * this to be true and invalidate the object pointed to by inner. - */ - bool is_owned; -} LDKUnsignedBolt12Invoice; - - - -/** - * The field in the [`InvoiceRequest`] or the [`Bolt12Invoice`] that contained an error. - * - * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest - * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice + * The minimum amount required for an item in an [`Offer`], denominated in either bitcoin or + * another currency. */ -typedef struct MUST_USE_STRUCT LDKErroneousField { +typedef struct MUST_USE_STRUCT LDKAmount { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeErroneousField *inner; + LDKnativeAmount *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKErroneousField; +} LDKAmount; /** - * A semantically valid [`InvoiceRequest`] that hasn't been signed. + * Quantity of items supported by an [`Offer`]. */ -typedef struct MUST_USE_STRUCT LDKUnsignedInvoiceRequest { +typedef struct MUST_USE_STRUCT LDKQuantity { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeUnsignedInvoiceRequest *inner; + LDKnativeQuantity *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKUnsignedInvoiceRequest; +} LDKQuantity; /** - * The minimum amount required for an item in an [`Offer`], denominated in either bitcoin or - * another currency. + * A hash for use in a specific context by tweaking with a context-dependent tag as per [BIP 340] + * and computed over the merkle root of a TLV stream to sign as defined in [BOLT 12]. + * + * [BIP 340]: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki + * [BOLT 12]: https://github.com/rustyrussell/lightning-rfc/blob/guilt/offers/12-offer-encoding.md#signature-calculation */ -typedef struct MUST_USE_STRUCT LDKAmount { +typedef struct MUST_USE_STRUCT LDKTaggedHash { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeAmount *inner; + LDKnativeTaggedHash *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKAmount; +} LDKTaggedHash; /** - * Quantity of items supported by an [`Offer`]. + * The field in the [`InvoiceRequest`] or the [`Bolt12Invoice`] that contained an error. + * + * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ -typedef struct MUST_USE_STRUCT LDKQuantity { +typedef struct MUST_USE_STRUCT LDKErroneousField { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeQuantity *inner; + LDKnativeErroneousField *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKQuantity; +} LDKErroneousField; @@ -18171,12 +19280,12 @@ typedef struct MUST_USE_STRUCT LDKDefaultRouter { /** - * [`Score`] implementation that factors in in-flight HTLC liquidity. + * [`ScoreLookUp`] implementation that factors in in-flight HTLC liquidity. * - * Useful for custom [`Router`] implementations to wrap their [`Score`] on-the-fly when calling + * Useful for custom [`Router`] implementations to wrap their [`ScoreLookUp`] on-the-fly when calling * [`find_route`]. * - * [`Score`]: crate::routing::scoring::Score + * [`ScoreLookUp`]: crate::routing::scoring::ScoreLookUp */ typedef struct MUST_USE_STRUCT LDKScorerAccountingForInFlightHtlcs { /** @@ -18264,6 +19373,39 @@ typedef struct MUST_USE_STRUCT LDKPayee { }; } LDKPayee; +/** + * A trait which can both lookup and update routing channel penalty scores. + * + * This is used in places where both bounds are required and implemented for all types which + * implement [`ScoreLookUp`] and [`ScoreUpdate`]. + * + * Bindings users may need to manually implement this for their custom scoring implementations. + */ +typedef struct LDKScore { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Implementation of ScoreLookUp for this object. + */ + struct LDKScoreLookUp ScoreLookUp; + /** + * Implementation of ScoreUpdate for this object. + */ + struct LDKScoreUpdate ScoreUpdate; + /** + * Serialize the object into a byte array + */ + struct LDKCVec_u8Z (*write)(const void *this_arg); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKScore; + /** @@ -18289,20 +19431,40 @@ typedef struct MUST_USE_STRUCT LDKMultiThreadedLockableScore { /** * A locked `MultiThreadedLockableScore`. */ -typedef struct MUST_USE_STRUCT LDKMultiThreadedScoreLock { +typedef struct MUST_USE_STRUCT LDKMultiThreadedScoreLockRead { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeMultiThreadedScoreLockRead *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKMultiThreadedScoreLockRead; + + + +/** + * A locked `MultiThreadedLockableScore`. + */ +typedef struct MUST_USE_STRUCT LDKMultiThreadedScoreLockWrite { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeMultiThreadedScoreLock *inner; + LDKnativeMultiThreadedScoreLockWrite *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKMultiThreadedScoreLock; +} LDKMultiThreadedScoreLockWrite; @@ -18611,22 +19773,42 @@ typedef struct MUST_USE_STRUCT LDKOnionMessageContents { /** - * The parameters required to derive a channel signer via [`SignerProvider`]. + * An intermediate node, its outbound channel, and relay parameters. */ -typedef struct MUST_USE_STRUCT LDKChannelDerivationParameters { +typedef struct MUST_USE_STRUCT LDKForwardNode { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeChannelDerivationParameters *inner; + LDKnativeForwardNode *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKChannelDerivationParameters; +} LDKForwardNode; + + + +/** + * Data to construct a [`BlindedHop`] for forwarding a payment. + */ +typedef struct MUST_USE_STRUCT LDKForwardTlvs { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeForwardTlvs *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKForwardTlvs; /** * An abstraction over a bitcoin wallet that can perform coin selection over a set of UTXOs and can @@ -18699,7 +19881,7 @@ typedef struct LDKWalletSource { * Returns a script to use for change above dust resulting from a successful coin selection * attempt. */ - struct LDKCResult_ScriptNoneZ (*get_change_script)(const void *this_arg); + struct LDKCResult_CVec_u8ZNoneZ (*get_change_script)(const void *this_arg); /** * Signs and provides the full [`TxIn::script_sig`] and [`TxIn::witness`] for all inputs within * the transaction known to the wallet (i.e., any provided via @@ -18762,33 +19944,22 @@ typedef struct MUST_USE_STRUCT LDKBumpTransactionEventHandler { /** - * FilesystemPersister persists channel data on disk, where each channel's - * data is stored in a file named after its funding outpoint. - * - * Warning: this module does the best it can with calls to persist data, but it - * can only guarantee that the data is passed to the drive. It is up to the - * drive manufacturers to do the actual persistence properly, which they often - * don't (especially on consumer-grade hardware). Therefore, it is up to the - * user to validate their entire storage stack, to ensure the writes are - * persistent. - * Corollary: especially when dealing with larger amounts of money, it is best - * practice to have multiple channel data backups and not rely only on one - * FilesystemPersister. + * A [`KVStore`] implementation that writes to and reads from the file system. */ -typedef struct MUST_USE_STRUCT LDKFilesystemPersister { +typedef struct MUST_USE_STRUCT LDKFilesystemStore { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeFilesystemPersister *inner; + LDKnativeFilesystemStore *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKFilesystemPersister; +} LDKFilesystemStore; @@ -19024,6 +20195,8 @@ typedef struct MUST_USE_STRUCT LDKFallback { extern const uintptr_t MAX_BUF_SIZE; +extern const uintptr_t KVSTORE_NAMESPACE_KEY_MAX_LEN; + extern const uint64_t MIN_RELAY_FEE_SAT_PER_1000_WEIGHT; extern const uint32_t FEERATE_FLOOR_SATS_PER_KW; @@ -19171,25 +20344,25 @@ const void *__unmangle_inner_ptr(const void *ptr); #endif /** - * Constructs a new COption_DurationZ containing a u64 + * Constructs a new COption_u64Z containing a u64 */ -struct LDKCOption_DurationZ COption_DurationZ_some(uint64_t o); +struct LDKCOption_u64Z COption_u64Z_some(uint64_t o); /** - * Constructs a new COption_DurationZ containing nothing + * Constructs a new COption_u64Z containing nothing */ -struct LDKCOption_DurationZ COption_DurationZ_none(void); +struct LDKCOption_u64Z COption_u64Z_none(void); /** * Frees any resources associated with the u64, if we are in the Some state */ -void COption_DurationZ_free(struct LDKCOption_DurationZ _res); +void COption_u64Z_free(struct LDKCOption_u64Z _res); /** - * Creates a new COption_DurationZ which has the same data as `orig` + * Creates a new COption_u64Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_DurationZ COption_DurationZ_clone(const struct LDKCOption_DurationZ *NONNULL_PTR orig); +struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -19197,51 +20370,56 @@ struct LDKCOption_DurationZ COption_DurationZ_clone(const struct LDKCOption_Dura void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res); /** - * Constructs a new COption_u64Z containing a u64 + * Creates a new CResult_RefundBolt12ParseErrorZ in the success state. */ -struct LDKCOption_u64Z COption_u64Z_some(uint64_t o); +struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o); /** - * Constructs a new COption_u64Z containing nothing + * Creates a new CResult_RefundBolt12ParseErrorZ in the error state. */ -struct LDKCOption_u64Z COption_u64Z_none(void); +struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e); /** - * Frees any resources associated with the u64, if we are in the Some state + * Checks if the given object is currently in the success state */ -void COption_u64Z_free(struct LDKCOption_u64Z _res); +bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o); /** - * Creates a new COption_u64Z which has the same data as `orig` + * Frees any resources used by the CResult_RefundBolt12ParseErrorZ. + */ +void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res); + +/** + * Creates a new CResult_RefundBolt12ParseErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig); +struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_RefundBolt12ParseErrorZ in the success state. + * Creates a new CResult_RetryDecodeErrorZ in the success state. */ -struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o); +struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o); /** - * Creates a new CResult_RefundBolt12ParseErrorZ in the error state. + * Creates a new CResult_RetryDecodeErrorZ in the error state. */ -struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e); +struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o); +bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_RefundBolt12ParseErrorZ. + * Frees any resources used by the CResult_RetryDecodeErrorZ. */ -void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res); +void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res); /** - * Creates a new CResult_RefundBolt12ParseErrorZ which has the same data as `orig` + * Creates a new CResult_RetryDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig); +struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_NoneAPIErrorZ in the success state. @@ -19280,25 +20458,25 @@ void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res); /** - * Constructs a new COption_PaymentSecretZ containing a crate::c_types::ThirtyTwoBytes + * Constructs a new COption_ThirtyTwoBytesZ containing a crate::c_types::ThirtyTwoBytes */ -struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o); /** - * Constructs a new COption_PaymentSecretZ containing nothing + * Constructs a new COption_ThirtyTwoBytesZ containing nothing */ -struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_none(void); +struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void); /** * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state */ -void COption_PaymentSecretZ_free(struct LDKCOption_PaymentSecretZ _res); +void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res); /** - * Creates a new COption_PaymentSecretZ which has the same data as `orig` + * Creates a new COption_ThirtyTwoBytesZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_clone(const struct LDKCOption_PaymentSecretZ *NONNULL_PTR orig); +struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -19352,6 +20530,105 @@ void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOn */ struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig); +/** + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig); + +/** + * Creates a new C2Tuple_u64CVec_u8ZZ from the contained elements. + */ +struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b); + +/** + * Frees any resources used by the C2Tuple_u64CVec_u8ZZ. + */ +void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res); + +/** + * Frees the buffer pointed to by `data` if `datalen` is non-0. + */ +void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res); + +/** + * Creates a new CResult_RecipientOnionFieldsNoneZ in the success state. + */ +struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o); + +/** + * Creates a new CResult_RecipientOnionFieldsNoneZ in the error state. + */ +struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_RecipientOnionFieldsNoneZ. + */ +void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res); + +/** + * Creates a new CResult_RecipientOnionFieldsNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig); + +/** + * Frees the buffer pointed to by `data` if `datalen` is non-0. + */ +void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res); + +/** + * Constructs a new COption_CVec_ThirtyTwoBytesZZ containing a crate::c_types::derived::CVec_ThirtyTwoBytesZ + */ +struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o); + +/** + * Constructs a new COption_CVec_ThirtyTwoBytesZZ containing nothing + */ +struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void); + +/** + * Frees any resources associated with the crate::c_types::derived::CVec_ThirtyTwoBytesZ, if we are in the Some state + */ +void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res); + +/** + * Creates a new COption_CVec_ThirtyTwoBytesZZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_ThirtyTwoBytesNoneZ in the success state. + */ +struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o); + +/** + * Creates a new CResult_ThirtyTwoBytesNoneZ in the error state. + */ +struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_ThirtyTwoBytesNoneZ. + */ +void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res); + +/** + * Creates a new CResult_ThirtyTwoBytesNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig); + /** * Creates a new CResult_BlindedPayInfoDecodeErrorZ in the success state. */ @@ -19467,72 +20744,67 @@ void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescript void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res); /** - * Constructs a new COption_PackedLockTimeZ containing a u32 + * Constructs a new COption_u32Z containing a u32 */ -struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_some(uint32_t o); +struct LDKCOption_u32Z COption_u32Z_some(uint32_t o); /** - * Constructs a new COption_PackedLockTimeZ containing nothing + * Constructs a new COption_u32Z containing nothing */ -struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_none(void); +struct LDKCOption_u32Z COption_u32Z_none(void); /** * Frees any resources associated with the u32, if we are in the Some state */ -void COption_PackedLockTimeZ_free(struct LDKCOption_PackedLockTimeZ _res); +void COption_u32Z_free(struct LDKCOption_u32Z _res); /** - * Creates a new COption_PackedLockTimeZ which has the same data as `orig` + * Creates a new COption_u32Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_clone(const struct LDKCOption_PackedLockTimeZ *NONNULL_PTR orig); +struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_PartiallySignedTransactionusizeZ C2Tuple_PartiallySignedTransactionusizeZ_clone(const struct LDKC2Tuple_PartiallySignedTransactionusizeZ *NONNULL_PTR orig); +struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_clone(const struct LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_PartiallySignedTransactionusizeZ from the contained elements. + * Creates a new C2Tuple_CVec_u8ZusizeZ from the contained elements. */ -struct LDKC2Tuple_PartiallySignedTransactionusizeZ C2Tuple_PartiallySignedTransactionusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b); +struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b); /** - * Frees any resources used by the C2Tuple_PartiallySignedTransactionusizeZ. + * Frees any resources used by the C2Tuple_CVec_u8ZusizeZ. */ -void C2Tuple_PartiallySignedTransactionusizeZ_free(struct LDKC2Tuple_PartiallySignedTransactionusizeZ _res); +void C2Tuple_CVec_u8ZusizeZ_free(struct LDKC2Tuple_CVec_u8ZusizeZ _res); /** - * Creates a new CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ in the success state. + * Creates a new CResult_C2Tuple_CVec_u8ZusizeZNoneZ in the success state. */ -struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_ok(struct LDKC2Tuple_PartiallySignedTransactionusizeZ o); +struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_ok(struct LDKC2Tuple_CVec_u8ZusizeZ o); /** - * Creates a new CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ in the error state. + * Creates a new CResult_C2Tuple_CVec_u8ZusizeZNoneZ in the error state. */ -struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_err(void); +struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR o); +bool CResult_C2Tuple_CVec_u8ZusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ. + * Frees any resources used by the CResult_C2Tuple_CVec_u8ZusizeZNoneZ. */ -void CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_free(struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ _res); +void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ _res); /** - * Creates a new CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_CVec_u8ZusizeZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR orig); - -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res); +struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_NoneNoneZ in the success state. @@ -19563,75 +20835,75 @@ struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_None /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res); +void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig); +struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_SignatureCVec_SignatureZZ from the contained elements. + * Creates a new C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ from the contained elements. */ -struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b); +struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b); /** - * Frees any resources used by the C2Tuple_SignatureCVec_SignatureZZ. + * Frees any resources used by the C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ. */ -void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res); +void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res); /** - * Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ in the success state. + * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ in the success state. */ -struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o); +struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o); /** - * Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ in the error state. + * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ in the error state. */ -struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void); +struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o); +bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ. + * Frees any resources used by the CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ. */ -void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res); +void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res); /** - * Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig); /** - * Creates a new CResult_SignatureNoneZ in the success state. + * Creates a new CResult_ECDSASignatureNoneZ in the success state. */ -struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o); +struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o); /** - * Creates a new CResult_SignatureNoneZ in the error state. + * Creates a new CResult_ECDSASignatureNoneZ in the error state. */ -struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void); +struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o); +bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_SignatureNoneZ. + * Frees any resources used by the CResult_ECDSASignatureNoneZ. */ -void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res); +void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res); /** - * Creates a new CResult_SignatureNoneZ which has the same data as `orig` + * Creates a new CResult_ECDSASignatureNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig); +struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_PublicKeyNoneZ in the success state. @@ -19660,82 +20932,82 @@ void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res); struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig); /** - * Constructs a new COption_ScalarZ containing a crate::c_types::BigEndianScalar + * Constructs a new COption_BigEndianScalarZ containing a crate::c_types::BigEndianScalar */ -struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o); +struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o); /** - * Constructs a new COption_ScalarZ containing nothing + * Constructs a new COption_BigEndianScalarZ containing nothing */ -struct LDKCOption_ScalarZ COption_ScalarZ_none(void); +struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void); /** * Frees any resources associated with the crate::c_types::BigEndianScalar, if we are in the Some state */ -void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res); +void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res); /** - * Creates a new COption_ScalarZ which has the same data as `orig` + * Creates a new COption_BigEndianScalarZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_ScalarZ COption_ScalarZ_clone(const struct LDKCOption_ScalarZ *NONNULL_PTR orig); +struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig); /** - * Creates a new CResult_SharedSecretNoneZ in the success state. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o); +void CVec_U5Z_free(struct LDKCVec_U5Z _res); /** - * Creates a new CResult_SharedSecretNoneZ in the error state. + * Creates a new CResult_RecoverableSignatureNoneZ in the success state. */ -struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void); +struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o); /** - * Checks if the given object is currently in the success state + * Creates a new CResult_RecoverableSignatureNoneZ in the error state. */ -bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o); +struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void); /** - * Frees any resources used by the CResult_SharedSecretNoneZ. + * Checks if the given object is currently in the success state */ -void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res); +bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o); /** - * Creates a new CResult_SharedSecretNoneZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees any resources used by the CResult_RecoverableSignatureNoneZ. */ -struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig); +void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res); /** - * Frees the buffer pointed to by `data` if `datalen` is non-0. + * Creates a new CResult_RecoverableSignatureNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -void CVec_U5Z_free(struct LDKCVec_U5Z _res); +struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig); /** - * Creates a new CResult_RecoverableSignatureNoneZ in the success state. + * Creates a new CResult_SchnorrSignatureNoneZ in the success state. */ -struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o); +struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o); /** - * Creates a new CResult_RecoverableSignatureNoneZ in the error state. + * Creates a new CResult_SchnorrSignatureNoneZ in the error state. */ -struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void); +struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o); +bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_RecoverableSignatureNoneZ. + * Frees any resources used by the CResult_SchnorrSignatureNoneZ. */ -void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res); +void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res); /** - * Creates a new CResult_RecoverableSignatureNoneZ which has the same data as `orig` + * Creates a new CResult_SchnorrSignatureNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig); +struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_WriteableEcdsaChannelSignerDecodeErrorZ in the success state. @@ -19764,30 +21036,30 @@ void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_Writ struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_ScriptNoneZ in the success state. + * Creates a new CResult_CVec_u8ZNoneZ in the success state. */ -struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_ok(struct LDKCVec_u8Z o); +struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o); /** - * Creates a new CResult_ScriptNoneZ in the error state. + * Creates a new CResult_CVec_u8ZNoneZ in the error state. */ -struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_err(void); +struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_ScriptNoneZ_is_ok(const struct LDKCResult_ScriptNoneZ *NONNULL_PTR o); +bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_ScriptNoneZ. + * Frees any resources used by the CResult_CVec_u8ZNoneZ. */ -void CResult_ScriptNoneZ_free(struct LDKCResult_ScriptNoneZ _res); +void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res); /** - * Creates a new CResult_ScriptNoneZ which has the same data as `orig` + * Creates a new CResult_CVec_u8ZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_clone(const struct LDKCResult_ScriptNoneZ *NONNULL_PTR orig); +struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_ShutdownScriptNoneZ in the success state. @@ -19815,6 +21087,48 @@ void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res */ struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig); +/** + * Constructs a new COption_u16Z containing a u16 + */ +struct LDKCOption_u16Z COption_u16Z_some(uint16_t o); + +/** + * Constructs a new COption_u16Z containing nothing + */ +struct LDKCOption_u16Z COption_u16Z_none(void); + +/** + * Frees any resources associated with the u16, if we are in the Some state + */ +void COption_u16Z_free(struct LDKCOption_u16Z _res); + +/** + * Creates a new COption_u16Z which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig); + +/** + * Constructs a new COption_boolZ containing a bool + */ +struct LDKCOption_boolZ COption_boolZ_some(bool o); + +/** + * Constructs a new COption_boolZ containing nothing + */ +struct LDKCOption_boolZ COption_boolZ_none(void); + +/** + * Frees any resources associated with the bool, if we are in the Some state + */ +void COption_boolZ_free(struct LDKCOption_boolZ _res); + +/** + * Creates a new COption_boolZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig); + /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ @@ -19872,32 +21186,6 @@ void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDec */ struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig); -/** - * Creates a new CResult_PartiallySignedTransactionNoneZ in the success state. - */ -struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_ok(struct LDKCVec_u8Z o); - -/** - * Creates a new CResult_PartiallySignedTransactionNoneZ in the error state. - */ -struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_err(void); - -/** - * Checks if the given object is currently in the success state - */ -bool CResult_PartiallySignedTransactionNoneZ_is_ok(const struct LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR o); - -/** - * Frees any resources used by the CResult_PartiallySignedTransactionNoneZ. - */ -void CResult_PartiallySignedTransactionNoneZ_free(struct LDKCResult_PartiallySignedTransactionNoneZ _res); - -/** - * Creates a new CResult_PartiallySignedTransactionNoneZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_clone(const struct LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR orig); - /** * Creates a new CResult_TransactionNoneZ in the success state. */ @@ -19940,30 +21228,30 @@ struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void); void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res); /** - * Creates a new CResult_NoneErrorZ in the success state. + * Creates a new CResult_NoneIOErrorZ in the success state. */ -struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void); +struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void); /** - * Creates a new CResult_NoneErrorZ in the error state. + * Creates a new CResult_NoneIOErrorZ in the error state. */ -struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e); +struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e); /** * Checks if the given object is currently in the success state */ -bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o); +bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_NoneErrorZ. + * Frees any resources used by the CResult_NoneIOErrorZ. */ -void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res); +void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res); /** - * Creates a new CResult_NoneErrorZ which has the same data as `orig` + * Creates a new CResult_NoneIOErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig); +struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -20084,27 +21372,6 @@ struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone( */ void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res); -/** - * Constructs a new COption_u32Z containing a u32 - */ -struct LDKCOption_u32Z COption_u32Z_some(uint32_t o); - -/** - * Constructs a new COption_u32Z containing nothing - */ -struct LDKCOption_u32Z COption_u32Z_none(void); - -/** - * Frees any resources associated with the u32, if we are in the Some state - */ -void COption_u32Z_free(struct LDKCOption_u32Z _res); - -/** - * Creates a new COption_u32Z which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig); - /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ @@ -20349,16 +21616,10 @@ void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res); */ struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig); -/** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKC2Tuple_Z C2Tuple_Z_clone(const struct LDKC2Tuple_Z *NONNULL_PTR orig); - /** * Creates a new C2Tuple_Z from the contained elements. */ -struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b); +struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b); /** * Frees any resources used by the C2Tuple_Z. @@ -20366,41 +21627,50 @@ struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b); void C2Tuple_Z_free(struct LDKC2Tuple_Z _res); /** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new C2Tuple__u1632_u1632Z from the contained elements. */ -struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_clone(const struct LDKC2Tuple__u168_u168Z *NONNULL_PTR orig); +struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b); /** - * Creates a new C2Tuple__u168_u168Z from the contained elements. + * Frees any resources used by the C2Tuple__u1632_u1632Z. */ -struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_new(struct LDKEightU16s a, struct LDKEightU16s b); +void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res); /** - * Frees any resources used by the C2Tuple__u168_u168Z. + * Constructs a new COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ containing a crate::c_types::derived::C2Tuple__u1632_u1632Z */ -void C2Tuple__u168_u168Z_free(struct LDKC2Tuple__u168_u168Z _res); +struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o); /** - * Constructs a new COption_C2Tuple_EightU16sEightU16sZZ containing a crate::c_types::derived::C2Tuple__u168_u168Z + * Constructs a new COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ containing nothing */ -struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_some(struct LDKC2Tuple__u168_u168Z o); +struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void); /** - * Constructs a new COption_C2Tuple_EightU16sEightU16sZZ containing nothing + * Frees any resources associated with the crate::c_types::derived::C2Tuple__u1632_u1632Z, if we are in the Some state */ -struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_none(void); +void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res); /** - * Frees any resources associated with the crate::c_types::derived::C2Tuple__u168_u168Z, if we are in the Some state + * Constructs a new COption_f64Z containing a f64 */ -void COption_C2Tuple_EightU16sEightU16sZZ_free(struct LDKCOption_C2Tuple_EightU16sEightU16sZZ _res); +struct LDKCOption_f64Z COption_f64Z_some(double o); /** - * Creates a new COption_C2Tuple_EightU16sEightU16sZZ which has the same data as `orig` + * Constructs a new COption_f64Z containing nothing + */ +struct LDKCOption_f64Z COption_f64Z_none(void); + +/** + * Frees any resources associated with the f64, if we are in the Some state + */ +void COption_f64Z_free(struct LDKCOption_f64Z _res); + +/** + * Creates a new COption_f64Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_clone(const struct LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR orig); +struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig); /** * Creates a new CResult_ProbabilisticScorerDecodeErrorZ in the success state. @@ -20444,46 +21714,51 @@ void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res); void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res); /** - * Constructs a new COption_BlockHashZ containing a crate::c_types::ThirtyTwoBytes + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_BlockHashZ COption_BlockHashZ_some(struct LDKThirtyTwoBytes o); +struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR orig); /** - * Constructs a new COption_BlockHashZ containing nothing + * Creates a new C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ from the contained elements. */ -struct LDKCOption_BlockHashZ COption_BlockHashZ_none(void); +struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_ThirtyTwoBytesZ b); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Frees any resources used by the C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ. */ -void COption_BlockHashZ_free(struct LDKCOption_BlockHashZ _res); +void C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ _res); /** - * Creates a new COption_BlockHashZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCOption_BlockHashZ COption_BlockHashZ_clone(const struct LDKCOption_BlockHashZ *NONNULL_PTR orig); +void CVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ _res); /** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ in the success state. */ -struct LDKC2Tuple_TxidCOption_BlockHashZZ C2Tuple_TxidCOption_BlockHashZZ_clone(const struct LDKC2Tuple_TxidCOption_BlockHashZZ *NONNULL_PTR orig); +struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o); /** - * Creates a new C2Tuple_TxidCOption_BlockHashZZ from the contained elements. + * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ in the error state. */ -struct LDKC2Tuple_TxidCOption_BlockHashZZ C2Tuple_TxidCOption_BlockHashZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_BlockHashZ b); +struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void); /** - * Frees any resources used by the C2Tuple_TxidCOption_BlockHashZZ. + * Checks if the given object is currently in the success state */ -void C2Tuple_TxidCOption_BlockHashZZ_free(struct LDKC2Tuple_TxidCOption_BlockHashZZ _res); +bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o); /** - * Frees the buffer pointed to by `data` if `datalen` is non-0. + * Frees any resources used by the CResult_ChannelMonitorUpdateStatusNoneZ. */ -void CVec_C2Tuple_TxidCOption_BlockHashZZZ_free(struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ _res); +void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res); + +/** + * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -20693,11 +21968,6 @@ void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeF */ struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig); -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_ChainHashZ_free(struct LDKCVec_ChainHashZ _res); - /** * Creates a new CResult_OfferBolt12ParseErrorZ in the success state. */ @@ -20725,30 +21995,30 @@ void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseError struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_PublicKeyErrorZ in the success state. + * Creates a new CResult_PublicKeySecp256k1ErrorZ in the success state. */ -struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o); +struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o); /** - * Creates a new CResult_PublicKeyErrorZ in the error state. + * Creates a new CResult_PublicKeySecp256k1ErrorZ in the error state. */ -struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e); +struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); /** * Checks if the given object is currently in the success state */ -bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o); +bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PublicKeyErrorZ. + * Frees any resources used by the CResult_PublicKeySecp256k1ErrorZ. */ -void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res); +void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res); /** - * Creates a new CResult_PublicKeyErrorZ which has the same data as `orig` + * Creates a new CResult_PublicKeySecp256k1ErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig); +struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_NodeIdDecodeErrorZ in the success state. @@ -21013,7 +22283,7 @@ struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone( /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res); +void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res); /** * Creates a new CResult_NodeAnnouncementInfoDecodeErrorZ in the success state. @@ -21114,46 +22384,77 @@ bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraph void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res); /** - * Constructs a new COption_CVec_NetAddressZZ containing a crate::c_types::derived::CVec_NetAddressZ + * Constructs a new COption_CVec_SocketAddressZZ containing a crate::c_types::derived::CVec_SocketAddressZ */ -struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o); +struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o); /** - * Constructs a new COption_CVec_NetAddressZZ containing nothing + * Constructs a new COption_CVec_SocketAddressZZ containing nothing */ -struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void); +struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void); /** - * Frees any resources associated with the crate::c_types::derived::CVec_NetAddressZ, if we are in the Some state + * Frees any resources associated with the crate::c_types::derived::CVec_SocketAddressZ, if we are in the Some state */ -void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res); +void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res); /** - * Creates a new COption_CVec_NetAddressZZ which has the same data as `orig` + * Creates a new COption_CVec_SocketAddressZZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig); +struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig); /** - * Constructs a new COption_PaymentPreimageZ containing a crate::c_types::ThirtyTwoBytes + * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ in the success state. */ -struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_some(struct LDKThirtyTwoBytes o); +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o); /** - * Constructs a new COption_PaymentPreimageZ containing nothing + * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ in the error state. */ -struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_none(void); +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Checks if the given object is currently in the success state */ -void COption_PaymentPreimageZ_free(struct LDKCOption_PaymentPreimageZ _res); +bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o); /** - * Creates a new COption_PaymentPreimageZ which has the same data as `orig` + * Frees any resources used by the CResult_ChannelDerivationParametersDecodeErrorZ. + */ +void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res); + +/** + * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_clone(const struct LDKCOption_PaymentPreimageZ *NONNULL_PTR orig); +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_HTLCDescriptorDecodeErrorZ in the success state. + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o); + +/** + * Creates a new CResult_HTLCDescriptorDecodeErrorZ in the error state. + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_HTLCDescriptorDecodeErrorZ. + */ +void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res); + +/** + * Creates a new CResult_HTLCDescriptorDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -21249,93 +22550,88 @@ void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res); struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig); /** - * Constructs a new COption_u16Z containing a u16 - */ -struct LDKCOption_u16Z COption_u16Z_some(uint16_t o); - -/** - * Constructs a new COption_u16Z containing nothing + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_u16Z COption_u16Z_none(void); +struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig); /** - * Frees any resources associated with the u16, if we are in the Some state + * Creates a new C2Tuple_u64u16Z from the contained elements. */ -void COption_u16Z_free(struct LDKCOption_u16Z _res); +struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b); /** - * Creates a new COption_u16Z which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees any resources used by the C2Tuple_u64u16Z. */ -struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig); +void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res); /** - * Constructs a new COption_ChannelShutdownStateZ containing a crate::lightning::ln::channelmanager::ChannelShutdownState + * Constructs a new COption_C2Tuple_u64u16ZZ containing a crate::c_types::derived::C2Tuple_u64u16Z */ -struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); +struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o); /** - * Constructs a new COption_ChannelShutdownStateZ containing nothing + * Constructs a new COption_C2Tuple_u64u16ZZ containing nothing */ -struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); +struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void); /** - * Frees any resources associated with the crate::lightning::ln::channelmanager::ChannelShutdownState, if we are in the Some state + * Frees any resources associated with the crate::c_types::derived::C2Tuple_u64u16Z, if we are in the Some state */ -void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); +void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res); /** - * Creates a new COption_ChannelShutdownStateZ which has the same data as `orig` + * Creates a new COption_C2Tuple_u64u16ZZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); +struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig); /** - * Constructs a new COption_PaymentHashZ containing a crate::c_types::ThirtyTwoBytes + * Constructs a new COption_ChannelShutdownStateZ containing a crate::lightning::ln::channelmanager::ChannelShutdownState */ -struct LDKCOption_PaymentHashZ COption_PaymentHashZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); /** - * Constructs a new COption_PaymentHashZ containing nothing + * Constructs a new COption_ChannelShutdownStateZ containing nothing */ -struct LDKCOption_PaymentHashZ COption_PaymentHashZ_none(void); +struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Frees any resources associated with the crate::lightning::ln::channelmanager::ChannelShutdownState, if we are in the Some state */ -void COption_PaymentHashZ_free(struct LDKCOption_PaymentHashZ _res); +void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); /** - * Creates a new COption_PaymentHashZ which has the same data as `orig` + * Creates a new COption_ChannelShutdownStateZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PaymentHashZ COption_PaymentHashZ_clone(const struct LDKCOption_PaymentHashZ *NONNULL_PTR orig); +struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); /** - * Creates a new CResult__u832APIErrorZ in the success state. + * Creates a new CResult_ThirtyTwoBytesAPIErrorZ in the success state. */ -struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o); /** - * Creates a new CResult__u832APIErrorZ in the error state. + * Creates a new CResult_ThirtyTwoBytesAPIErrorZ in the error state. */ -struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e); +struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e); /** * Checks if the given object is currently in the success state */ -bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o); +bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult__u832APIErrorZ. + * Frees any resources used by the CResult_ThirtyTwoBytesAPIErrorZ. */ -void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res); +void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res); /** - * Creates a new CResult__u832APIErrorZ which has the same data as `orig` + * Creates a new CResult_ThirtyTwoBytesAPIErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig); +struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -21395,218 +22691,176 @@ void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendF struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentHashPaymentSendFailureZ in the success state. + * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ in the success state. */ -struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o); /** - * Creates a new CResult_PaymentHashPaymentSendFailureZ in the error state. + * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ in the error state. */ -struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); +struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_PaymentHashPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR o); +bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PaymentHashPaymentSendFailureZ. + * Frees any resources used by the CResult_ThirtyTwoBytesPaymentSendFailureZ. */ -void CResult_PaymentHashPaymentSendFailureZ_free(struct LDKCResult_PaymentHashPaymentSendFailureZ _res); +void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res); /** - * Creates a new CResult_PaymentHashPaymentSendFailureZ which has the same data as `orig` + * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_clone(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR orig); +struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentHashRetryableSendFailureZ in the success state. + * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ in the success state. */ -struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o); /** - * Creates a new CResult_PaymentHashRetryableSendFailureZ in the error state. + * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ in the error state. */ -struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_err(enum LDKRetryableSendFailure e); +struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_PaymentHashRetryableSendFailureZ_is_ok(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR o); +bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PaymentHashRetryableSendFailureZ. + * Frees any resources used by the CResult_ThirtyTwoBytesRetryableSendFailureZ. */ -void CResult_PaymentHashRetryableSendFailureZ_free(struct LDKCResult_PaymentHashRetryableSendFailureZ _res); +void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res); /** - * Creates a new CResult_PaymentHashRetryableSendFailureZ which has the same data as `orig` + * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_clone(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR orig); +struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_PaymentHashPaymentIdZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ from the contained elements. */ -struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); +struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); /** - * Frees any resources used by the C2Tuple_PaymentHashPaymentIdZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ. */ -void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res); +void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ in the success state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ in the success state. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ in the error state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ in the error state. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o); +bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ. + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ. */ -void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res); +void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res); - -/** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig); +void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res); /** - * Creates a new C2Tuple_PaymentHashPaymentSecretZ from the contained elements. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ in the success state. */ -struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o); /** - * Frees any resources used by the C2Tuple_PaymentHashPaymentSecretZ. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ in the error state. */ -void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res); - -/** - * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ in the success state. - */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o); - -/** - * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ in the error state. - */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o); +bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ. + * Frees any resources used by the CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ. */ -void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res); +void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ which has the same data as `orig` + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig); - -/** - * Creates a new CResult_PaymentSecretNoneZ in the success state. - */ -struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentSecretNoneZ in the error state. - */ -struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void); - -/** - * Checks if the given object is currently in the success state - */ -bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o); - -/** - * Frees any resources used by the CResult_PaymentSecretNoneZ. - */ -void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res); - -/** - * Creates a new CResult_PaymentSecretNoneZ which has the same data as `orig` + * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig); - -/** - * Creates a new CResult_PaymentPreimageAPIErrorZ in the success state. - */ -struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o); +struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentPreimageAPIErrorZ in the error state. + * Creates a new C2Tuple_ThirtyTwoBytesPublicKeyZ from the contained elements. */ -struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e); +struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b); /** - * Checks if the given object is currently in the success state + * Frees any resources used by the C2Tuple_ThirtyTwoBytesPublicKeyZ. */ -bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o); +void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res); /** - * Frees any resources used by the CResult_PaymentPreimageAPIErrorZ. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res); +void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res); /** - * Creates a new CResult_PaymentPreimageAPIErrorZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ in the success state. */ -struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); /** - * Constructs a new COption_CVec_ChainHashZZ containing a crate::c_types::derived::CVec_ChainHashZ + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ in the error state. */ -struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_some(struct LDKCVec_ChainHashZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void); /** - * Constructs a new COption_CVec_ChainHashZZ containing nothing + * Checks if the given object is currently in the success state */ -struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_none(void); +bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o); /** - * Frees any resources associated with the crate::c_types::derived::CVec_ChainHashZ, if we are in the Some state + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ. */ -void COption_CVec_ChainHashZZ_free(struct LDKCOption_CVec_ChainHashZZ _res); +void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res); /** - * Creates a new COption_CVec_ChainHashZZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_clone(const struct LDKCOption_CVec_ChainHashZZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_CounterpartyForwardingInfoDecodeErrorZ in the success state. @@ -21744,34 +22998,34 @@ struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateD void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res); /** - * Creates a new C2Tuple_BlockHashChannelManagerZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesChannelManagerZ from the contained elements. */ -struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b); +struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b); /** - * Frees any resources used by the C2Tuple_BlockHashChannelManagerZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesChannelManagerZ. */ -void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res); +void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res); /** - * Creates a new CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ in the success state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ in the success state. */ -struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o); /** - * Creates a new CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ in the error state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ in the error state. */ -struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o); +bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ. + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ. */ -void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res); +void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res); /** * Creates a new CResult_MaxDustHTLCExposureDecodeErrorZ in the success state. @@ -21996,59 +23250,64 @@ struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(co * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig); +struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_OutPointScriptZ from the contained elements. + * Creates a new C2Tuple_OutPointCVec_u8ZZ from the contained elements. */ -struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b); +struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b); /** - * Frees any resources used by the C2Tuple_OutPointScriptZ. + * Frees any resources used by the C2Tuple_OutPointCVec_u8ZZ. */ -void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res); +void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig); +struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_u32ScriptZ from the contained elements. + * Creates a new C2Tuple_u32CVec_u8ZZ from the contained elements. */ -struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b); +struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b); /** - * Frees any resources used by the C2Tuple_u32ScriptZ. + * Frees any resources used by the C2Tuple_u32CVec_u8ZZ. */ -void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res); +void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res); +void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig); + +/** + * Creates a new C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ from the contained elements. + */ +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b); /** - * Creates a new C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ from the contained elements. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b); +void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res); /** - * Frees any resources used by the C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res); +void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res); +void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -22080,17 +23339,17 @@ void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res); * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ from the contained elements. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b); +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b); /** - * Frees any resources used by the C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ. */ -void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res); +void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -22106,43 +23365,43 @@ void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res); * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_BlockHashChannelMonitorZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesChannelMonitorZ from the contained elements. */ -struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b); +struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b); /** - * Frees any resources used by the C2Tuple_BlockHashChannelMonitorZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesChannelMonitorZ. */ -void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res); +void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res); /** - * Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ in the success state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ in the success state. */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o); /** - * Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ in the error state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ in the error state. */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o); +bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ. + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ. */ -void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res); +void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res); /** - * Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` @@ -22281,46 +23540,46 @@ void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecod struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_NetAddressZ containing a crate::lightning::ln::msgs::NetAddress + * Constructs a new COption_SocketAddressZ containing a crate::lightning::ln::msgs::SocketAddress */ -struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o); +struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o); /** - * Constructs a new COption_NetAddressZ containing nothing + * Constructs a new COption_SocketAddressZ containing nothing */ -struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void); +struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void); /** - * Frees any resources associated with the crate::lightning::ln::msgs::NetAddress, if we are in the Some state + * Frees any resources associated with the crate::lightning::ln::msgs::SocketAddress, if we are in the Some state */ -void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res); +void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res); /** - * Creates a new COption_NetAddressZ which has the same data as `orig` + * Creates a new COption_SocketAddressZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig); +struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR orig); +struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_PublicKeyCOption_NetAddressZZ from the contained elements. + * Creates a new C2Tuple_PublicKeyCOption_SocketAddressZZ from the contained elements. */ -struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_NetAddressZ b); +struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b); /** - * Frees any resources used by the C2Tuple_PublicKeyCOption_NetAddressZZ. + * Frees any resources used by the C2Tuple_PublicKeyCOption_SocketAddressZZ. */ -void C2Tuple_PublicKeyCOption_NetAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ _res); +void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ _res); +void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res); /** * Creates a new CResult_CVec_u8ZPeerHandleErrorZ in the success state. @@ -22421,160 +23680,258 @@ bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res); /** - * Constructs a new COption_KeyPairZ containing a crate::c_types::SecretKey + * Creates a new CResult_CVec_u8ZIOErrorZ in the success state. */ -struct LDKCOption_KeyPairZ COption_KeyPairZ_some(struct LDKSecretKey o); +struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o); /** - * Constructs a new COption_KeyPairZ containing nothing + * Creates a new CResult_CVec_u8ZIOErrorZ in the error state. */ -struct LDKCOption_KeyPairZ COption_KeyPairZ_none(void); +struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e); /** - * Frees any resources associated with the crate::c_types::SecretKey, if we are in the Some state + * Checks if the given object is currently in the success state */ -void COption_KeyPairZ_free(struct LDKCOption_KeyPairZ _res); +bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o); /** - * Creates a new COption_KeyPairZ which has the same data as `orig` + * Frees any resources used by the CResult_CVec_u8ZIOErrorZ. + */ +void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res); + +/** + * Creates a new CResult_CVec_u8ZIOErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_KeyPairZ COption_KeyPairZ_clone(const struct LDKCOption_KeyPairZ *NONNULL_PTR orig); +struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_COption_KeyPairZNoneZ in the success state. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_ok(struct LDKCOption_KeyPairZ o); +void CVec_StrZ_free(struct LDKCVec_StrZ _res); /** - * Creates a new CResult_COption_KeyPairZNoneZ in the error state. + * Creates a new CResult_CVec_StrZIOErrorZ in the success state. */ -struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_err(void); +struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o); /** - * Checks if the given object is currently in the success state + * Creates a new CResult_CVec_StrZIOErrorZ in the error state. */ -bool CResult_COption_KeyPairZNoneZ_is_ok(const struct LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR o); +struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e); /** - * Frees any resources used by the CResult_COption_KeyPairZNoneZ. + * Checks if the given object is currently in the success state */ -void CResult_COption_KeyPairZNoneZ_free(struct LDKCResult_COption_KeyPairZNoneZ _res); +bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o); /** - * Creates a new CResult_COption_KeyPairZNoneZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees any resources used by the CResult_CVec_StrZIOErrorZ. */ -struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_clone(const struct LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR orig); +void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res); /** - * Constructs a new COption_ScriptZ containing a crate::c_types::derived::CVec_u8Z + * Creates a new CResult_CVec_StrZIOErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_ScriptZ COption_ScriptZ_some(struct LDKCVec_u8Z o); +struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_ScriptZ containing nothing + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCOption_ScriptZ COption_ScriptZ_none(void); +void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res); /** - * Frees any resources associated with the crate::c_types::derived::CVec_u8Z, if we are in the Some state + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ in the success state. */ -void COption_ScriptZ_free(struct LDKCOption_ScriptZ _res); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o); /** - * Creates a new COption_ScriptZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ in the error state. */ -struct LDKCOption_ScriptZ COption_ScriptZ_clone(const struct LDKCOption_ScriptZ *NONNULL_PTR orig); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e); /** - * Constructs a new COption_NoneZ containing a + * Checks if the given object is currently in the success state */ -enum LDKCOption_NoneZ COption_NoneZ_some(void); +bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o); /** - * Constructs a new COption_NoneZ containing nothing + * Frees any resources used by the CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ. */ -enum LDKCOption_NoneZ COption_NoneZ_none(void); +void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res); /** - * Frees any resources associated with the , if we are in the Some state + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -void COption_NoneZ_free(enum LDKCOption_NoneZ _res); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig); /** - * Frees the buffer pointed to by `data` if `datalen` is non-0. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ in the success state. */ -void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o); /** - * Constructs a new COption_i64Z containing a i64 + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ in the error state. */ -struct LDKCOption_i64Z COption_i64Z_some(int64_t o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e); /** - * Constructs a new COption_i64Z containing nothing + * Checks if the given object is currently in the success state */ -struct LDKCOption_i64Z COption_i64Z_none(void); +bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o); /** - * Frees any resources associated with the i64, if we are in the Some state + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ. */ -void COption_i64Z_free(struct LDKCOption_i64Z _res); +void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res); /** - * Creates a new COption_i64Z which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_TxidZ containing a crate::c_types::ThirtyTwoBytes + * Constructs a new COption_SecretKeyZ containing a crate::c_types::SecretKey */ -struct LDKCOption_TxidZ COption_TxidZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o); /** - * Constructs a new COption_TxidZ containing nothing + * Constructs a new COption_SecretKeyZ containing nothing */ -struct LDKCOption_TxidZ COption_TxidZ_none(void); +struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Frees any resources associated with the crate::c_types::SecretKey, if we are in the Some state */ -void COption_TxidZ_free(struct LDKCOption_TxidZ _res); +void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res); /** - * Creates a new COption_TxidZ which has the same data as `orig` + * Creates a new COption_SecretKeyZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_TxidZ COption_TxidZ_clone(const struct LDKCOption_TxidZ *NONNULL_PTR orig); +struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig); /** - * Creates a new CResult_NetAddressDecodeErrorZ in the success state. + * Creates a new CResult_VerifiedInvoiceRequestNoneZ in the success state. */ -struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o); +struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o); /** - * Creates a new CResult_NetAddressDecodeErrorZ in the error state. + * Creates a new CResult_VerifiedInvoiceRequestNoneZ in the error state. */ -struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e); +struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o); +bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_NetAddressDecodeErrorZ. + * Frees any resources used by the CResult_VerifiedInvoiceRequestNoneZ. */ -void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res); +void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res); /** - * Creates a new CResult_NetAddressDecodeErrorZ which has the same data as `orig` + * Creates a new CResult_VerifiedInvoiceRequestNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig); +struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig); + +/** + * Constructs a new COption_NoneZ containing a + */ +enum LDKCOption_NoneZ COption_NoneZ_some(void); + +/** + * Constructs a new COption_NoneZ containing nothing + */ +enum LDKCOption_NoneZ COption_NoneZ_none(void); + +/** + * Frees any resources associated with the , if we are in the Some state + */ +void COption_NoneZ_free(enum LDKCOption_NoneZ _res); + +/** + * Frees the buffer pointed to by `data` if `datalen` is non-0. + */ +void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res); + +/** + * Constructs a new COption_i64Z containing a i64 + */ +struct LDKCOption_i64Z COption_i64Z_some(int64_t o); + +/** + * Constructs a new COption_i64Z containing nothing + */ +struct LDKCOption_i64Z COption_i64Z_none(void); + +/** + * Frees any resources associated with the i64, if we are in the Some state + */ +void COption_i64Z_free(struct LDKCOption_i64Z _res); + +/** + * Creates a new COption_i64Z which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig); + +/** + * Creates a new CResult_SocketAddressDecodeErrorZ in the success state. + */ +struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o); + +/** + * Creates a new CResult_SocketAddressDecodeErrorZ in the error state. + */ +struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_SocketAddressDecodeErrorZ. + */ +void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res); + +/** + * Creates a new CResult_SocketAddressDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_SocketAddressSocketAddressParseErrorZ in the success state. + */ +struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o); + +/** + * Creates a new CResult_SocketAddressSocketAddressParseErrorZ in the error state. + */ +struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_SocketAddressSocketAddressParseErrorZ. + */ +void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res); + +/** + * Creates a new CResult_SocketAddressSocketAddressParseErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -24118,30 +25475,51 @@ bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_Tru void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res); /** - * Creates a new CResult_CVec_SignatureZNoneZ in the success state. + * Creates a new CResult_CVec_ECDSASignatureZNoneZ in the success state. */ -struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o); +struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o); /** - * Creates a new CResult_CVec_SignatureZNoneZ in the error state. + * Creates a new CResult_CVec_ECDSASignatureZNoneZ in the error state. */ -struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void); +struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o); +bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_CVec_ECDSASignatureZNoneZ. + */ +void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res); + +/** + * Creates a new CResult_CVec_ECDSASignatureZNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig); /** - * Frees any resources used by the CResult_CVec_SignatureZNoneZ. + * Constructs a new COption_usizeZ containing a usize */ -void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res); +struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o); /** - * Creates a new CResult_CVec_SignatureZNoneZ which has the same data as `orig` + * Constructs a new COption_usizeZ containing nothing + */ +struct LDKCOption_usizeZ COption_usizeZ_none(void); + +/** + * Frees any resources associated with the usize, if we are in the Some state + */ +void COption_usizeZ_free(struct LDKCOption_usizeZ _res); + +/** + * Creates a new COption_usizeZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig); +struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig); /** * Creates a new CResult_ShutdownScriptDecodeErrorZ in the success state. @@ -24221,6 +25599,32 @@ void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDec */ struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig); +/** + * Creates a new CResult_ClaimedHTLCDecodeErrorZ in the success state. + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o); + +/** + * Creates a new CResult_ClaimedHTLCDecodeErrorZ in the error state. + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_ClaimedHTLCDecodeErrorZ. + */ +void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res); + +/** + * Creates a new CResult_ClaimedHTLCDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig); + /** * Constructs a new COption_PathFailureZ containing a crate::lightning::events::PathFailure */ @@ -24389,46 +25793,30 @@ void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFail struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_u128Z containing a crate::c_types::U128 + * Constructs a new COption_U128Z containing a crate::c_types::U128 */ -struct LDKCOption_u128Z COption_u128Z_some(struct LDKU128 o); +struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o); /** - * Constructs a new COption_u128Z containing nothing + * Constructs a new COption_U128Z containing nothing */ -struct LDKCOption_u128Z COption_u128Z_none(void); +struct LDKCOption_U128Z COption_U128Z_none(void); /** * Frees any resources associated with the crate::c_types::U128, if we are in the Some state */ -void COption_u128Z_free(struct LDKCOption_u128Z _res); +void COption_U128Z_free(struct LDKCOption_U128Z _res); /** - * Creates a new COption_u128Z which has the same data as `orig` + * Creates a new COption_U128Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_u128Z COption_u128Z_clone(const struct LDKCOption_u128Z *NONNULL_PTR orig); - -/** - * Constructs a new COption_PaymentIdZ containing a crate::c_types::ThirtyTwoBytes - */ -struct LDKCOption_PaymentIdZ COption_PaymentIdZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig); /** - * Constructs a new COption_PaymentIdZ containing nothing - */ -struct LDKCOption_PaymentIdZ COption_PaymentIdZ_none(void); - -/** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state - */ -void COption_PaymentIdZ_free(struct LDKCOption_PaymentIdZ _res); - -/** - * Creates a new COption_PaymentIdZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCOption_PaymentIdZ COption_PaymentIdZ_clone(const struct LDKCOption_PaymentIdZ *NONNULL_PTR orig); +void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res); /** * Constructs a new COption_PaymentFailureReasonZ containing a crate::lightning::events::PaymentFailureReason @@ -24498,37 +25886,6 @@ void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDec */ struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig); -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res); - -/** - * Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ in the success state. - */ -struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o); - -/** - * Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ in the error state. - */ -struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e); - -/** - * Checks if the given object is currently in the success state - */ -bool CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR o); - -/** - * Frees any resources used by the CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ. - */ -void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res); - -/** - * Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR orig); - /** * Creates a new CResult_SiPrefixBolt11ParseErrorZ in the success state. */ @@ -24624,30 +25981,30 @@ struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11 void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res); /** - * Creates a new CResult_PayeePubKeyErrorZ in the success state. + * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the success state. */ -struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o); +struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o); /** - * Creates a new CResult_PayeePubKeyErrorZ in the error state. + * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the error state. */ -struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e); +struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); /** * Checks if the given object is currently in the success state */ -bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o); +bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PayeePubKeyErrorZ. + * Frees any resources used by the CResult_PayeePubKeySecp256k1ErrorZ. */ -void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res); +void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res); /** - * Creates a new CResult_PayeePubKeyErrorZ which has the same data as `orig` + * Creates a new CResult_PayeePubKeySecp256k1ErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig); +struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -24732,11 +26089,6 @@ void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11Invo */ struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig); -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_AddressZ_free(struct LDKCVec_AddressZ _res); - /** * Creates a new CResult_DescriptionCreationErrorZ in the success state. */ @@ -24946,30 +26298,108 @@ void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringD struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentIdPaymentErrorZ in the success state. + * Creates a new CResult_ReceiveTlvsDecodeErrorZ in the success state. */ -struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_ok(struct LDKReceiveTlvs o); /** - * Creates a new CResult_PaymentIdPaymentErrorZ in the error state. + * Creates a new CResult_ReceiveTlvsDecodeErrorZ in the error state. */ -struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e); +struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o); +bool CResult_ReceiveTlvsDecodeErrorZ_is_ok(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PaymentIdPaymentErrorZ. + * Frees any resources used by the CResult_ReceiveTlvsDecodeErrorZ. */ -void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res); +void CResult_ReceiveTlvsDecodeErrorZ_free(struct LDKCResult_ReceiveTlvsDecodeErrorZ _res); /** - * Creates a new CResult_PaymentIdPaymentErrorZ which has the same data as `orig` + * Creates a new CResult_ReceiveTlvsDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig); +struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_clone(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_PaymentRelayDecodeErrorZ in the success state. + */ +struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o); + +/** + * Creates a new CResult_PaymentRelayDecodeErrorZ in the error state. + */ +struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_PaymentRelayDecodeErrorZ. + */ +void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res); + +/** + * Creates a new CResult_PaymentRelayDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_PaymentConstraintsDecodeErrorZ in the success state. + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o); + +/** + * Creates a new CResult_PaymentConstraintsDecodeErrorZ in the error state. + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_PaymentConstraintsDecodeErrorZ. + */ +void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res); + +/** + * Creates a new CResult_PaymentConstraintsDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_ThirtyTwoBytesPaymentErrorZ in the success state. + */ +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_ok(struct LDKThirtyTwoBytes o); + +/** + * Creates a new CResult_ThirtyTwoBytesPaymentErrorZ in the error state. + */ +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_err(struct LDKPaymentError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_ThirtyTwoBytesPaymentErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_ThirtyTwoBytesPaymentErrorZ. + */ +void CResult_ThirtyTwoBytesPaymentErrorZ_free(struct LDKCResult_ThirtyTwoBytesPaymentErrorZ _res); + +/** + * Creates a new CResult_ThirtyTwoBytesPaymentErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_NonePaymentErrorZ in the success state. @@ -24998,30 +26428,56 @@ void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res); struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_StringErrorZ in the success state. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ in the success state. */ -struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o); /** - * Creates a new CResult_StringErrorZ in the error state. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ in the error state. */ -struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_err(struct LDKProbingError e); /** * Checks if the given object is currently in the success state */ -bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o); +bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_StringErrorZ. + * Frees any resources used by the CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ. */ -void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res); +void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ _res); /** - * Creates a new CResult_StringErrorZ which has the same data as `orig` + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_StrSecp256k1ErrorZ in the success state. + */ +struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o); + +/** + * Creates a new CResult_StrSecp256k1ErrorZ in the error state. + */ +struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_StrSecp256k1ErrorZ. + */ +void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res); + +/** + * Creates a new CResult_StrSecp256k1ErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_TxOutUtxoLookupErrorZ in the success state. @@ -25075,6 +26531,42 @@ void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ */ struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig); +/** + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_clone(const struct LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR orig); + +/** + * Creates a new C2Tuple_PublicKeyOnionMessageZ from the contained elements. + */ +struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_new(struct LDKPublicKey a, struct LDKOnionMessage b); + +/** + * Frees any resources used by the C2Tuple_PublicKeyOnionMessageZ. + */ +void C2Tuple_PublicKeyOnionMessageZ_free(struct LDKC2Tuple_PublicKeyOnionMessageZ _res); + +/** + * Creates a new CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ in the success state. + */ +struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_ok(struct LDKC2Tuple_PublicKeyOnionMessageZ o); + +/** + * Creates a new CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ in the error state. + */ +struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_err(struct LDKSendError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_is_ok(const struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ. + */ +void CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_free(struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ _res); + /** * Creates a new CResult_NoneSendErrorZ in the success state. */ @@ -25121,6 +26613,32 @@ void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res); */ struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig); +/** + * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ in the success state. + */ +struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o); + +/** + * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ in the error state. + */ +struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ. + */ +void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res); + +/** + * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig); + /** * Creates a new CResult_BlindedPathDecodeErrorZ in the success state. */ @@ -25437,12 +26955,12 @@ struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_ * A receiver knowing the PublicKey (e.g. the node's id) and the message can be sure that the signature was generated by the caller. * Signatures are EC recoverable, meaning that given the message and the signature the PublicKey of the signer can be extracted. */ -struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); +struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); /** * Recovers the PublicKey of the signer of the message given the message and the signature. */ -struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); +struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); /** * Verifies a message was signed by a PrivateKey that derives to a given PublicKey, given a message, a signature, @@ -25455,11 +26973,92 @@ bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk); */ struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature); +/** + * Calls the free function if one is set + */ +void KVStore_free(struct LDKKVStore this_ptr); + /** * Calls the free function if one is set */ void Persister_free(struct LDKPersister this_ptr); +/** + * Read previously persisted [`ChannelMonitor`]s from the store. + */ +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); + +/** + * Frees any resources used by the MonitorUpdatingPersister, if is_owned is set and inner is non-NULL. + */ +void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj); + +/** + * Constructs a new [`MonitorUpdatingPersister`]. + * + * The `maximum_pending_updates` parameter controls how many updates may be stored before a + * [`MonitorUpdatingPersister`] consolidates updates by writing a full monitor. Note that + * consolidation will frequently occur with fewer updates than what you set here; this number + * is merely the maximum that may be stored. When setting this value, consider that for higher + * values of `maximum_pending_updates`: + * + * - [`MonitorUpdatingPersister`] will tend to write more [`ChannelMonitorUpdate`]s than + * [`ChannelMonitor`]s, approaching one [`ChannelMonitor`] write for every + * `maximum_pending_updates` [`ChannelMonitorUpdate`]s. + * - [`MonitorUpdatingPersister`] will issue deletes differently. Lazy deletes will come in + * \"waves\" for each [`ChannelMonitor`] write. A larger `maximum_pending_updates` means bigger, + * less frequent \"waves.\" + * - [`MonitorUpdatingPersister`] will potentially have more listing to do if you need to run + * [`MonitorUpdatingPersister::cleanup_stale_updates`]. + */ +MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); + +/** + * Reads all stored channel monitors, along with any stored updates for them. + * + * It is extremely important that your [`KVStore::read`] implementation uses the + * [`io::ErrorKind::NotFound`] variant correctly. For more information, please see the + * documentation for [`MonitorUpdatingPersister`]. + */ +MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator); + +/** + * Read a single channel monitor, along with any stored updates for it. + * + * It is extremely important that your [`KVStore::read`] implementation uses the + * [`io::ErrorKind::NotFound`] variant correctly. For more information, please see the + * documentation for [`MonitorUpdatingPersister`]. + * + * For `monitor_key`, channel storage keys be the channel's transaction ID and index, or + * [`OutPoint`], with an underscore `_` between them. For example, given: + * + * - Transaction ID: `deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef` + * - Index: `1` + * + * The correct `monitor_key` would be: + * `deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1` + * + * Loading a large number of monitors will be faster if done in parallel. You can use this + * function to accomplish this. Take care to limit the number of parallel readers. + */ +MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key); + +/** + * Cleans up stale updates for all monitors. + * + * This function works by first listing all monitors, and then for each of them, listing all + * updates. The updates that have an `update_id` less than or equal to than the stored monitor + * are deleted. The deletion can either be lazy or non-lazy based on the `lazy` flag; this will + * be passed to [`KVStore::remove`]. + */ +MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy); + +/** + * Constructs a new Persist which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned Persist must be freed before this_arg is + */ +struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg); + /** * Frees any resources used by the UntrustedString, if is_owned is set and inner is non-NULL. */ @@ -26980,9 +28579,9 @@ enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void); enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void); /** - * Utility method to constructs a new PermanentFailure-variant ChannelMonitorUpdateStatus + * Utility method to constructs a new UnrecoverableError-variant ChannelMonitorUpdateStatus */ -enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure(void); +enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void); /** * Checks if two ChannelMonitorUpdateStatuss contain equal inner contents. @@ -27008,12 +28607,12 @@ void WatchedOutput_free(struct LDKWatchedOutput this_obj); /** * First block where the transaction output may have been spent. */ -struct LDKCOption_BlockHashZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); /** * First block where the transaction output may have been spent. */ -void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_BlockHashZ val); +void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * Outpoint identifying the transaction output. @@ -27038,7 +28637,7 @@ void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_p /** * Constructs a new WatchedOutput given each field */ -MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_BlockHashZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); +MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); /** * Creates a copy of the WatchedOutput @@ -27329,20 +28928,15 @@ struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_ struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a); /** - * Utility method to constructs a new CommitmentTxConfirmed-variant MonitorEvent + * Utility method to constructs a new HolderForceClosed-variant MonitorEvent */ -struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a); +struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a); /** * Utility method to constructs a new Completed-variant MonitorEvent */ struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id); -/** - * Utility method to constructs a new UpdateFailed-variant MonitorEvent - */ -struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a); - /** * Checks if two MonitorEvents contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -27463,7 +29057,7 @@ struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_ * * panics if the given update is not the next update by update_id. */ -MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /** * Gets the update_id from the latest ChannelMonitorUpdate which was applied to this @@ -27474,13 +29068,13 @@ MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChanne /** * Gets the funding transaction outpoint of the channel this ChannelMonitor is monitoring for. */ -MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** * Gets a list of txids, with their output scripts (in the order they appear in the * transaction), which we must learn about spends of via block_connected(). */ -MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** * Loads the funding txo and outputs to watch into the given `chain::Filter` by repeatedly @@ -27512,6 +29106,69 @@ MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_m */ void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler); +/** + * Gets the counterparty's initial commitment transaction. The returned commitment + * transaction is unsigned. This is intended to be called during the initial persistence of + * the monitor (inside an implementation of [`Persist::persist_new_channel`]), to allow for + * watchtowers in the persistence pipeline to have enough data to form justice transactions. + * + * This is similar to [`Self::counterparty_commitment_txs_from_update`], except + * that for the initial commitment transaction, we don't have a corresponding update. + * + * This will only return `Some` for channel monitors that have been created after upgrading + * to LDK 0.0.117+. + * + * [`Persist::persist_new_channel`]: crate::chain::chainmonitor::Persist::persist_new_channel + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + +/** + * Gets all of the counterparty commitment transactions provided by the given update. This + * may be empty if the update doesn't include any new counterparty commitments. Returned + * commitment transactions are unsigned. + * + * This is provided so that watchtower clients in the persistence pipeline are able to build + * justice transactions for each counterparty commitment upon each update. It's intended to be + * used within an implementation of [`Persist::update_persisted_channel`], which is provided + * with a monitor and an update. Once revoked, signing a justice transaction can be done using + * [`Self::sign_to_local_justice_tx`]. + * + * It is expected that a watchtower client may use this method to retrieve the latest counterparty + * commitment transaction(s), and then hold the necessary data until a later update in which + * the monitor has been updated with the corresponding revocation data, at which point the + * monitor can sign the justice transaction. + * + * This will only return a non-empty list for monitor updates that have been created after + * upgrading to LDK 0.0.117+. Note that no restriction lies on the monitors themselves, which + * may have been created prior to upgrading. + * + * [`Persist::update_persisted_channel`]: crate::chain::chainmonitor::Persist::update_persisted_channel + */ +MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); + +/** + * Wrapper around [`EcdsaChannelSigner::sign_justice_revoked_output`] to make + * signing the justice transaction easier for implementors of + * [`chain::chainmonitor::Persist`]. On success this method returns the provided transaction + * signing the input at `input_idx`. This method will only produce a valid signature for + * a transaction spending the `to_local` output of a commitment transaction, i.e. this cannot + * be used for revoked HTLC outputs. + * + * `Value` is the value of the output being spent by the input at `input_idx`, committed + * in the BIP 143 signature. + * + * This method will only succeed if this monitor has received the revocation secret for the + * provided `commitment_number`. If a commitment number is provided that does not correspond + * to the commitment transaction being revoked, this will return a signed transaction, but + * the signature will not be valid. + * + * [`EcdsaChannelSigner::sign_justice_revoked_output`]: crate::sign::EcdsaChannelSigner::sign_justice_revoked_output + * [`Persist`]: crate::chain::chainmonitor::Persist + */ +MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number); + /** * Gets the `node_id` of the counterparty for this channel. * @@ -27523,21 +29180,20 @@ void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNU MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** - * Used by ChannelManager deserialization to broadcast the latest holder state if its copy of - * the Channel was out-of-date. + * Used by [`ChannelManager`] deserialization to broadcast the latest holder state if its copy + * of the channel state was out-of-date. * * You may also use this to broadcast the latest local commitment transaction, either because - * a monitor update failed with [`ChannelMonitorUpdateStatus::PermanentFailure`] or because we've - * fallen behind (i.e. we've received proof that our counterparty side knows a revocation - * secret we gave them that they shouldn't know). + * a monitor update failed or because we've fallen behind (i.e. we've received proof that our + * counterparty side knows a revocation secret we gave them that they shouldn't know). * * Broadcasting these transactions in the second case is UNSAFE, as they allow counterparty * side to punish you. Nevertheless you may want to broadcast them if counterparty doesn't * close channel with their commitment transaction after a substantial amount of time. Best * may be to contact the other node operator out-of-band to coordinate other options available - * to you. In any-case, the choice is up to you. + * to you. * - * [`ChannelMonitorUpdateStatus::PermanentFailure`]: super::ChannelMonitorUpdateStatus::PermanentFailure + * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger); @@ -27597,7 +29253,7 @@ MUST_USE_RES struct LDKCVec_TransactionOutputsZ ChannelMonitor_best_block_update /** * Returns the set of txids that should be monitored for re-organization out of the chain. */ -MUST_USE_RES struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** * Gets the latest best block which was connected either via the [`chain::Listen`] or @@ -27614,6 +29270,28 @@ MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct */ void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger); +/** + * Returns the descriptors for relevant outputs (i.e., those that we can spend) within the + * transaction if they exist and the transaction has at least [`ANTI_REORG_DELAY`] + * confirmations. For [`SpendableOutputDescriptor::DelayedPaymentOutput`] descriptors to be + * returned, the transaction must have at least `max(ANTI_REORG_DELAY, to_self_delay)` + * confirmations. + * + * Descriptors returned by this method are primarily exposed via [`Event::SpendableOutputs`] + * once they are no longer under reorg risk. This method serves as a way to retrieve these + * descriptors at a later time, either for historical purposes, or to replay any + * missed/unhandled descriptors. For the purpose of gathering historical records, if the + * channel close has fully resolved (i.e., [`ChannelMonitor::get_claimable_balances`] returns + * an empty set), you can retrieve all spendable outputs by providing all descendant spending + * transactions starting from the channel's funding transaction and going down three levels. + * + * `tx` is a transaction we'll scan the outputs of. Any transaction can be provided. If any + * outputs which can be spent by us are found, at least one descriptor is returned. + * + * `confirmation_height` must be the height of the block in which `tx` was included in. + */ +MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height); + /** * Gets the balances in this channel which are either claimable by us if we were to * force-close the channel now or which are claimable on-chain (possibly awaiting @@ -27625,8 +29303,7 @@ void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *N * confirmations on the claim transaction. * * Note that for `ChannelMonitors` which track a channel which went on-chain with versions of - * LDK prior to 0.0.111, balances may not be fully captured if our counterparty broadcasted - * a revoked state. + * LDK prior to 0.0.111, not all or excess balances may be included. * * See [`Balance`] for additional details on the types of claimable balances which * may be returned here and their meanings. @@ -27634,9 +29311,9 @@ void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *N MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** - * Read a C2Tuple_BlockHashChannelMonitorZ from a byte array, created by C2Tuple_BlockHashChannelMonitorZ_write + * Read a C2Tuple_ThirtyTwoBytesChannelMonitorZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelMonitorZ_write */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); /** * Frees any resources used by the OutPoint, if is_owned is set and inner is non-NULL. @@ -27700,25 +29377,35 @@ struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj); */ struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser); +/** + * Frees any resources used by the FailureCode + */ +void FailureCode_free(struct LDKFailureCode this_ptr); + /** * Creates a copy of the FailureCode */ -enum LDKFailureCode FailureCode_clone(const enum LDKFailureCode *NONNULL_PTR orig); +struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig); /** * Utility method to constructs a new TemporaryNodeFailure-variant FailureCode */ -enum LDKFailureCode FailureCode_temporary_node_failure(void); +struct LDKFailureCode FailureCode_temporary_node_failure(void); /** * Utility method to constructs a new RequiredNodeFeatureMissing-variant FailureCode */ -enum LDKFailureCode FailureCode_required_node_feature_missing(void); +struct LDKFailureCode FailureCode_required_node_feature_missing(void); /** * Utility method to constructs a new IncorrectOrUnknownPaymentDetails-variant FailureCode */ -enum LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); +struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); + +/** + * Utility method to constructs a new InvalidOnionPayload-variant FailureCode + */ +struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a); /** * Frees any resources used by the ChannelManager, if is_owned is set and inner is non-NULL. @@ -27906,6 +29593,8 @@ void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounter /** * Constructs a new ChannelCounterparty given each field + * + * Note that forwarding_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg); @@ -28110,16 +29799,28 @@ struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const s void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /** - * The `user_channel_id` passed in to create_channel, or a random value if the channel was - * inbound. This may be zero for inbound channels serialized with LDK versions prior to - * 0.0.113. + * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound + * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. This may be zero for objects + * serialized with LDK versions prior to 0.0.113. + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /** - * The `user_channel_id` passed in to create_channel, or a random value if the channel was - * inbound. This may be zero for inbound channels serialized with LDK versions prior to - * 0.0.113. + * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound + * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. This may be zero for objects + * serialized with LDK versions prior to 0.0.113. + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val); @@ -28439,6 +30140,10 @@ void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, s /** * Constructs a new ChannelDetails given each field + * + * Note that funding_txo_arg (or a relevant inner pointer) may be NULL or all-0s to represent None + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None + * Note that config_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg); @@ -28513,20 +30218,25 @@ void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr); */ struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig); +/** + * Utility method to constructs a new AwaitingInvoice-variant RecentPaymentDetails + */ +struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id); + /** * Utility method to constructs a new Pending-variant RecentPaymentDetails */ -struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); +struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); /** * Utility method to constructs a new Fulfilled-variant RecentPaymentDetails */ -struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKCOption_PaymentHashZ payment_hash); +struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash); /** * Utility method to constructs a new Abandoned-variant RecentPaymentDetails */ -struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_hash); +struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash); /** * Frees any resources used by the PhantomRouteHints, if is_owned is set and inner is non-NULL. @@ -28634,7 +30344,7 @@ MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configurati * * Note that override_config (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKCResult__u832APIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config); /** * Gets the list of open channels, in random order. See [`ChannelDetails`] field documentation for @@ -28799,9 +30509,8 @@ void ChannelManager_force_close_all_channels_without_broadcasting_txn(const stru * In general, a path may raise: * * [`APIError::InvalidRoute`] when an invalid route or forwarding parameter (cltv_delta, fee, * node public key) is specified. - * * [`APIError::ChannelUnavailable`] if the next-hop channel is not available for updates - * (including due to previous monitor update failure or new permanent monitor update - * failure). + * * [`APIError::ChannelUnavailable`] if the next-hop channel is not available as it has been + * closed, doesn't exist, or the peer is currently disconnected. * * [`APIError::MonitorUpdateInProgress`] if a new monitor update failure prevented sending the * relevant updates. * @@ -28825,10 +30534,12 @@ MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payme MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); /** - * Signals that no further retries for the given payment should occur. Useful if you have a + * Signals that no further attempts for the given payment should occur. Useful if you have a * pending outbound payment with retries remaining, but wish to stop retrying the payment before * retries are exhausted. * + * # Event Generation + * * If no [`Event::PaymentFailed`] event had been generated before, one will be generated as soon * as there are no remaining pending HTLCs for this payment. * @@ -28836,11 +30547,10 @@ MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_pay * wait until you receive either a [`Event::PaymentFailed`] or [`Event::PaymentSent`] event to * determine the ultimate status of a payment. * - * If an [`Event::PaymentFailed`] event is generated and we restart without this - * [`ChannelManager`] having been persisted, another [`Event::PaymentFailed`] may be generated. + * # Restart Behavior * - * [`Event::PaymentFailed`]: events::Event::PaymentFailed - * [`Event::PaymentSent`]: events::Event::PaymentSent + * If an [`Event::PaymentFailed`] is generated and we restart without first persisting the + * [`ChannelManager`], another [`Event::PaymentFailed`] may be generated. */ void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id); @@ -28859,7 +30569,7 @@ void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR * * [`send_payment`]: Self::send_payment */ -MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); /** * Similar to [`ChannelManager::send_spontaneous_payment`], but will automatically find a route @@ -28870,14 +30580,40 @@ MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_sen * * [`PaymentParameters::for_keysend`]: crate::routing::router::PaymentParameters::for_keysend */ -MUST_USE_RES struct LDKCResult_PaymentHashRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); /** * Send a payment that is probing the given route for liquidity. We calculate the * [`PaymentHash`] of probes based on a static secret and a random [`PaymentId`], which allows * us to easily discern them from real payments. */ -MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); +MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); + +/** + * Sends payment probes over all paths of a route that would be used to pay the given + * amount to the given `node_id`. + * + * See [`ChannelManager::send_preflight_probes`] for more information. + */ +MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier); + +/** + * Sends payment probes over all paths of a route that would be used to pay a route found + * according to the given [`RouteParameters`]. + * + * This may be used to send \"pre-flight\" probes, i.e., to train our scorer before conducting + * the actual payment. Note this is only useful if there likely is sufficient time for the + * probe to settle before sending out the actual payment, e.g., when waiting for user + * confirmation in a wallet UI. + * + * Otherwise, there is a chance the probe could take up some liquidity needed to complete the + * actual payment. Users should therefore be cautious and might avoid sending probes if + * liquidity is scarce and/or they don't expect the probe to return before they send the + * payment. To mitigate this issue, channels with available liquidity less than the required + * amount times the given `liquidity_limit_multiplier` won't be used to send pre-flight + * probes. If `None` is given as `liquidity_limit_multiplier`, it defaults to `3`. + */ +MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier); /** * Call this upon creation of a funding transaction for the given channel. @@ -28913,6 +30649,20 @@ MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ */ MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction); +/** + * Call this upon creation of a batch funding transaction for the given channels. + * + * Return values are identical to [`Self::funding_transaction_generated`], respective to + * each individual channel and transaction output. + * + * Do NOT broadcast the funding transaction yourself. This batch funding transcaction + * will only be broadcast when we have safely received and persisted the counterparty's + * signature for each channel. + * + * If there is an error, all channels in the batch are to be considered closed. + */ +MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction); + /** * Atomically applies partial updates to the [`ChannelConfig`] of the given channels. * @@ -29055,7 +30805,7 @@ void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_ * * See [`FailureCode`] for valid failure codes. */ -void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], enum LDKFailureCode failure_code); +void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code); /** * Provides a payment preimage in response to [`Event::PaymentClaimable`], generating any @@ -29071,15 +30821,33 @@ void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManag * event matches your expectation. If you fail to do so and call this method, you may provide * the sender \"proof-of-payment\" when they did not fulfill the full expected payment. * + * This function will fail the payment if it has custom TLVs with even type numbers, as we + * will assume they are unknown. If you intend to accept even custom TLVs, you should use + * [`claim_funds_with_known_custom_tlvs`]. + * * [`Event::PaymentClaimable`]: crate::events::Event::PaymentClaimable * [`Event::PaymentClaimable::claim_deadline`]: crate::events::Event::PaymentClaimable::claim_deadline * [`Event::PaymentClaimed`]: crate::events::Event::PaymentClaimed * [`process_pending_events`]: EventsProvider::process_pending_events * [`create_inbound_payment`]: Self::create_inbound_payment * [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash + * [`claim_funds_with_known_custom_tlvs`]: Self::claim_funds_with_known_custom_tlvs */ void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); +/** + * This is a variant of [`claim_funds`] that allows accepting a payment with custom TLVs with + * even type numbers. + * + * # Note + * + * You MUST check you've understood all even TLVs before using this to + * claim, otherwise you may unintentionally agree to some protocol you do not understand. + * + * [`claim_funds`]: Self::claim_funds + */ +void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); + /** * Gets the node_id held by this ChannelManager */ @@ -29161,7 +30929,7 @@ MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_chann * [`PaymentPurpose::InvoicePayment::payment_preimage`]: events::PaymentPurpose::InvoicePayment::payment_preimage * [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash */ -MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); +MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /** * Gets a [`PaymentSecret`] for a given [`PaymentHash`], for which the payment preimage is @@ -29211,7 +30979,7 @@ MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelMan * [`create_inbound_payment`]: Self::create_inbound_payment * [`PaymentClaimable`]: events::Event::PaymentClaimable */ -MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); /** * Gets an LDK-generated payment preimage from a payment hash and payment secret that were @@ -29219,7 +30987,7 @@ MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_ * * [`create_inbound_payment`]: Self::create_inbound_payment */ -MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); /** * Gets a fake short channel id for use in receiving [phantom node payments]. These fake scids @@ -29277,13 +31045,21 @@ struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNUL struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg); /** - * Gets a [`Future`] that completes when this [`ChannelManager`] needs to be persisted. + * Gets a [`Future`] that completes when this [`ChannelManager`] may need to be persisted or + * may have events that need processing. + * + * In order to check if this [`ChannelManager`] needs persisting, call + * [`Self::get_and_clear_needs_persistence`]. * * Note that callbacks registered on the [`Future`] MUST NOT call back into this * [`ChannelManager`] and should instead register actions to be taken later. - * */ -MUST_USE_RES struct LDKFuture ChannelManager_get_persistable_update_future(const struct LDKChannelManager *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg); + +/** + * Returns true if this [`ChannelManager`] needs to be persisted. + */ +MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg); /** * Gets the latest best block which was connected either via the [`chain::Listen`] or @@ -29515,9 +31291,9 @@ void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors); /** - * Read a C2Tuple_BlockHashChannelManagerZ from a byte array, created by C2Tuple_BlockHashChannelManagerZ_write + * Read a C2Tuple_ThirtyTwoBytesChannelManagerZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelManagerZ_write */ -struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); /** * Frees any resources used by the ExpandedKey, if is_owned is set and inner is non-NULL. @@ -29548,7 +31324,7 @@ MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material) * [phantom node payments]: crate::sign::PhantomKeysManager * [`NodeSigner::get_inbound_payment_key_material`]: crate::sign::NodeSigner::get_inbound_payment_key_material */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /** * Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash`], @@ -29562,7 +31338,7 @@ struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDK * * [phantom node payments]: crate::sign::PhantomKeysManager */ -struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); +struct LDKCResult_ThirtyTwoBytesNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /** * Frees any resources used by the DecodeError @@ -29637,14 +31413,14 @@ void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatu * * Returns a copy of the field. */ -struct LDKCOption_CVec_ChainHashZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_ThirtyTwoBytesZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr); /** * Indicates chains the sender is interested in. * * If there are no common chains, the connection will be closed. */ -void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ChainHashZZ val); +void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ThirtyTwoBytesZZ val); /** * The receipient's network address. @@ -29654,7 +31430,7 @@ void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_C * public IPv4 address (NAT) and use that for a [`NodeAnnouncement`] update message containing * the new address. */ -struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr); +struct LDKCOption_SocketAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr); /** * The receipient's network address. @@ -29664,12 +31440,12 @@ struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKIn * public IPv4 address (NAT) and use that for a [`NodeAnnouncement`] update message containing * the new address. */ -void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val); +void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val); /** * Constructs a new Init given each field */ -MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ChainHashZZ networks_arg, struct LDKCOption_NetAddressZ remote_network_address_arg); +MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ThirtyTwoBytesZZ networks_arg, struct LDKCOption_SocketAddressZ remote_network_address_arg); /** * Creates a copy of the Init @@ -30067,12 +31843,12 @@ void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, /** * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close */ -struct LDKCOption_ScriptZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); /** * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close */ -void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent @@ -30096,8 +31872,10 @@ void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, s /** * Constructs a new OpenChannel given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); +MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); /** * Creates a copy of the OpenChannel @@ -30316,13 +32094,13 @@ void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_p * Optionally, a request to pre-set the to-channel-initiator output's scriptPubkey for when we * collaboratively close */ -struct LDKCOption_ScriptZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); /** * Optionally, a request to pre-set the to-channel-initiator output's scriptPubkey for when we * collaboratively close */ -void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent. If none is set, we derive the channel @@ -30354,8 +32132,10 @@ void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL /** * Constructs a new OpenChannelV2 given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); +MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); /** * Creates a copy of the OpenChannelV2 @@ -30517,12 +32297,12 @@ void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNU /** * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close */ -struct LDKCOption_ScriptZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); /** * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close */ -void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent. @@ -30548,8 +32328,10 @@ void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_pt /** * Constructs a new AcceptChannel given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); +MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); /** * Creates a copy of the AcceptChannel @@ -30728,13 +32510,13 @@ void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 * * Optionally, a request to pre-set the to-channel-acceptor output's scriptPubkey for when we * collaboratively close */ -struct LDKCOption_ScriptZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); /** * Optionally, a request to pre-set the to-channel-acceptor output's scriptPubkey for when we * collaboratively close */ -void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent. If none is set, we derive the channel @@ -30770,8 +32552,10 @@ void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NON /** * Constructs a new AcceptChannelV2 given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); +MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); /** * Creates a copy of the AcceptChannelV2 @@ -30823,17 +32607,17 @@ void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_P /** * The signature of the channel initiator (funder) on the initial commitment transaction */ -struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr); +struct LDKECDSASignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr); /** * The signature of the channel initiator (funder) on the initial commitment transaction */ -void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val); +void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Constructs a new FundingCreated given each field */ -MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKSignature signature_arg); +MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg); /** * Creates a copy of the FundingCreated @@ -30865,17 +32649,17 @@ void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, /** * The signature of the channel acceptor (fundee) on the initial commitment transaction */ -struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr); +struct LDKECDSASignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr); /** * The signature of the channel acceptor (fundee) on the initial commitment transaction */ -void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val); +void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Constructs a new FundingSigned given each field */ -MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg); +MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg); /** * Creates a copy of the FundingSigned @@ -31529,12 +33313,12 @@ void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_pt /** * A signature on the closing transaction */ -struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr); +struct LDKECDSASignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr); /** * A signature on the closing transaction */ -void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val); +void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The minimum and maximum fees which the sender is willing to accept, provided only by new @@ -31554,8 +33338,10 @@ void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, /** * Constructs a new ClosingSigned given each field + * + * Note that fee_range_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); +MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); /** * Creates a copy of the ClosingSigned @@ -31667,6 +33453,21 @@ struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage */ void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val); +/** + * The full onion packet including hop data, pubkey, and hmac + */ +struct LDKPacket OnionMessage_get_onion_routing_packet(const struct LDKOnionMessage *NONNULL_PTR this_ptr); + +/** + * The full onion packet including hop data, pubkey, and hmac + */ +void OnionMessage_set_onion_routing_packet(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPacket val); + +/** + * Constructs a new OnionMessage given each field + */ +MUST_USE_RES struct LDKOnionMessage OnionMessage_new(struct LDKPublicKey blinding_point_arg, struct LDKPacket onion_routing_packet_arg); + /** * Creates a copy of the OnionMessage */ @@ -31833,29 +33634,29 @@ void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR thi /** * A signature on the commitment transaction */ -struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); +struct LDKECDSASignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); /** * A signature on the commitment transaction */ -void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val); +void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Signatures on the HTLC transactions * * Returns a copy of the field. */ -struct LDKCVec_SignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); +struct LDKCVec_ECDSASignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); /** * Signatures on the HTLC transactions */ -void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val); +void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val); /** * Constructs a new CommitmentSigned given each field */ -MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg); +MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg); /** * Creates a copy of the CommitmentSigned @@ -32023,17 +33824,17 @@ void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelRee /** * The next funding transaction ID */ -struct LDKCOption_TxidZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); /** * The next funding transaction ID */ -void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_TxidZ val); +void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * Constructs a new ChannelReestablish given each field */ -MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_TxidZ next_funding_txid_arg); +MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg); /** * Creates a copy of the ChannelReestablish @@ -32075,27 +33876,27 @@ void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignature /** * A signature by the node key */ -struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); +struct LDKECDSASignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); /** * A signature by the node key */ -void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val); +void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * A signature by the funding key */ -struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); +struct LDKECDSASignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); /** * A signature by the funding key */ -void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val); +void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Constructs a new AnnouncementSignatures given each field */ -MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg); +MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg); /** * Creates a copy of the AnnouncementSignatures @@ -32110,55 +33911,98 @@ struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAn bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b); /** - * Frees any resources used by the NetAddress + * Frees any resources used by the SocketAddress + */ +void SocketAddress_free(struct LDKSocketAddress this_ptr); + +/** + * Creates a copy of the SocketAddress + */ +struct LDKSocketAddress SocketAddress_clone(const struct LDKSocketAddress *NONNULL_PTR orig); + +/** + * Utility method to constructs a new TcpIpV4-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_tcp_ip_v4(struct LDKFourBytes addr, uint16_t port); + +/** + * Utility method to constructs a new TcpIpV6-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_tcp_ip_v6(struct LDKSixteenBytes addr, uint16_t port); + +/** + * Utility method to constructs a new OnionV2-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_onion_v2(struct LDKTwelveBytes a); + +/** + * Utility method to constructs a new OnionV3-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port); + +/** + * Utility method to constructs a new Hostname-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_hostname(struct LDKHostname hostname, uint16_t port); + +/** + * Checks if two SocketAddresss contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool SocketAddress_eq(const struct LDKSocketAddress *NONNULL_PTR a, const struct LDKSocketAddress *NONNULL_PTR b); + +/** + * Serialize the SocketAddress object into a byte array which can be read by SocketAddress_read */ -void NetAddress_free(struct LDKNetAddress this_ptr); +struct LDKCVec_u8Z SocketAddress_write(const struct LDKSocketAddress *NONNULL_PTR obj); /** - * Creates a copy of the NetAddress + * Read a SocketAddress from a byte array, created by SocketAddress_write */ -struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig); +struct LDKCResult_SocketAddressDecodeErrorZ SocketAddress_read(struct LDKu8slice ser); /** - * Utility method to constructs a new IPv4-variant NetAddress + * Creates a copy of the SocketAddressParseError */ -struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_clone(const enum LDKSocketAddressParseError *NONNULL_PTR orig); /** - * Utility method to constructs a new IPv6-variant NetAddress + * Utility method to constructs a new SocketAddrParse-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_socket_addr_parse(void); /** - * Utility method to constructs a new OnionV2-variant NetAddress + * Utility method to constructs a new InvalidInput-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a); +enum LDKSocketAddressParseError SocketAddressParseError_invalid_input(void); /** - * Utility method to constructs a new OnionV3-variant NetAddress + * Utility method to constructs a new InvalidPort-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_invalid_port(void); /** - * Utility method to constructs a new Hostname-variant NetAddress + * Utility method to constructs a new InvalidOnionV3-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_hostname(struct LDKHostname hostname, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_invalid_onion_v3(void); /** - * Checks if two NetAddresss contain equal inner contents. + * Checks if two SocketAddressParseErrors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. */ -bool NetAddress_eq(const struct LDKNetAddress *NONNULL_PTR a, const struct LDKNetAddress *NONNULL_PTR b); +bool SocketAddressParseError_eq(const enum LDKSocketAddressParseError *NONNULL_PTR a, const enum LDKSocketAddressParseError *NONNULL_PTR b); /** - * Serialize the NetAddress object into a byte array which can be read by NetAddress_read + * Parses an OnionV3 host and port into a [`SocketAddress::OnionV3`]. + * + * The host part must end with \".onion\". */ -struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj); +struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port); /** - * Read a NetAddress from a byte array, created by NetAddress_write + * Read a SocketAddress object from a string */ -struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser); +struct LDKCResult_SocketAddressSocketAddressParseErrorZ SocketAddress_from_str(struct LDKStr s); /** * Frees any resources used by the UnsignedGossipMessage @@ -32256,12 +34100,12 @@ void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONN * * Returns a copy of the field. */ -struct LDKCVec_NetAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); +struct LDKCVec_SocketAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); /** * List of addresses on which this node is reachable */ -void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val); +void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_SocketAddressZ val); /** * Creates a copy of the UnsignedNodeAnnouncement @@ -32283,12 +34127,12 @@ void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj); /** * The signature by the node key */ -struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr); /** * The signature by the node key */ -void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The actual content of the announcement @@ -32303,7 +34147,7 @@ void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ /** * Constructs a new NodeAnnouncement given each field */ -MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg); +MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg); /** * Creates a copy of the NodeAnnouncement @@ -32392,6 +34236,29 @@ struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKU */ void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); +/** + * Excess data which was signed as a part of the message which we do not (yet) understand how + * to decode. + * + * This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. + * + * Returns a copy of the field. + */ +struct LDKCVec_u8Z UnsignedChannelAnnouncement_get_excess_data(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); + +/** + * Excess data which was signed as a part of the message which we do not (yet) understand how + * to decode. + * + * This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. + */ +void UnsignedChannelAnnouncement_set_excess_data(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + +/** + * Constructs a new UnsignedChannelAnnouncement given each field + */ +MUST_USE_RES struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_new(struct LDKChannelFeatures features_arg, struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, struct LDKNodeId node_id_1_arg, struct LDKNodeId node_id_2_arg, struct LDKNodeId bitcoin_key_1_arg, struct LDKNodeId bitcoin_key_2_arg, struct LDKCVec_u8Z excess_data_arg); + /** * Creates a copy of the UnsignedChannelAnnouncement */ @@ -32412,42 +34279,42 @@ void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj); /** * Authentication of the announcement by the first public node */ -struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Authentication of the announcement by the first public node */ -void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Authentication of the announcement by the second public node */ -struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Authentication of the announcement by the second public node */ -void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Proof of funding UTXO ownership by the first public node */ -struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Proof of funding UTXO ownership by the first public node */ -void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Proof of funding UTXO ownership by the second public node */ -struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Proof of funding UTXO ownership by the second public node */ -void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The actual announcement @@ -32462,7 +34329,7 @@ void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR /** * Constructs a new ChannelAnnouncement given each field */ -MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg); +MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKECDSASignature node_signature_1_arg, struct LDKECDSASignature node_signature_2_arg, struct LDKECDSASignature bitcoin_signature_1_arg, struct LDKECDSASignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg); /** * Creates a copy of the ChannelAnnouncement @@ -32632,12 +34499,12 @@ void ChannelUpdate_free(struct LDKChannelUpdate this_obj); /** * A signature of the channel update */ -struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr); /** * A signature of the channel update */ -void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The actual channel update @@ -32652,7 +34519,7 @@ void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, s /** * Constructs a new ChannelUpdate given each field */ -MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg); +MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg); /** * Creates a copy of the ChannelUpdate @@ -33083,6 +34950,8 @@ void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_ /** * Constructs a new CommitmentUpdate given each field + * + * Note that update_fee_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKCommitmentUpdate CommitmentUpdate_new(struct LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, struct LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, struct LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, struct LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, struct LDKUpdateFee update_fee_arg, struct LDKCommitmentSigned commitment_signed_arg); @@ -33780,7 +35649,7 @@ MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler mess * The returned `Option`s will only be `Some` if an address had been previously given via * [`Self::new_outbound_connection`] or [`Self::new_inbound_connection`]. */ -MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg); /** * Indicates a new outbound connection has been established to a node with the given `node_id` @@ -33799,7 +35668,7 @@ MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_g * * [`socket_disconnected`]: PeerManager::socket_disconnected */ -MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address); +MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); /** * Indicates a new inbound connection has been established to a node with an optional remote @@ -33818,7 +35687,7 @@ MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound * * [`socket_disconnected`]: PeerManager::socket_disconnected */ -MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address); +MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); /** * Indicates that there is room to write data to the given socket descriptor. @@ -33932,7 +35801,7 @@ void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR th * * [`get_and_clear_pending_msg_events`]: MessageSendEventsProvider::get_and_clear_pending_msg_events */ -void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses); +void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_SocketAddressZ addresses); /** * Gets the weight for an HTLC-Success transaction. @@ -34247,6 +36116,11 @@ MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicK */ struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the ChannelPublicKeys. + */ +uint64_t ChannelPublicKeys_hash(const struct LDKChannelPublicKeys *NONNULL_PTR o); + /** * Checks if two ChannelPublicKeyss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -34283,6 +36157,12 @@ MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_from_channel_static_keys(st */ struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key); +/** + * Returns the script for the counterparty's output on a holder's commitment transaction based on + * the channel type. + */ +struct LDKCVec_u8Z get_counterparty_payment_script(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey payment_key); + /** * Frees any resources used by the HTLCOutputInCommitment, if is_owned is set and inner is non-NULL. */ @@ -34403,7 +36283,7 @@ struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32 /** * Returns the witness required to satisfy and spend a HTLC input. */ -struct LDKWitness build_htlc_input_witness(struct LDKSignature local_sig, struct LDKSignature remote_sig, struct LDKCOption_PaymentPreimageZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); +struct LDKWitness build_htlc_input_witness(struct LDKECDSASignature local_sig, struct LDKECDSASignature remote_sig, struct LDKCOption_ThirtyTwoBytesZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); /** * Gets the witnessScript for the to_remote output when anchors are enabled. @@ -34423,7 +36303,7 @@ struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey); /** * Returns the witness required to satisfy and spend an anchor input. */ -struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKSignature funding_sig); +struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKECDSASignature funding_sig); /** * Frees any resources used by the ChannelTransactionParameters, if is_owned is set and inner is non-NULL. @@ -34506,6 +36386,9 @@ void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTra /** * Constructs a new ChannelTransactionParameters given each field + * + * Note that counterparty_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None + * Note that funding_outpoint_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg, struct LDKChannelTypeFeatures channel_type_features_arg); @@ -34514,6 +36397,11 @@ MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters */ struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the ChannelTransactionParameters. + */ +uint64_t ChannelTransactionParameters_hash(const struct LDKChannelTransactionParameters *NONNULL_PTR o); + /** * Checks if two ChannelTransactionParameterss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -34556,6 +36444,11 @@ MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChan */ struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the CounterpartyChannelTransactionParameters. + */ +uint64_t CounterpartyChannelTransactionParameters_hash(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR o); + /** * Checks if two CounterpartyChannelTransactionParameterss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -34651,24 +36544,24 @@ void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this /** * Our counterparty's signature for the transaction */ -struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); +struct LDKECDSASignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); /** * Our counterparty's signature for the transaction */ -void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val); +void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * All non-dust counterparty HTLC signatures, in the order they appear in the transaction * * Returns a copy of the field. */ -struct LDKCVec_SignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); +struct LDKCVec_ECDSASignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); /** * All non-dust counterparty HTLC signatures, in the order they appear in the transaction */ -void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val); +void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val); /** * Creates a copy of the HolderCommitmentTransaction @@ -34689,7 +36582,7 @@ struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransa * Create a new holder transaction with the given counterparty signatures. * The funding keys are used to figure out which signature should go first when building the transaction for broadcast. */ -MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key); +MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKECDSASignature counterparty_sig, struct LDKCVec_ECDSASignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key); /** * Frees any resources used by the BuiltCommitmentTransaction, if is_owned is set and inner is non-NULL. @@ -34752,12 +36645,12 @@ MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all /** * Signs the counterparty's commitment transaction. */ -MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); +MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); /** * Signs the holder commitment transaction because we are about to broadcast it. */ -MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source); +MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source); /** * Frees any resources used by the ClosingTransaction, if is_owned is set and inner is non-NULL. @@ -34847,7 +36740,7 @@ MUST_USE_RES struct LDKThirtyTwoBytes TrustedClosingTransaction_get_sighash_all( * Sign a transaction, either because we are counter-signing the counterparty's transaction or * because we are about to broadcast a holder transaction. */ -MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); +MUST_USE_RES struct LDKECDSASignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); /** * Frees any resources used by the CommitmentTransaction, if is_owned is set and inner is non-NULL. @@ -34942,7 +36835,35 @@ MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_ * * This function is only valid in the holder commitment context, it always uses EcdsaSighashType::All. */ -MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source); +MUST_USE_RES struct LDKCResult_CVec_ECDSASignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source); + +/** + * Returns the index of the revokeable output, i.e. the `to_local` output sending funds to + * the broadcaster, in the built transaction, if any exists. + * + * There are two cases where this may return `None`: + * - The balance of the revokeable output is below the dust limit (only found on commitments + * early in the channel's lifetime, i.e. before the channel reserve is met). + * - This commitment was created before LDK 0.0.117. In this case, the + * commitment transaction previously didn't contain enough information to locate the + * revokeable output. + */ +MUST_USE_RES struct LDKCOption_usizeZ TrustedCommitmentTransaction_revokeable_output_index(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); + +/** + * Helper method to build an unsigned justice transaction spending the revokeable + * `to_local` output to a destination script. Fee estimation accounts for the expected + * revocation witness data that will be added when signed. + * + * This method will error if the given fee rate results in a fee greater than the value + * of the output being spent, or if there exists no revokeable `to_local` output on this + * commitment transaction. See [`Self::revokeable_output_index`] for more details. + * + * The built transaction will allow fee bumping with RBF, and this method takes + * `feerate_per_kw` as an input such that multiple copies of a justice transaction at different + * fee rates may be built. + */ +MUST_USE_RES struct LDKCResult_TransactionNoneZ TrustedCommitmentTransaction_build_to_local_justice_tx(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, uint64_t feerate_per_kw, struct LDKCVec_u8Z destination_script); /** * Commitment transaction numbers which appear in the transactions themselves are XOR'd with a @@ -35123,6 +37044,28 @@ MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFe */ MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35161,6 +37104,28 @@ MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFe */ MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35199,6 +37164,28 @@ MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKCha */ MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35237,6 +37224,28 @@ MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct */ MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35275,6 +37284,28 @@ MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOffer */ MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35313,6 +37344,28 @@ MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct */ MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35351,6 +37404,28 @@ MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct */ MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35389,6 +37464,28 @@ MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDK */ MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35427,6 +37524,28 @@ MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LD */ MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -36114,6 +38233,66 @@ MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitF */ MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg); +/** + * Set this feature as optional. + */ +void InitFeatures_set_taproot_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as required. + */ +void InitFeatures_set_taproot_required(struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is supported. + */ +MUST_USE_RES bool InitFeatures_supports_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as optional. + */ +void NodeFeatures_set_taproot_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as required. + */ +void NodeFeatures_set_taproot_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is supported. + */ +MUST_USE_RES bool NodeFeatures_supports_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as optional. + */ +void ChannelTypeFeatures_set_taproot_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as required. + */ +void ChannelTypeFeatures_set_taproot_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is supported. + */ +MUST_USE_RES bool ChannelTypeFeatures_supports_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is required. + */ +MUST_USE_RES bool InitFeatures_requires_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is required. + */ +MUST_USE_RES bool NodeFeatures_requires_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is required. + */ +MUST_USE_RES bool ChannelTypeFeatures_requires_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + /** * Set this feature as optional. */ @@ -36464,7 +38643,7 @@ struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig); /** * Utility method to constructs a new Attempts-variant Retry */ -struct LDKRetry Retry_attempts(uintptr_t a); +struct LDKRetry Retry_attempts(uint32_t a); /** * Utility method to constructs a new Timeout-variant Retry @@ -36482,6 +38661,16 @@ bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNU */ uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o); +/** + * Serialize the Retry object into a byte array which can be read by Retry_read + */ +struct LDKCVec_u8Z Retry_write(const struct LDKRetry *NONNULL_PTR obj); + +/** + * Read a Retry from a byte array, created by Retry_write + */ +struct LDKCResult_RetryDecodeErrorZ Retry_read(struct LDKu8slice ser); + /** * Creates a copy of the RetryableSendFailure */ @@ -36543,6 +38732,38 @@ struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void); */ struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id); +/** + * Checks if two PaymentSendFailures contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool PaymentSendFailure_eq(const struct LDKPaymentSendFailure *NONNULL_PTR a, const struct LDKPaymentSendFailure *NONNULL_PTR b); + +/** + * Frees any resources used by the ProbeSendFailure + */ +void ProbeSendFailure_free(struct LDKProbeSendFailure this_ptr); + +/** + * Creates a copy of the ProbeSendFailure + */ +struct LDKProbeSendFailure ProbeSendFailure_clone(const struct LDKProbeSendFailure *NONNULL_PTR orig); + +/** + * Utility method to constructs a new RouteNotFound-variant ProbeSendFailure + */ +struct LDKProbeSendFailure ProbeSendFailure_route_not_found(void); + +/** + * Utility method to constructs a new SendingFailed-variant ProbeSendFailure + */ +struct LDKProbeSendFailure ProbeSendFailure_sending_failed(struct LDKPaymentSendFailure a); + +/** + * Checks if two ProbeSendFailures contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool ProbeSendFailure_eq(const struct LDKProbeSendFailure *NONNULL_PTR a, const struct LDKProbeSendFailure *NONNULL_PTR b); + /** * Frees any resources used by the RecipientOnionFields, if is_owned is set and inner is non-NULL. */ @@ -36561,7 +38782,7 @@ void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj); * want to provide a secret for a spontaneous payment if MPP is needed and you know your * recipient will not reject it. */ -struct LDKCOption_PaymentSecretZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr); /** * The [`PaymentSecret`] is an arbitrary 32 bytes provided by the recipient for us to repeat @@ -36576,7 +38797,7 @@ struct LDKCOption_PaymentSecretZ RecipientOnionFields_get_payment_secret(const s * want to provide a secret for a spontaneous payment if MPP is needed and you know your * recipient will not reject it. */ -void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_PaymentSecretZ val); +void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * The payment metadata serves a similar purpose as [`Self::payment_secret`] but is of @@ -36612,11 +38833,6 @@ struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const stru */ void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); -/** - * Constructs a new RecipientOnionFields given each field - */ -MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_new(struct LDKCOption_PaymentSecretZ payment_secret_arg, struct LDKCOption_CVec_u8ZZ payment_metadata_arg); - /** * Creates a copy of the RecipientOnionFields */ @@ -36658,6 +38874,33 @@ MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(str */ MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void); +/** + * Creates a new [`RecipientOnionFields`] from an existing one, adding custom TLVs. Each + * TLV is provided as a `(u64, Vec)` for the type number and serialized value + * respectively. TLV type numbers must be unique and within the range + * reserved for custom types, i.e. >= 2^16, otherwise this method will return `Err(())`. + * + * This method will also error for types in the experimental range which have been + * standardized within the protocol, which only includes 5482373484 (keysend) for now. + * + * See [`Self::custom_tlvs`] for more info. + */ +MUST_USE_RES struct LDKCResult_RecipientOnionFieldsNoneZ RecipientOnionFields_with_custom_tlvs(struct LDKRecipientOnionFields this_arg, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs); + +/** + * Gets the custom TLVs that will be sent or have been received. + * + * Custom TLVs allow sending extra application-specific data with a payment. They provide + * additional flexibility on top of payment metadata, as while other implementations may + * require `payment_metadata` to reflect metadata provided in an invoice, custom TLVs + * do not have this restriction. + * + * Note that if this field is non-empty, it will contain strictly increasing TLVs, each + * represented by a `(u64, Vec)` for its type number and serialized value respectively. + * This is validated when setting this field using [`Self::with_custom_tlvs`]. + */ +MUST_USE_RES struct LDKCVec_C2Tuple_u64CVec_u8ZZZ RecipientOnionFields_custom_tlvs(const struct LDKRecipientOnionFields *NONNULL_PTR this_arg); + /** * Calls the free function if one is set */ @@ -36673,15 +38916,139 @@ struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig); */ void Type_free(struct LDKType this_ptr); +/** + * Frees any resources used by the Offer, if is_owned is set and inner is non-NULL. + */ +void Offer_free(struct LDKOffer this_obj); + +/** + * Creates a copy of the Offer + */ +struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig); + +/** + * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). + * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) + * for the selected chain. + */ +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originator. Useful for authentication and validating fields since it + * is reflected in `invoice_request` messages along with all the other fields from the `offer`. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the payment. Intended to be displayed to the user + * but with the caveat that it has not been verified in any way. + */ +MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Features pertaining to the offer. + */ +MUST_USE_RES struct LDKOfferFeatures Offer_offer_features(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * If `None`, the offer does not expire. + */ +MUST_USE_RES struct LDKCOption_u64Z Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be + * displayed to the user but with the caveat that it has not been verified in any way. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide + * recipient privacy by obfuscating its node id. + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + */ +MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The public key used by the recipient to sign invoices. + */ +MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Returns whether the given chain is supported by the offer. + */ +MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain); + +/** + * Whether the offer has expired. + */ +MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Returns whether the given quantity is valid for the offer. + */ +MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity); + +/** + * Returns whether a quantity is expected in an [`InvoiceRequest`] for the offer. + * + * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest + */ +MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Serialize the Offer object into a byte array which can be read by Offer_read + */ +struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj); + +/** + * Frees any resources used by the Amount, if is_owned is set and inner is non-NULL. + */ +void Amount_free(struct LDKAmount this_obj); + +/** + * Creates a copy of the Amount + */ +struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig); + +/** + * Frees any resources used by the Quantity, if is_owned is set and inner is non-NULL. + */ +void Quantity_free(struct LDKQuantity this_obj); + +/** + * Creates a copy of the Quantity + */ +struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig); + +/** + * Read a Offer object from a string + */ +struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s); + /** * Frees any resources used by the UnsignedBolt12Invoice, if is_owned is set and inner is non-NULL. */ void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj); /** - * The public key corresponding to the key needed to sign the invoice. + * Returns the [`TaggedHash`] of the invoice to sign. */ -MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); /** * Frees any resources used by the Bolt12Invoice, if is_owned is set and inner is non-NULL. @@ -36694,11 +39061,331 @@ void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj); struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig); /** - * A complete description of the purpose of the originating offer or refund. Intended to be - * displayed to the user but with the caveat that it has not been verified in any way. + * The chains that may be used when paying a requested invoice. + * + * From [`Offer::chains`]; `None` if the invoice was created in response to a [`Refund`]. + * + * [`Offer::chains`]: crate::offers::offer::Offer::chains + */ +MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ UnsignedBolt12Invoice_offer_chains(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The chain that must be used when paying the invoice; selected from [`offer_chains`] if the + * invoice originated from an offer. + * + * From [`InvoiceRequest::chain`] or [`Refund::chain`]. + * + * [`offer_chains`]: Self::offer_chains + * [`InvoiceRequest::chain`]: crate::offers::invoice_request::InvoiceRequest::chain + */ +MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_chain(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originating [`Offer`]. + * + * From [`Offer::metadata`]; `None` if the invoice was created in response to a [`Refund`] or + * if the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::metadata`]: crate::offers::offer::Offer::metadata + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedBolt12Invoice_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * From [`Offer::amount`]; `None` if the invoice was created in response to a [`Refund`] or if + * the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::amount`]: crate::offers::offer::Offer::amount + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to the originating [`Offer`]. + * + * From [`Offer::offer_features`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::offer_features`]: crate::offers::offer::Offer::offer_features + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKOfferFeatures UnsignedBolt12Invoice_offer_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the originating offer or refund. + * + * From [`Offer::description`] or [`Refund::description`]. + * + * [`Offer::description`]: crate::offers::offer::Offer::description + */ +MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_description(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * From [`Offer::absolute_expiry`] or [`Refund::absolute_expiry`]. + * + * [`Offer::absolute_expiry`]: crate::offers::offer::Offer::absolute_expiry + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_absolute_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The issuer of the offer or refund. + * + * From [`Offer::issuer`] or [`Refund::issuer`]. + * + * [`Offer::issuer`]: crate::offers::offer::Offer::issuer + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_issuer(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. + * + * From [`Offer::paths`] or [`Refund::paths`]. + * + * [`Offer::paths`]: crate::offers::offer::Offer::paths + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedBolt12Invoice_message_paths(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + * + * From [`Offer::supported_quantity`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer::supported_quantity`]: crate::offers::offer::Offer::supported_quantity + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKQuantity UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * An unpredictable series of bytes from the payer. + * + * From [`InvoiceRequest::payer_metadata`] or [`Refund::payer_metadata`]. + */ +MUST_USE_RES struct LDKu8slice UnsignedBolt12Invoice_payer_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to requesting an invoice. + * + * From [`InvoiceRequest::invoice_request_features`] or [`Refund::features`]. + */ +MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedBolt12Invoice_invoice_request_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items requested or refunded for. + * + * From [`InvoiceRequest::quantity`] or [`Refund::quantity`]. + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A possibly transient pubkey used to sign the invoice request or to send an invoice for a + * refund in case there are no [`message_paths`]. + * + * [`message_paths`]: Self::message_paths + */ +MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_payer_id(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A payer-provided note reflected back in the invoice. + * + * From [`InvoiceRequest::payer_note`] or [`Refund::payer_note`]. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_payer_note(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when the invoice was created. + */ +MUST_USE_RES uint64_t UnsignedBolt12Invoice_created_at(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Duration since [`Bolt12Invoice::created_at`] when the invoice has expired and therefore + * should no longer be paid. + */ +MUST_USE_RES uint64_t UnsignedBolt12Invoice_relative_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Whether the invoice has expired. + */ +MUST_USE_RES bool UnsignedBolt12Invoice_is_expired(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * SHA256 hash of the payment preimage that will be given in return for paying the invoice. + */ +MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_payment_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of the invoice. + */ +MUST_USE_RES uint64_t UnsignedBolt12Invoice_amount_msats(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to paying an invoice. + */ +MUST_USE_RES struct LDKBolt12InvoiceFeatures UnsignedBolt12Invoice_invoice_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The public key corresponding to the key used to sign the invoice. + */ +MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The chains that may be used when paying a requested invoice. + * + * From [`Offer::chains`]; `None` if the invoice was created in response to a [`Refund`]. + * + * [`Offer::chains`]: crate::offers::offer::Offer::chains + */ +MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ Bolt12Invoice_offer_chains(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The chain that must be used when paying the invoice; selected from [`offer_chains`] if the + * invoice originated from an offer. + * + * From [`InvoiceRequest::chain`] or [`Refund::chain`]. + * + * [`offer_chains`]: Self::offer_chains + * [`InvoiceRequest::chain`]: crate::offers::invoice_request::InvoiceRequest::chain + */ +MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_chain(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originating [`Offer`]. + * + * From [`Offer::metadata`]; `None` if the invoice was created in response to a [`Refund`] or + * if the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::metadata`]: crate::offers::offer::Offer::metadata + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt12Invoice_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * From [`Offer::amount`]; `None` if the invoice was created in response to a [`Refund`] or if + * the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::amount`]: crate::offers::offer::Offer::amount + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to the originating [`Offer`]. + * + * From [`Offer::offer_features`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::offer_features`]: crate::offers::offer::Offer::offer_features + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKOfferFeatures Bolt12Invoice_offer_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the originating offer or refund. + * + * From [`Offer::description`] or [`Refund::description`]. + * + * [`Offer::description`]: crate::offers::offer::Offer::description */ MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * From [`Offer::absolute_expiry`] or [`Refund::absolute_expiry`]. + * + * [`Offer::absolute_expiry`]: crate::offers::offer::Offer::absolute_expiry + */ +MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_absolute_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The issuer of the offer or refund. + * + * From [`Offer::issuer`] or [`Refund::issuer`]. + * + * [`Offer::issuer`]: crate::offers::offer::Offer::issuer + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString Bolt12Invoice_issuer(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. + * + * From [`Offer::paths`] or [`Refund::paths`]. + * + * [`Offer::paths`]: crate::offers::offer::Offer::paths + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ Bolt12Invoice_message_paths(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + * + * From [`Offer::supported_quantity`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer::supported_quantity`]: crate::offers::offer::Offer::supported_quantity + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKQuantity Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * An unpredictable series of bytes from the payer. + * + * From [`InvoiceRequest::payer_metadata`] or [`Refund::payer_metadata`]. + */ +MUST_USE_RES struct LDKu8slice Bolt12Invoice_payer_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to requesting an invoice. + * + * From [`InvoiceRequest::invoice_request_features`] or [`Refund::features`]. + */ +MUST_USE_RES struct LDKInvoiceRequestFeatures Bolt12Invoice_invoice_request_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items requested or refunded for. + * + * From [`InvoiceRequest::quantity`] or [`Refund::quantity`]. + */ +MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A possibly transient pubkey used to sign the invoice request or to send an invoice for a + * refund in case there are no [`message_paths`]. + * + * [`message_paths`]: Self::message_paths + */ +MUST_USE_RES struct LDKPublicKey Bolt12Invoice_payer_id(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A payer-provided note reflected back in the invoice. + * + * From [`InvoiceRequest::payer_note`] or [`Refund::payer_note`]. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString Bolt12Invoice_payer_note(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + /** * Duration since the Unix epoch when the invoice was created. */ @@ -36728,22 +39415,33 @@ MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice * /** * Features pertaining to paying an invoice. */ -MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); /** * The public key corresponding to the key used to sign the invoice. */ MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); +/** + * Signature of the invoice verified using [`Bolt12Invoice::signing_pubkey`]. + */ +MUST_USE_RES struct LDKSchnorrSignature Bolt12Invoice_signature(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + /** * Hash that was used for signing the invoice. */ MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); /** - * Verifies that the invoice was for a request or refund created using the given key. + * Verifies that the invoice was for a request or refund created using the given key. Returns + * the associated [`PaymentId`] to use when sending the payment. */ -MUST_USE_RES bool Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); + +/** + * Serialize the UnsignedBolt12Invoice object into a byte array which can be read by UnsignedBolt12Invoice_read + */ +struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj); /** * Serialize the Bolt12Invoice object into a byte array which can be read by Bolt12Invoice_read @@ -36898,6 +39596,8 @@ void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, stru /** * Constructs a new InvoiceError given each field + * + * Note that erroneous_field_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg); @@ -36958,6 +39658,11 @@ struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice s */ void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj); +/** + * Returns the [`TaggedHash`] of the invoice to sign. + */ +MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + /** * Frees any resources used by the InvoiceRequest, if is_owned is set and inner is non-NULL. */ @@ -36968,13 +39673,215 @@ void InvoiceRequest_free(struct LDKInvoiceRequest this_obj); */ struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig); +/** + * Frees any resources used by the VerifiedInvoiceRequest, if is_owned is set and inner is non-NULL. + */ +void VerifiedInvoiceRequest_free(struct LDKVerifiedInvoiceRequest this_obj); + +/** + * Keys used for signing a [`Bolt12Invoice`] if they can be derived. + * + * If `Some`, must call [`respond_using_derived_keys`] when responding. Otherwise, call + * [`respond_with`]. + * + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice + * [`respond_using_derived_keys`]: Self::respond_using_derived_keys + * [`respond_with`]: Self::respond_with + */ +struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr); + +/** + * Keys used for signing a [`Bolt12Invoice`] if they can be derived. + * + * If `Some`, must call [`respond_using_derived_keys`] when responding. Otherwise, call + * [`respond_with`]. + * + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice + * [`respond_using_derived_keys`]: Self::respond_using_derived_keys + * [`respond_with`]: Self::respond_with + */ +void VerifiedInvoiceRequest_set_keys(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKCOption_SecretKeyZ val); + +/** + * Creates a copy of the VerifiedInvoiceRequest + */ +struct LDKVerifiedInvoiceRequest VerifiedInvoiceRequest_clone(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR orig); + +/** + * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). + * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) + * for the selected chain. + */ +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ UnsignedInvoiceRequest_chains(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originator. Useful for authentication and validating fields since it + * is reflected in `invoice_request` messages along with all the other fields from the `offer`. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedInvoiceRequest_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the payment. Intended to be displayed to the user + * but with the caveat that it has not been verified in any way. + */ +MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_description(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Features pertaining to the offer. + */ +MUST_USE_RES struct LDKOfferFeatures UnsignedInvoiceRequest_offer_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * If `None`, the offer does not expire. + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_absolute_expiry(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be + * displayed to the user but with the caveat that it has not been verified in any way. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_issuer(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide + * recipient privacy by obfuscating its node id. + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedInvoiceRequest_paths(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + */ +MUST_USE_RES struct LDKQuantity UnsignedInvoiceRequest_supported_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The public key used by the recipient to sign invoices. + */ +MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_signing_pubkey(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * An unpredictable series of bytes, typically containing information about the derivation of + * [`payer_id`]. + * + * [`payer_id`]: Self::payer_id + */ +MUST_USE_RES struct LDKu8slice UnsignedInvoiceRequest_payer_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A chain from [`Offer::chains`] that the offer is valid for. + */ +MUST_USE_RES struct LDKThirtyTwoBytes UnsignedInvoiceRequest_chain(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The amount to pay in msats (i.e., the minimum lightning-payable unit for [`chain`]), which + * must be greater than or equal to [`Offer::amount`], converted if necessary. + * + * [`chain`]: Self::chain + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_amount_msats(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Features pertaining to requesting an invoice. + */ +MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedInvoiceRequest_invoice_request_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A possibly transient pubkey used to sign the invoice request. + */ +MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_payer_id(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A payer-provided note which will be seen by the recipient and reflected back in the invoice + * response. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_payer_note(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). + * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) + * for the selected chain. + */ +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ InvoiceRequest_chains(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originator. Useful for authentication and validating fields since it + * is reflected in `invoice_request` messages along with all the other fields from the `offer`. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the payment. Intended to be displayed to the user + * but with the caveat that it has not been verified in any way. + */ +MUST_USE_RES struct LDKPrintableString InvoiceRequest_description(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Features pertaining to the offer. + */ +MUST_USE_RES struct LDKOfferFeatures InvoiceRequest_offer_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * If `None`, the offer does not expire. + */ +MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_absolute_expiry(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be + * displayed to the user but with the caveat that it has not been verified in any way. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString InvoiceRequest_issuer(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide + * recipient privacy by obfuscating its node id. + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ InvoiceRequest_paths(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + */ +MUST_USE_RES struct LDKQuantity InvoiceRequest_supported_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The public key used by the recipient to sign invoices. + */ +MUST_USE_RES struct LDKPublicKey InvoiceRequest_signing_pubkey(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + /** * An unpredictable series of bytes, typically containing information about the derivation of * [`payer_id`]. * * [`payer_id`]: Self::payer_id */ -MUST_USE_RES struct LDKu8slice InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKu8slice InvoiceRequest_payer_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** * A chain from [`Offer::chains`] that the offer is valid for. @@ -36992,7 +39899,7 @@ MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDK /** * Features pertaining to requesting an invoice. */ -MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_invoice_request_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. @@ -37013,76 +39920,58 @@ MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoice MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** - * Verifies that the request was for an offer created using the given key. Returns the derived - * keys need to sign an [`Bolt12Invoice`] for the request if they could be extracted from the - * metadata. + * Signature of the invoice request using [`payer_id`]. * - * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice - */ -MUST_USE_RES struct LDKCResult_COption_KeyPairZNoneZ InvoiceRequest_verify(const struct LDKInvoiceRequest *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); - -/** - * Serialize the InvoiceRequest object into a byte array which can be read by InvoiceRequest_read - */ -struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj); - -/** - * Frees any resources used by the Offer, if is_owned is set and inner is non-NULL. + * [`payer_id`]: Self::payer_id */ -void Offer_free(struct LDKOffer this_obj); +MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** - * Creates a copy of the Offer + * Verifies that the request was for an offer created using the given key. Returns the verified + * request which contains the derived keys needed to sign a [`Bolt12Invoice`] for the request + * if they could be extracted from the metadata. + * + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ -struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig); +MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key); /** * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) * for the selected chain. */ -MUST_USE_RES struct LDKCVec_ChainHashZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg); - -/** - * Returns whether the given chain is supported by the offer. - */ -MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain); +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Opaque bytes set by the originator. Useful for authentication and validating fields since it * is reflected in `invoice_request` messages along with all the other fields from the `offer`. */ -MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_CVec_u8ZZ VerifiedInvoiceRequest_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * The minimum amount required for a successful payment of a single item. * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKAmount VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * A complete description of the purpose of the payment. Intended to be displayed to the user * but with the caveat that it has not been verified in any way. */ -MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_description(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Features pertaining to the offer. */ -MUST_USE_RES struct LDKOfferFeatures Offer_features(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKOfferFeatures VerifiedInvoiceRequest_offer_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Duration since the Unix epoch when an invoice should no longer be requested. * * If `None`, the offer does not expire. */ -MUST_USE_RES struct LDKCOption_DurationZ Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg); - -/** - * Whether the offer has expired. - */ -MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_absolute_expiry(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be @@ -37090,65 +39979,82 @@ MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_issuer(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide * recipient privacy by obfuscating its node id. */ -MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_BlindedPathZ VerifiedInvoiceRequest_paths(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * The quantity of items supported. */ -MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKQuantity VerifiedInvoiceRequest_supported_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Returns whether the given quantity is valid for the offer. + * The public key used by the recipient to sign invoices. */ -MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity); +MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_signing_pubkey(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Returns whether a quantity is expected in an [`InvoiceRequest`] for the offer. + * An unpredictable series of bytes, typically containing information about the derivation of + * [`payer_id`]. * - * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest + * [`payer_id`]: Self::payer_id */ -MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKu8slice VerifiedInvoiceRequest_payer_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * The public key used by the recipient to sign invoices. + * A chain from [`Offer::chains`] that the offer is valid for. */ -MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKThirtyTwoBytes VerifiedInvoiceRequest_chain(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Serialize the Offer object into a byte array which can be read by Offer_read + * The amount to pay in msats (i.e., the minimum lightning-payable unit for [`chain`]), which + * must be greater than or equal to [`Offer::amount`], converted if necessary. + * + * [`chain`]: Self::chain */ -struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj); +MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_amount_msats(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Frees any resources used by the Amount, if is_owned is set and inner is non-NULL. + * Features pertaining to requesting an invoice. */ -void Amount_free(struct LDKAmount this_obj); +MUST_USE_RES struct LDKInvoiceRequestFeatures VerifiedInvoiceRequest_invoice_request_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Creates a copy of the Amount + * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. */ -struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig); +MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Frees any resources used by the Quantity, if is_owned is set and inner is non-NULL. + * A possibly transient pubkey used to sign the invoice request. */ -void Quantity_free(struct LDKQuantity this_obj); +MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_payer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Creates a copy of the Quantity + * A payer-provided note which will be seen by the recipient and reflected back in the invoice + * response. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig); +MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_payer_note(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Read a Offer object from a string + * Serialize the UnsignedInvoiceRequest object into a byte array which can be read by UnsignedInvoiceRequest_read */ -struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s); +struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj); + +/** + * Serialize the InvoiceRequest object into a byte array which can be read by InvoiceRequest_read + */ +struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj); + +/** + * Frees any resources used by the TaggedHash, if is_owned is set and inner is non-NULL. + */ +void TaggedHash_free(struct LDKTaggedHash this_obj); /** * Frees any resources used by the Bolt12ParseError, if is_owned is set and inner is non-NULL. @@ -37316,7 +40222,7 @@ MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund * * If `None`, the refund does not expire. */ -MUST_USE_RES struct LDKCOption_DurationZ Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u64Z Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg); /** * Whether the refund has expired. @@ -37343,7 +40249,7 @@ MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NO * * [`payer_id`]: Self::payer_id */ -MUST_USE_RES struct LDKu8slice Refund_metadata(const struct LDKRefund *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKu8slice Refund_payer_metadata(const struct LDKRefund *NONNULL_PTR this_arg); /** * A chain that the refund is valid for. @@ -37500,7 +40406,7 @@ MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_P /** * Get the public key from this NodeId */ -MUST_USE_RES struct LDKCResult_PublicKeyErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCResult_PublicKeySecp256k1ErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg); /** * Generates a non-cryptographic 64-bit hash of the NodeId. @@ -37586,7 +40492,7 @@ MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGr * existing announcements unless they are updated. * Add, update or remove the provider would replace the current one. */ -void P2PGossipSync_add_utxo_lookup(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup); +void P2PGossipSync_add_utxo_lookup(const struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup); /** * Handles any network updates originating from [`Event`]s. @@ -37715,6 +40621,8 @@ void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONN /** * Constructs a new ChannelUpdateInfo given each field + * + * Note that last_update_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelUpdateInfo ChannelUpdateInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg); @@ -38068,6 +40976,8 @@ void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInf /** * Constructs a new NodeAnnouncementInfo given each field + * + * Note that announcement_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKNodeAnnouncement announcement_message_arg); @@ -38086,7 +40996,7 @@ bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a /** * Internet-level addresses via which one can connect to the node */ -MUST_USE_RES struct LDKCVec_NetAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_SocketAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg); /** * Serialize the NodeAnnouncementInfo object into a byte array which can be read by NodeAnnouncementInfo_read @@ -38171,6 +41081,8 @@ void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, st /** * Constructs a new NodeInfo given each field + * + * Note that announcement_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg); @@ -38391,7 +41303,7 @@ MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct * Returns None if the requested node is completely unknown, * or if node announcement for the node was never received. */ -MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey); +MUST_USE_RES struct LDKCOption_CVec_SocketAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey); /** * Frees any resources used by the DefaultRouter, if is_owned is set and inner is non-NULL. @@ -38422,18 +41334,13 @@ void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlight /** * Initialize a new `ScorerAccountingForInFlightHtlcs`. */ -MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScore scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs); - -/** - * Serialize the ScorerAccountingForInFlightHtlcs object into a byte array which can be read by ScorerAccountingForInFlightHtlcs_read - */ -struct LDKCVec_u8Z ScorerAccountingForInFlightHtlcs_write(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR obj); +MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScoreLookUp scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs); /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ -struct LDKScore ScorerAccountingForInFlightHtlcs_as_Score(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg); +struct LDKScoreLookUp ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg); /** * Frees any resources used by the InFlightHtlcs, if is_owned is set and inner is non-NULL. @@ -38566,10 +41473,34 @@ uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR th */ void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val); +/** + * Indicates whether this hop is possibly announced in the public network graph. + * + * Will be `true` if there is a possibility that the channel is publicly known, i.e., if we + * either know for sure it's announced in the public graph, or if any public channels exist + * for which the given `short_channel_id` could be an alias for. Will be `false` if we believe + * the channel to be unannounced. + * + * Will be `true` for objects serialized with LDK version 0.0.116 and before. + */ +bool RouteHop_get_maybe_announced_channel(const struct LDKRouteHop *NONNULL_PTR this_ptr); + +/** + * Indicates whether this hop is possibly announced in the public network graph. + * + * Will be `true` if there is a possibility that the channel is publicly known, i.e., if we + * either know for sure it's announced in the public graph, or if any public channels exist + * for which the given `short_channel_id` could be an alias for. Will be `false` if we believe + * the channel to be unannounced. + * + * Will be `true` for objects serialized with LDK version 0.0.116 and before. + */ +void RouteHop_set_maybe_announced_channel(struct LDKRouteHop *NONNULL_PTR this_ptr, bool val); + /** * Constructs a new RouteHop given each field */ -MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg); +MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg, bool maybe_announced_channel_arg); /** * Creates a copy of the RouteHop @@ -38716,6 +41647,8 @@ void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlind /** * Constructs a new Path given each field + * + * Note that blinded_tail_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg); @@ -38771,27 +41704,33 @@ struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val); /** - * The `payment_params` parameter passed via [`RouteParameters`] to [`find_route`]. + * The `route_params` parameter passed to [`find_route`]. * * This is used by `ChannelManager` to track information which may be required for retries. * + * Will be `None` for objects serialized with LDK versions prior to 0.0.117. + * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr); +struct LDKRouteParameters Route_get_route_params(const struct LDKRoute *NONNULL_PTR this_ptr); /** - * The `payment_params` parameter passed via [`RouteParameters`] to [`find_route`]. + * The `route_params` parameter passed to [`find_route`]. * * This is used by `ChannelManager` to track information which may be required for retries. * + * Will be `None` for objects serialized with LDK versions prior to 0.0.117. + * * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ -void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val); +void Route_set_route_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKRouteParameters val); /** * Constructs a new Route given each field + * + * Note that route_params_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKPaymentParameters payment_params_arg); +MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKRouteParameters route_params_arg); /** * Creates a copy of the Route @@ -38813,14 +41752,21 @@ bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNU /** * Returns the total amount of fees paid on this [`Route`]. * - * This doesn't include any extra payment made to the recipient, which can happen in excess of - * the amount passed to [`find_route`]'s `route_params.final_value_msat`. + * For objects serialized with LDK 0.0.117 and after, this includes any extra payment made to + * the recipient, which can happen in excess of the amount passed to [`find_route`] via + * [`RouteParameters::final_value_msat`], if we had to reach the [`htlc_minimum_msat`] limits. + * + * [`htlc_minimum_msat`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_update-message */ MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg); /** - * Returns the total amount paid on this [`Route`], excluding the fees. Might be more than - * requested if we had to reach htlc_minimum_msat. + * Returns the total amount paid on this [`Route`], excluding the fees. + * + * Might be more than requested as part of the given [`RouteParameters::final_value_msat`] if + * we had to reach the [`htlc_minimum_msat`] limits. + * + * [`htlc_minimum_msat`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_update-message */ MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg); @@ -38859,16 +41805,41 @@ uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *N */ void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val); +/** + * The maximum total fees, in millisatoshi, that may accrue during route finding. + * + * This limit also applies to the total fees that may arise while retrying failed payment + * paths. + * + * Note that values below a few sats may result in some paths being spuriously ignored. + */ +struct LDKCOption_u64Z RouteParameters_get_max_total_routing_fee_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr); + +/** + * The maximum total fees, in millisatoshi, that may accrue during route finding. + * + * This limit also applies to the total fees that may arise while retrying failed payment + * paths. + * + * Note that values below a few sats may result in some paths being spuriously ignored. + */ +void RouteParameters_set_max_total_routing_fee_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + /** * Constructs a new RouteParameters given each field */ -MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg); +MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, struct LDKCOption_u64Z max_total_routing_fee_msat_arg); /** * Creates a copy of the RouteParameters */ struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the RouteParameters. + */ +uint64_t RouteParameters_hash(const struct LDKRouteParameters *NONNULL_PTR o); + /** * Checks if two RouteParameterss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -38876,6 +41847,13 @@ struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters */ bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b); +/** + * Constructs [`RouteParameters`] from the given [`PaymentParameters`] and a payment amount. + * + * [`Self::max_total_routing_fee_msat`] defaults to 1% of the payment amount + 50 sats + */ +MUST_USE_RES struct LDKRouteParameters RouteParameters_from_payment_params_and_value(struct LDKPaymentParameters payment_params, uint64_t final_value_msat); + /** * Serialize the RouteParameters object into a byte array which can be read by RouteParameters_read */ @@ -39047,6 +42025,11 @@ MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LD */ MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice); +/** + * Creates parameters for paying to a blinded payee from the provided blinded route hints. + */ +MUST_USE_RES struct LDKPaymentParameters PaymentParameters_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ blinded_route_hints); + /** * Frees any resources used by the Payee */ @@ -39245,7 +42228,7 @@ struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice s * * Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None */ -struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]); +struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScoreLookUp *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]); /** * Construct a route from us (payer) to the target node (payee) via the given hops (which should @@ -39255,6 +42238,16 @@ struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_p */ struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]); +/** + * Calls the free function if one is set + */ +void ScoreLookUp_free(struct LDKScoreLookUp this_ptr); + +/** + * Calls the free function if one is set + */ +void ScoreUpdate_free(struct LDKScoreUpdate this_ptr); + /** * Calls the free function if one is set */ @@ -39298,20 +42291,31 @@ struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const stru MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score); /** - * Frees any resources used by the MultiThreadedScoreLock, if is_owned is set and inner is non-NULL. + * Frees any resources used by the MultiThreadedScoreLockRead, if is_owned is set and inner is non-NULL. */ -void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj); +void MultiThreadedScoreLockRead_free(struct LDKMultiThreadedScoreLockRead this_obj); /** - * Serialize the MultiThreadedScoreLock object into a byte array which can be read by MultiThreadedScoreLock_read + * Frees any resources used by the MultiThreadedScoreLockWrite, if is_owned is set and inner is non-NULL. */ -struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj); +void MultiThreadedScoreLockWrite_free(struct LDKMultiThreadedScoreLockWrite this_obj); /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ -struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg); +struct LDKScoreLookUp MultiThreadedScoreLockRead_as_ScoreLookUp(const struct LDKMultiThreadedScoreLockRead *NONNULL_PTR this_arg); + +/** + * Serialize the MultiThreadedScoreLockWrite object into a byte array which can be read by MultiThreadedScoreLockWrite_read + */ +struct LDKCVec_u8Z MultiThreadedScoreLockWrite_write(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR obj); + +/** + * Constructs a new ScoreUpdate which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is + */ +struct LDKScoreUpdate MultiThreadedScoreLockWrite_as_ScoreUpdate(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR this_arg); /** * Frees any resources used by the ChannelUsage, if is_owned is set and inner is non-NULL. @@ -39376,10 +42380,16 @@ struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenal MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat); /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ -struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); +struct LDKScoreLookUp FixedPenaltyScorer_as_ScoreLookUp(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); + +/** + * Constructs a new ScoreUpdate which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is + */ +struct LDKScoreUpdate FixedPenaltyScorer_as_ScoreUpdate(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); /** * Serialize the FixedPenaltyScorer object into a byte array which can be read by FixedPenaltyScorer_read @@ -39416,12 +42426,13 @@ uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LD void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * A multiplier used with the payment amount to calculate a fixed penalty applied to each - * channel, in excess of the [`base_penalty_msat`]. + * A multiplier used with the total amount flowing over a channel to calculate a fixed penalty + * applied to each channel, in excess of the [`base_penalty_msat`]. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^30`ths of the payment amount. + * multiplier and `2^30`ths of the total amount flowing over a channel (i.e. the payment + * amount plus the amount of any other HTLCs flowing we sent over the same channel). * * ie `base_penalty_amount_multiplier_msat * amount_msat / 2^30` * @@ -39432,12 +42443,13 @@ void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabili uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * A multiplier used with the payment amount to calculate a fixed penalty applied to each - * channel, in excess of the [`base_penalty_msat`]. + * A multiplier used with the total amount flowing over a channel to calculate a fixed penalty + * applied to each channel, in excess of the [`base_penalty_msat`]. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^30`ths of the payment amount. + * multiplier and `2^30`ths of the total amount flowing over a channel (i.e. the payment + * amount plus the amount of any other HTLCs flowing we sent over the same channel). * * ie `base_penalty_amount_multiplier_msat * amount_msat / 2^30` * @@ -39488,14 +42500,14 @@ uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * A multiplier used in conjunction with a payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined by our latest estimates of the - * channel's liquidity, to determine the amount penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined by our + * latest estimates of the channel's liquidity, to determine the amount penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^20`ths of the payment amount, weighted by the negative `log10` of the - * success probability. + * multiplier and `2^20`ths of the amount flowing over this channel, weighted by the negative + * `log10` of the success probability. * * `-log10(success_probability) * liquidity_penalty_amount_multiplier_msat * amount_msat / 2^20` * @@ -39510,14 +42522,14 @@ void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(str uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * A multiplier used in conjunction with a payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined by our latest estimates of the - * channel's liquidity, to determine the amount penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined by our + * latest estimates of the channel's liquidity, to determine the amount penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^20`ths of the payment amount, weighted by the negative `log10` of the - * success probability. + * multiplier and `2^20`ths of the amount flowing over this channel, weighted by the negative + * `log10` of the success probability. * * `-log10(success_probability) * liquidity_penalty_amount_multiplier_msat * amount_msat / 2^20` * @@ -39568,13 +42580,15 @@ uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_mult void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * A multiplier used in conjunction with the payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined based on the history of our - * estimates of the channel's available liquidity, to determine a penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined based + * on the history of our estimates of the channel's available liquidity, to determine a + * penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost for - * large payments. The penalty is computed as the product of this multiplier and the `2^20`ths - * of the payment amount, weighted by the negative `log10` of the success probability. + * large payments. The penalty is computed as the product of this multiplier and `2^20`ths + * of the amount flowing over this channel, weighted by the negative `log10` of the success + * probability. * * This penalty is similar to [`liquidity_penalty_amount_multiplier_msat`], however, instead * of using only our latest estimate for the current liquidity available in the channel, it @@ -39590,13 +42604,15 @@ void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multipli uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * A multiplier used in conjunction with the payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined based on the history of our - * estimates of the channel's available liquidity, to determine a penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined based + * on the history of our estimates of the channel's available liquidity, to determine a + * penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost for - * large payments. The penalty is computed as the product of this multiplier and the `2^20`ths - * of the payment amount, weighted by the negative `log10` of the success probability. + * large payments. The penalty is computed as the product of this multiplier and `2^20`ths + * of the amount flowing over this channel, weighted by the negative `log10` of the success + * probability. * * This penalty is similar to [`liquidity_penalty_amount_multiplier_msat`], however, instead * of using only our latest estimate for the current liquidity available in the channel, it @@ -39634,8 +42650,9 @@ uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const s void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * This penalty is applied when the amount we're attempting to send over a channel exceeds our - * current estimate of the channel's available liquidity. + * This penalty is applied when the total amount flowing over a channel exceeds our current + * estimate of the channel's available liquidity. The total amount is the amount of the + * current HTLC plus any HTLCs which we've sent over the same channel. * * Note that in this case all other penalties, including the * [`liquidity_penalty_multiplier_msat`] and [`liquidity_penalty_amount_multiplier_msat`]-based @@ -39655,8 +42672,9 @@ void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKP uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * This penalty is applied when the amount we're attempting to send over a channel exceeds our - * current estimate of the channel's available liquidity. + * This penalty is applied when the total amount flowing over a channel exceeds our current + * estimate of the channel's available liquidity. The total amount is the amount of the + * current HTLC plus any HTLCs which we've sent over the same channel. * * Note that in this case all other penalties, including the * [`liquidity_penalty_multiplier_msat`] and [`liquidity_penalty_amount_multiplier_msat`]-based @@ -39675,6 +42693,54 @@ uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msa */ void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); +/** + * In order to calculate most of the scores above, we must first convert a lower and upper + * bound on the available liquidity in a channel into the probability that we think a payment + * will succeed. That probability is derived from a Probability Density Function for where we + * think the liquidity in a channel likely lies, given such bounds. + * + * If this flag is set, that PDF is simply a constant - we assume that the actual available + * liquidity in a channel is just as likely to be at any point between our lower and upper + * bounds. + * + * If this flag is *not* set, that PDF is `(x - 0.5*capacity) ^ 2`. That is, we use an + * exponential curve which expects the liquidity of a channel to lie \"at the edges\". This + * matches experimental results - most routing nodes do not aggressively rebalance their + * channels and flows in the network are often unbalanced, leaving liquidity usually + * unavailable. + * + * Thus, for the \"best\" routes, leave this flag `false`. However, the flag does imply a number + * of floating-point multiplications in the hottest routing code, which may lead to routing + * performance degradation on some machines. + * + * Default value: false + */ +bool ProbabilisticScoringFeeParameters_get_linear_success_probability(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); + +/** + * In order to calculate most of the scores above, we must first convert a lower and upper + * bound on the available liquidity in a channel into the probability that we think a payment + * will succeed. That probability is derived from a Probability Density Function for where we + * think the liquidity in a channel likely lies, given such bounds. + * + * If this flag is set, that PDF is simply a constant - we assume that the actual available + * liquidity in a channel is just as likely to be at any point between our lower and upper + * bounds. + * + * If this flag is *not* set, that PDF is `(x - 0.5*capacity) ^ 2`. That is, we use an + * exponential curve which expects the liquidity of a channel to lie \"at the edges\". This + * matches experimental results - most routing nodes do not aggressively rebalance their + * channels and flows in the network are often unbalanced, leaving liquidity usually + * unavailable. + * + * Thus, for the \"best\" routes, leave this flag `false`. However, the flag does imply a number + * of floating-point multiplications in the hottest routing code, which may lead to routing + * performance degradation on some machines. + * + * Default value: false + */ +void ProbabilisticScoringFeeParameters_set_linear_success_probability(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, bool val); + /** * Creates a copy of the ProbabilisticScoringFeeParameters */ @@ -39837,26 +42903,54 @@ MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_ch * Query the historical estimated minimum and maximum liquidity available for sending a * payment over the channel with `scid` towards the given `target` node. * - * Returns two sets of 8 buckets. The first set describes the octiles for lower-bound - * liquidity estimates, the second set describes the octiles for upper-bound liquidity - * estimates. Each bucket describes the relative frequency at which we've seen a liquidity - * bound in the octile relative to the channel's total capacity, on an arbitrary scale. - * Because the values are slowly decayed, more recent data points are weighted more heavily - * than older datapoints. + * Returns two sets of 32 buckets. The first set describes the lower-bound liquidity history, + * the second set describes the upper-bound liquidity history. Each bucket describes the + * relative frequency at which we've seen a liquidity bound in the bucket's range relative to + * the channel's total capacity, on an arbitrary scale. Because the values are slowly decayed, + * more recent data points are weighted more heavily than older datapoints. + * + * Note that the range of each bucket varies by its location to provide more granular results + * at the edges of a channel's capacity, where it is more likely to sit. * - * When scoring, the estimated probability that an upper-/lower-bound lies in a given octile - * relative to the channel's total capacity is calculated by dividing that bucket's value with - * the total of all buckets for the given bound. + * When scoring, the estimated probability that an upper-/lower-bound lies in a given bucket + * is calculated by dividing that bucket's value with the total value of all buckets. * - * For example, a value of `[0, 0, 0, 0, 0, 0, 32]` indicates that we believe the probability - * of a bound being in the top octile to be 100%, and have never (recently) seen it in any - * other octiles. A value of `[31, 0, 0, 0, 0, 0, 0, 32]` indicates we've seen the bound being - * both in the top and bottom octile, and roughly with similar (recent) frequency. + * For example, using a lower bucket count for illustrative purposes, a value of + * `[0, 0, 0, ..., 0, 32]` indicates that we believe the probability of a bound being very + * close to the channel's capacity to be 100%, and have never (recently) seen it in any other + * bucket. A value of `[31, 0, 0, ..., 0, 0, 32]` indicates we've seen the bound being both + * in the top and bottom bucket, and roughly with similar (recent) frequency. * * Because the datapoints are decayed slowly over time, values will eventually return to - * `Some(([0; 8], [0; 8]))`. + * `Some(([1; 32], [1; 32]))` and then to `None` once no datapoints remain. + * + * In order to fetch a single success probability from the buckets provided here, as used in + * the scoring model, see [`Self::historical_estimated_payment_success_probability`]. + */ +MUST_USE_RES struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target); + +/** + * Query the probability of payment success sending the given `amount_msat` over the channel + * with `scid` towards the given `target` node, based on the historical estimated liquidity + * bounds. + * + * These are the same bounds as returned by + * [`Self::historical_estimated_channel_liquidity_probabilities`] (but not those returned by + * [`Self::estimated_channel_liquidity_range`]). + */ +MUST_USE_RES struct LDKCOption_f64Z ProbabilisticScorer_historical_estimated_payment_success_probability(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target, uint64_t amount_msat, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR params); + +/** + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is + */ +struct LDKScoreLookUp ProbabilisticScorer_as_ScoreLookUp(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); + +/** + * Constructs a new ScoreUpdate which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is */ -MUST_USE_RES struct LDKCOption_C2Tuple_EightU16sEightU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target); +struct LDKScoreUpdate ProbabilisticScorer_as_ScoreUpdate(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); /** * Constructs a new Score which calls the relevant methods on this_arg. @@ -39965,6 +43059,11 @@ MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescri */ struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the DelayedPaymentOutputDescriptor. + */ +uint64_t DelayedPaymentOutputDescriptor_hash(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR o); + /** * Checks if two DelayedPaymentOutputDescriptors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -40029,16 +43128,43 @@ uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct L */ void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val); +/** + * The necessary channel parameters that need to be provided to the re-derived signer through + * [`ChannelSigner::provide_channel_parameters`]. + * + * Added as optional, but always `Some` if the descriptor was produced in v0.0.117 or later. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +struct LDKChannelTransactionParameters StaticPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr); + +/** + * The necessary channel parameters that need to be provided to the re-derived signer through + * [`ChannelSigner::provide_channel_parameters`]. + * + * Added as optional, but always `Some` if the descriptor was produced in v0.0.117 or later. + * + * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val); + /** * Constructs a new StaticPaymentOutputDescriptor given each field + * + * Note that channel_transaction_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg); +MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg, struct LDKChannelTransactionParameters channel_transaction_parameters_arg); /** * Creates a copy of the StaticPaymentOutputDescriptor */ struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the StaticPaymentOutputDescriptor. + */ +uint64_t StaticPaymentOutputDescriptor_hash(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR o); + /** * Checks if two StaticPaymentOutputDescriptors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -40046,6 +43172,21 @@ struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(cons */ bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b); +/** + * Returns the `witness_script` of the spendable output. + * + * Note that this will only return `Some` for [`StaticPaymentOutputDescriptor`]s that + * originated from an anchor outputs channel, as they take the form of a P2WSH script. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ StaticPaymentOutputDescriptor_witness_script(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg); + +/** + * The maximum length a well-formed witness spending one of these should have. + * Note: If you have the grind_signatures feature enabled, this will be at least 1 byte + * shorter. + */ +MUST_USE_RES uintptr_t StaticPaymentOutputDescriptor_max_witness_length(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg); + /** * Serialize the StaticPaymentOutputDescriptor object into a byte array which can be read by StaticPaymentOutputDescriptor_read */ @@ -40081,6 +43222,11 @@ struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_ou */ struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a); +/** + * Generates a non-cryptographic 64-bit hash of the SpendableOutputDescriptor. + */ +uint64_t SpendableOutputDescriptor_hash(const struct LDKSpendableOutputDescriptor *NONNULL_PTR o); + /** * Checks if two SpendableOutputDescriptors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -40115,7 +43261,7 @@ struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescripto * * We do not enforce that outputs meet the dust limit or that any output scripts are standard. */ -MUST_USE_RES struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_PackedLockTimeZ locktime); +MUST_USE_RES struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); /** * Calls the free function if one is set @@ -40247,7 +43393,10 @@ MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey fun /** * Returns the counterparty's pubkeys. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40256,30 +43405,36 @@ MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(con * transactions, i.e., the amount of time that we have to wait to recover our funds if we * broadcast a transaction. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ -MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); /** * Returns the `contest_delay` value specified by us and applied on transactions broadcastable * by our counterparty, i.e., the amount of time that they have to wait to recover their funds * if they broadcast a transaction. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ -MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); /** * Returns whether the holder is the initiator. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ -MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_boolZ InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg); /** * Funding outpoint * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40287,7 +43442,10 @@ MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDK * Returns a [`ChannelTransactionParameters`] for this channel, to be used when verifying or * building transactions. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40295,7 +43453,10 @@ MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_p * Returns the channel type features of the channel parameters. Should be helpful for * determining a channel's category, i. e. legacy/anchors/taproot/etc. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40405,7 +43566,7 @@ MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const stru * May panic if the [`SpendableOutputDescriptor`]s were not generated by channels which used * this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`]. */ -MUST_USE_RES struct LDKCResult_PartiallySignedTransactionNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt); +MUST_USE_RES struct LDKCResult_CVec_u8ZNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt); /** * Creates a [`Transaction`] which spends the given descriptors to the given outputs, plus an @@ -40426,7 +43587,7 @@ MUST_USE_RES struct LDKCResult_PartiallySignedTransactionNoneZ KeysManager_sign_ * May panic if the [`SpendableOutputDescriptor`]s were not generated by channels which used * this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`]. */ -MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_PackedLockTimeZ locktime); +MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); /** * Constructs a new EntropySource which calls the relevant methods on this_arg. @@ -40487,7 +43648,7 @@ MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t ( /** * See [`KeysManager::spend_spendable_outputs`] for documentation on this method. */ -MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_PackedLockTimeZ locktime); +MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); /** * See [`KeysManager::derive_channel_keys`] for documentation on this method. @@ -40649,6 +43810,14 @@ bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSend */ void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr); +/** + * Create an onion message with contents `message` to the destination of `path`. + * Returns (introduction_node_id, onion_msg) + * + * Note that reply_path (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, struct LDKOnionMessagePath path, struct LDKOnionMessageContents message, struct LDKBlindedPath reply_path); + /** * Constructs a new `OnionMessenger` to send, forward, and delegate received onion messages to * their respective handlers. @@ -40726,6 +43895,75 @@ struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PT */ struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b); +/** + * Frees any resources used by the Packet, if is_owned is set and inner is non-NULL. + */ +void Packet_free(struct LDKPacket this_obj); + +/** + * Bolt 04 version number + */ +uint8_t Packet_get_version(const struct LDKPacket *NONNULL_PTR this_ptr); + +/** + * Bolt 04 version number + */ +void Packet_set_version(struct LDKPacket *NONNULL_PTR this_ptr, uint8_t val); + +/** + * A random sepc256k1 point, used to build the ECDH shared secret to decrypt hop_data + */ +struct LDKPublicKey Packet_get_public_key(const struct LDKPacket *NONNULL_PTR this_ptr); + +/** + * A random sepc256k1 point, used to build the ECDH shared secret to decrypt hop_data + */ +void Packet_set_public_key(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * Encrypted payload for the next hop + * + * Returns a copy of the field. + */ +struct LDKCVec_u8Z Packet_get_hop_data(const struct LDKPacket *NONNULL_PTR this_ptr); + +/** + * Encrypted payload for the next hop + */ +void Packet_set_hop_data(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + +/** + * HMAC to verify the integrity of hop_data + */ +const uint8_t (*Packet_get_hmac(const struct LDKPacket *NONNULL_PTR this_ptr))[32]; + +/** + * HMAC to verify the integrity of hop_data + */ +void Packet_set_hmac(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + +/** + * Constructs a new Packet given each field + */ +MUST_USE_RES struct LDKPacket Packet_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg); + +/** + * Creates a copy of the Packet + */ +struct LDKPacket Packet_clone(const struct LDKPacket *NONNULL_PTR orig); + +/** + * Checks if two Packets contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + * Two objects with NULL inner values will be considered "equal" here. + */ +bool Packet_eq(const struct LDKPacket *NONNULL_PTR a, const struct LDKPacket *NONNULL_PTR b); + +/** + * Serialize the Packet object into a byte array which can be read by Packet_read + */ +struct LDKCVec_u8Z Packet_write(const struct LDKPacket *NONNULL_PTR obj); + /** * Frees any resources used by the OnionMessageContents */ @@ -40761,6 +43999,55 @@ void CustomOnionMessageContents_free(struct LDKCustomOnionMessageContents this_p */ void BlindedPath_free(struct LDKBlindedPath this_obj); +/** + * To send to a blinded path, the sender first finds a route to the unblinded + * `introduction_node_id`, which can unblind its [`encrypted_payload`] to find out the onion + * message or payment's next hop and forward it along. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +struct LDKPublicKey BlindedPath_get_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + +/** + * To send to a blinded path, the sender first finds a route to the unblinded + * `introduction_node_id`, which can unblind its [`encrypted_payload`] to find out the onion + * message or payment's next hop and forward it along. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +void BlindedPath_set_introduction_node_id(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * Used by the introduction node to decrypt its [`encrypted_payload`] to forward the onion + * message or payment. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + +/** + * Used by the introduction node to decrypt its [`encrypted_payload`] to forward the onion + * message or payment. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +void BlindedPath_set_blinding_point(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * The hops composing the blinded path. + */ +struct LDKCVec_BlindedHopZ BlindedPath_get_blinded_hops(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + +/** + * The hops composing the blinded path. + */ +void BlindedPath_set_blinded_hops(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val); + +/** + * Constructs a new BlindedPath given each field + */ +MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKPublicKey introduction_node_id_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg); + /** * Creates a copy of the BlindedPath */ @@ -40783,6 +44070,33 @@ bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDK */ void BlindedHop_free(struct LDKBlindedHop this_obj); +/** + * The blinded node id of this hop in a [`BlindedPath`]. + */ +struct LDKPublicKey BlindedHop_get_blinded_node_id(const struct LDKBlindedHop *NONNULL_PTR this_ptr); + +/** + * The blinded node id of this hop in a [`BlindedPath`]. + */ +void BlindedHop_set_blinded_node_id(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * The encrypted payload intended for this hop in a [`BlindedPath`]. + * + * Returns a copy of the field. + */ +struct LDKCVec_u8Z BlindedHop_get_encrypted_payload(const struct LDKBlindedHop *NONNULL_PTR this_ptr); + +/** + * The encrypted payload intended for this hop in a [`BlindedPath`]. + */ +void BlindedHop_set_encrypted_payload(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + +/** + * Constructs a new BlindedHop given each field + */ +MUST_USE_RES struct LDKBlindedHop BlindedHop_new(struct LDKPublicKey blinded_node_id_arg, struct LDKCVec_u8Z encrypted_payload_arg); + /** * Creates a copy of the BlindedHop */ @@ -40808,6 +44122,11 @@ bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBl */ MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source); +/** + * Create a one-hop blinded path for a payment. + */ +MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, const struct LDKEntropySource *NONNULL_PTR entropy_source); + /** * Serialize the BlindedPath object into a byte array which can be read by BlindedPath_read */ @@ -40828,6 +44147,270 @@ struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj) */ struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser); +/** + * Frees any resources used by the ForwardNode, if is_owned is set and inner is non-NULL. + */ +void ForwardNode_free(struct LDKForwardNode this_obj); + +/** + * The TLVs for this node's [`BlindedHop`], where the fee parameters contained within are also + * used for [`BlindedPayInfo`] construction. + */ +struct LDKForwardTlvs ForwardNode_get_tlvs(const struct LDKForwardNode *NONNULL_PTR this_ptr); + +/** + * The TLVs for this node's [`BlindedHop`], where the fee parameters contained within are also + * used for [`BlindedPayInfo`] construction. + */ +void ForwardNode_set_tlvs(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKForwardTlvs val); + +/** + * This node's pubkey. + */ +struct LDKPublicKey ForwardNode_get_node_id(const struct LDKForwardNode *NONNULL_PTR this_ptr); + +/** + * This node's pubkey. + */ +void ForwardNode_set_node_id(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * The maximum value, in msat, that may be accepted by this node. + */ +uint64_t ForwardNode_get_htlc_maximum_msat(const struct LDKForwardNode *NONNULL_PTR this_ptr); + +/** + * The maximum value, in msat, that may be accepted by this node. + */ +void ForwardNode_set_htlc_maximum_msat(struct LDKForwardNode *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Constructs a new ForwardNode given each field + */ +MUST_USE_RES struct LDKForwardNode ForwardNode_new(struct LDKForwardTlvs tlvs_arg, struct LDKPublicKey node_id_arg, uint64_t htlc_maximum_msat_arg); + +/** + * Creates a copy of the ForwardNode + */ +struct LDKForwardNode ForwardNode_clone(const struct LDKForwardNode *NONNULL_PTR orig); + +/** + * Frees any resources used by the ForwardTlvs, if is_owned is set and inner is non-NULL. + */ +void ForwardTlvs_free(struct LDKForwardTlvs this_obj); + +/** + * The short channel id this payment should be forwarded out over. + */ +uint64_t ForwardTlvs_get_short_channel_id(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * The short channel id this payment should be forwarded out over. + */ +void ForwardTlvs_set_short_channel_id(struct LDKForwardTlvs *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Payment parameters for relaying over [`Self::short_channel_id`]. + */ +struct LDKPaymentRelay ForwardTlvs_get_payment_relay(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * Payment parameters for relaying over [`Self::short_channel_id`]. + */ +void ForwardTlvs_set_payment_relay(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentRelay val); + +/** + * Payment constraints for relaying over [`Self::short_channel_id`]. + */ +struct LDKPaymentConstraints ForwardTlvs_get_payment_constraints(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * Payment constraints for relaying over [`Self::short_channel_id`]. + */ +void ForwardTlvs_set_payment_constraints(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val); + +/** + * Supported and required features when relaying a payment onion containing this object's + * corresponding [`BlindedHop::encrypted_payload`]. + * + * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload + */ +struct LDKBlindedHopFeatures ForwardTlvs_get_features(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * Supported and required features when relaying a payment onion containing this object's + * corresponding [`BlindedHop::encrypted_payload`]. + * + * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload + */ +void ForwardTlvs_set_features(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val); + +/** + * Constructs a new ForwardTlvs given each field + */ +MUST_USE_RES struct LDKForwardTlvs ForwardTlvs_new(uint64_t short_channel_id_arg, struct LDKPaymentRelay payment_relay_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKBlindedHopFeatures features_arg); + +/** + * Creates a copy of the ForwardTlvs + */ +struct LDKForwardTlvs ForwardTlvs_clone(const struct LDKForwardTlvs *NONNULL_PTR orig); + +/** + * Frees any resources used by the ReceiveTlvs, if is_owned is set and inner is non-NULL. + */ +void ReceiveTlvs_free(struct LDKReceiveTlvs this_obj); + +/** + * Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together. + */ +const uint8_t (*ReceiveTlvs_get_payment_secret(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr))[32]; + +/** + * Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together. + */ +void ReceiveTlvs_set_payment_secret(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + +/** + * Constraints for the receiver of this payment. + */ +struct LDKPaymentConstraints ReceiveTlvs_get_payment_constraints(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr); + +/** + * Constraints for the receiver of this payment. + */ +void ReceiveTlvs_set_payment_constraints(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val); + +/** + * Constructs a new ReceiveTlvs given each field + */ +MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg); + +/** + * Creates a copy of the ReceiveTlvs + */ +struct LDKReceiveTlvs ReceiveTlvs_clone(const struct LDKReceiveTlvs *NONNULL_PTR orig); + +/** + * Frees any resources used by the PaymentRelay, if is_owned is set and inner is non-NULL. + */ +void PaymentRelay_free(struct LDKPaymentRelay this_obj); + +/** + * Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`]. + */ +uint16_t PaymentRelay_get_cltv_expiry_delta(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); + +/** + * Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`]. + */ +void PaymentRelay_set_cltv_expiry_delta(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint16_t val); + +/** + * Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over + * this [`BlindedHop`], (i.e., 10,000 is 1%). + */ +uint32_t PaymentRelay_get_fee_proportional_millionths(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); + +/** + * Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over + * this [`BlindedHop`], (i.e., 10,000 is 1%). + */ +void PaymentRelay_set_fee_proportional_millionths(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val); + +/** + * Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`]. + */ +uint32_t PaymentRelay_get_fee_base_msat(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); + +/** + * Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`]. + */ +void PaymentRelay_set_fee_base_msat(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val); + +/** + * Constructs a new PaymentRelay given each field + */ +MUST_USE_RES struct LDKPaymentRelay PaymentRelay_new(uint16_t cltv_expiry_delta_arg, uint32_t fee_proportional_millionths_arg, uint32_t fee_base_msat_arg); + +/** + * Creates a copy of the PaymentRelay + */ +struct LDKPaymentRelay PaymentRelay_clone(const struct LDKPaymentRelay *NONNULL_PTR orig); + +/** + * Frees any resources used by the PaymentConstraints, if is_owned is set and inner is non-NULL. + */ +void PaymentConstraints_free(struct LDKPaymentConstraints this_obj); + +/** + * The maximum total CLTV delta that is acceptable when relaying a payment over this + * [`BlindedHop`]. + */ +uint32_t PaymentConstraints_get_max_cltv_expiry(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr); + +/** + * The maximum total CLTV delta that is acceptable when relaying a payment over this + * [`BlindedHop`]. + */ +void PaymentConstraints_set_max_cltv_expiry(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint32_t val); + +/** + * The minimum value, in msat, that may be accepted by the node corresponding to this + * [`BlindedHop`]. + */ +uint64_t PaymentConstraints_get_htlc_minimum_msat(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr); + +/** + * The minimum value, in msat, that may be accepted by the node corresponding to this + * [`BlindedHop`]. + */ +void PaymentConstraints_set_htlc_minimum_msat(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Constructs a new PaymentConstraints given each field + */ +MUST_USE_RES struct LDKPaymentConstraints PaymentConstraints_new(uint32_t max_cltv_expiry_arg, uint64_t htlc_minimum_msat_arg); + +/** + * Creates a copy of the PaymentConstraints + */ +struct LDKPaymentConstraints PaymentConstraints_clone(const struct LDKPaymentConstraints *NONNULL_PTR orig); + +/** + * Serialize the ForwardTlvs object into a byte array which can be read by ForwardTlvs_read + */ +struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj); + +/** + * Serialize the ReceiveTlvs object into a byte array which can be read by ReceiveTlvs_read + */ +struct LDKCVec_u8Z ReceiveTlvs_write(const struct LDKReceiveTlvs *NONNULL_PTR obj); + +/** + * Read a ReceiveTlvs from a byte array, created by ReceiveTlvs_write + */ +struct LDKCResult_ReceiveTlvsDecodeErrorZ ReceiveTlvs_read(struct LDKu8slice ser); + +/** + * Serialize the PaymentRelay object into a byte array which can be read by PaymentRelay_read + */ +struct LDKCVec_u8Z PaymentRelay_write(const struct LDKPaymentRelay *NONNULL_PTR obj); + +/** + * Read a PaymentRelay from a byte array, created by PaymentRelay_write + */ +struct LDKCResult_PaymentRelayDecodeErrorZ PaymentRelay_read(struct LDKu8slice ser); + +/** + * Serialize the PaymentConstraints object into a byte array which can be read by PaymentConstraints_read + */ +struct LDKCVec_u8Z PaymentConstraints_write(const struct LDKPaymentConstraints *NONNULL_PTR obj); + +/** + * Read a PaymentConstraints from a byte array, created by PaymentConstraints_write + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ PaymentConstraints_read(struct LDKu8slice ser); + /** * Frees any resources used by the PaymentPurpose */ @@ -40841,7 +44424,7 @@ struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NO /** * Utility method to constructs a new InvoicePayment-variant PaymentPurpose */ -struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); +struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); /** * Utility method to constructs a new SpontaneousPayment-variant PaymentPurpose @@ -40864,6 +44447,102 @@ struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_ */ struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser); +/** + * Frees any resources used by the ClaimedHTLC, if is_owned is set and inner is non-NULL. + */ +void ClaimedHTLC_free(struct LDKClaimedHTLC this_obj); + +/** + * The `channel_id` of the channel over which the HTLC was received. + */ +const uint8_t (*ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr))[32]; + +/** + * The `channel_id` of the channel over which the HTLC was received. + */ +void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + +/** + * The `user_channel_id` of the channel over which the HTLC was received. This is the value + * passed in to [`ChannelManager::create_channel`] for outbound channels, or to + * [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. + * + * This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This + * should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but + * was not actually claimed until after upgrading.) + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels + */ +struct LDKU128 ClaimedHTLC_get_user_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); + +/** + * The `user_channel_id` of the channel over which the HTLC was received. This is the value + * passed in to [`ChannelManager::create_channel`] for outbound channels, or to + * [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. + * + * This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This + * should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but + * was not actually claimed until after upgrading.) + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels + */ +void ClaimedHTLC_set_user_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKU128 val); + +/** + * The block height at which this HTLC expires. + */ +uint32_t ClaimedHTLC_get_cltv_expiry(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); + +/** + * The block height at which this HTLC expires. + */ +void ClaimedHTLC_set_cltv_expiry(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint32_t val); + +/** + * The amount (in msats) of this part of an MPP. + */ +uint64_t ClaimedHTLC_get_value_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); + +/** + * The amount (in msats) of this part of an MPP. + */ +void ClaimedHTLC_set_value_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Constructs a new ClaimedHTLC given each field + */ +MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg); + +/** + * Creates a copy of the ClaimedHTLC + */ +struct LDKClaimedHTLC ClaimedHTLC_clone(const struct LDKClaimedHTLC *NONNULL_PTR orig); + +/** + * Checks if two ClaimedHTLCs contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + * Two objects with NULL inner values will be considered "equal" here. + */ +bool ClaimedHTLC_eq(const struct LDKClaimedHTLC *NONNULL_PTR a, const struct LDKClaimedHTLC *NONNULL_PTR b); + +/** + * Serialize the ClaimedHTLC object into a byte array which can be read by ClaimedHTLC_read + */ +struct LDKCVec_u8Z ClaimedHTLC_write(const struct LDKClaimedHTLC *NONNULL_PTR obj); + +/** + * Read a ClaimedHTLC from a byte array, created by ClaimedHTLC_write + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ ClaimedHTLC_read(struct LDKu8slice ser); + /** * Frees any resources used by the PathFailure */ @@ -40955,6 +44634,11 @@ struct LDKClosureReason ClosureReason_outdated_channel_manager(void); */ struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void); +/** + * Utility method to constructs a new FundingBatchClosure-variant ClosureReason + */ +struct LDKClosureReason ClosureReason_funding_batch_closure(void); + /** * Checks if two ClosureReasons contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -41086,17 +44770,17 @@ struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporar /** * Utility method to constructs a new PaymentClaimable-variant Event */ -struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); +struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKCOption_ThirtyTwoBytesZ via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); /** * Utility method to constructs a new PaymentClaimed-variant Event */ -struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose); +struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKCVec_ClaimedHTLCZ htlcs, struct LDKCOption_u64Z sender_intended_total_msat); /** * Utility method to constructs a new PaymentSent-variant Event */ -struct LDKEvent Event_payment_sent(struct LDKCOption_PaymentIdZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat); +struct LDKEvent Event_payment_sent(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat); /** * Utility method to constructs a new PaymentFailed-variant Event @@ -41106,12 +44790,12 @@ struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct /** * Utility method to constructs a new PaymentPathSuccessful-variant Event */ -struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_PaymentHashZ payment_hash, struct LDKPath path); +struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKPath path); /** * Utility method to constructs a new PaymentPathFailed-variant Event */ -struct LDKEvent Event_payment_path_failed(struct LDKCOption_PaymentIdZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id); +struct LDKEvent Event_payment_path_failed(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id); /** * Utility method to constructs a new ProbeSuccessful-variant Event @@ -41136,17 +44820,17 @@ struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uin /** * Utility method to constructs a new SpendableOutputs-variant Event */ -struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs); +struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKCOption_ThirtyTwoBytesZ channel_id); /** * Utility method to constructs a new PaymentForwarded-variant Event */ -struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); +struct LDKEvent Event_payment_forwarded(struct LDKCOption_ThirtyTwoBytesZ prev_channel_id, struct LDKCOption_ThirtyTwoBytesZ next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); /** * Utility method to constructs a new ChannelPending-variant Event */ -struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKThirtyTwoBytes former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo); +struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo); /** * Utility method to constructs a new ChannelReady-variant Event @@ -41156,7 +44840,7 @@ struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct /** * Utility method to constructs a new ChannelClosed-variant Event */ -struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason); +struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats); /** * Utility method to constructs a new DiscardFunding-variant Event @@ -41277,7 +44961,7 @@ struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey /** * Utility method to constructs a new SendTxAbort-variant MessageSendEvent */ -struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAddInput msg); +struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAbort msg); /** * Utility method to constructs a new SendChannelReady-variant MessageSendEvent @@ -41442,6 +45126,16 @@ struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const st */ bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b); +/** + * Serialize the ChannelDerivationParameters object into a byte array which can be read by ChannelDerivationParameters_read + */ +struct LDKCVec_u8Z ChannelDerivationParameters_write(const struct LDKChannelDerivationParameters *NONNULL_PTR obj); + +/** + * Read a ChannelDerivationParameters from a byte array, created by ChannelDerivationParameters_write + */ +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ ChannelDerivationParameters_read(struct LDKu8slice ser); + /** * Frees any resources used by the AnchorDescriptor, if is_owned is set and inner is non-NULL. */ @@ -41507,7 +45201,7 @@ MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDK * Returns the fully signed witness required to spend the anchor output in the commitment * transaction. */ -MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKSignature signature); +MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature); /** * Derives the channel signer required to sign the anchor input. @@ -41571,23 +45265,23 @@ void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, str * The preimage, if `Some`, to claim the HTLC output with. If `None`, the timeout path must be * taken. */ -struct LDKCOption_PaymentPreimageZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); /** * The preimage, if `Some`, to claim the HTLC output with. If `None`, the timeout path must be * taken. */ -void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_PaymentPreimageZ val); +void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * The counterparty's signature required to spend the HTLC output. */ -struct LDKSignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); +struct LDKECDSASignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); /** * The counterparty's signature required to spend the HTLC output. */ -void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKSignature val); +void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Creates a copy of the HTLCDescriptor @@ -41601,6 +45295,16 @@ struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NO */ bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b); +/** + * Serialize the HTLCDescriptor object into a byte array which can be read by HTLCDescriptor_read + */ +struct LDKCVec_u8Z HTLCDescriptor_write(const struct LDKHTLCDescriptor *NONNULL_PTR obj); + +/** + * Read a HTLCDescriptor from a byte array, created by HTLCDescriptor_write + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ HTLCDescriptor_read(struct LDKu8slice ser); + /** * Returns the outpoint of the HTLC output in the commitment transaction. This is the outpoint * being spent by the HTLC input in the HTLC transaction. @@ -41634,7 +45338,7 @@ MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHT * Returns the fully signed witness required to spend the HTLC output in the commitment * transaction. */ -MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKSignature signature, struct LDKu8slice witness_script); +MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature, struct LDKu8slice witness_script); /** * Derives the channel signer required to sign the HTLC input. @@ -41882,25 +45586,25 @@ MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_n void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event); /** - * Frees any resources used by the FilesystemPersister, if is_owned is set and inner is non-NULL. + * Frees any resources used by the FilesystemStore, if is_owned is set and inner is non-NULL. */ -void FilesystemPersister_free(struct LDKFilesystemPersister this_obj); +void FilesystemStore_free(struct LDKFilesystemStore this_obj); /** - * Initialize a new FilesystemPersister and set the path to the individual channels' - * files. + * Constructs a new [`FilesystemStore`]. */ -MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data); +MUST_USE_RES struct LDKFilesystemStore FilesystemStore_new(struct LDKStr data_dir); /** - * Get the directory which was provided when this persister was initialized. + * Returns the data directory. */ -MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKStr FilesystemStore_get_data_dir(const struct LDKFilesystemStore *NONNULL_PTR this_arg); /** - * Read `ChannelMonitor`s from disk. + * Constructs a new KVStore which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned KVStore must be freed before this_arg is */ -MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKEntropySource entropy_source, const struct LDKSignerProvider *NONNULL_PTR signer_provider); +struct LDKKVStore FilesystemStore_as_KVStore(const struct LDKFilesystemStore *NONNULL_PTR this_arg); /** * Frees any resources used by the BackgroundProcessor, if is_owned is set and inner is non-NULL. @@ -41986,7 +45690,7 @@ MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKP * * [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager */ -MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg); +MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg); /** * Stop `BackgroundProcessor`'s thread, returning any error that occurred while persisting @@ -41999,7 +45703,7 @@ MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBac * * [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager */ -MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg); +MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg); /** * Frees any resources used by the Bolt11ParseError @@ -42586,7 +46290,7 @@ MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(c /** * Recovers the public key used for signing the invoice from the recoverable signature. */ -MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCResult_PayeePubKeySecp256k1ErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); /** * Checks if the signature is valid for the included payee public key or if none exists if it's @@ -42635,7 +46339,7 @@ MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKR */ MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); -MUST_USE_RES struct LDKCOption_PaymentSecretZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); @@ -42780,7 +46484,7 @@ MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struc * Returns the Duration since the Unix epoch at which the invoice expires. * Returning None if overflow occurred. */ -MUST_USE_RES struct LDKCOption_DurationZ Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); /** * Returns the invoice's expiry time, if present, otherwise [`DEFAULT_EXPIRY_TIME`]. @@ -42818,7 +46522,7 @@ MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDK /** * Returns a list of all fallback addresses as [`Address`]es */ -MUST_USE_RES struct LDKCVec_AddressZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_StrZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); /** * Returns a list of all routes included in the invoice @@ -43035,7 +46739,7 @@ struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NO * * If you wish to use a different payment idempotency token, see [`pay_invoice_with_id`]. */ -struct LDKCResult_PaymentIdPaymentErrorZ pay_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ pay_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); /** * Pays the given [`Bolt11Invoice`] with a custom idempotency key, retrying if needed based on @@ -43062,7 +46766,7 @@ struct LDKCResult_NonePaymentErrorZ pay_invoice_with_id(const struct LDKBolt11In * If you wish to use a different payment idempotency token, see * [`pay_zero_value_invoice_with_id`]. */ -struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ pay_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); /** * Pays the given zero-value [`Bolt11Invoice`] using the given amount and custom idempotency key, @@ -43079,6 +46783,21 @@ struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDK */ struct LDKCResult_NonePaymentErrorZ pay_zero_value_invoice_with_id(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); +/** + * Sends payment probes over all paths of a route that would be used to pay the given invoice. + * + * See [`ChannelManager::send_preflight_probes`] for more information. + */ +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ preflight_probe_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKCOption_u64Z liquidity_limit_multiplier); + +/** + * Sends payment probes over all paths of a route that would be used to pay the given zero-value + * invoice using the given amount. + * + * See [`ChannelManager::send_preflight_probes`] for more information. + */ +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ preflight_probe_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msat, const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKCOption_u64Z liquidity_limit_multiplier); + /** * Frees any resources used by the PaymentError */ @@ -43105,6 +46824,32 @@ struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a); */ bool PaymentError_eq(const struct LDKPaymentError *NONNULL_PTR a, const struct LDKPaymentError *NONNULL_PTR b); +/** + * Frees any resources used by the ProbingError + */ +void ProbingError_free(struct LDKProbingError this_ptr); + +/** + * Creates a copy of the ProbingError + */ +struct LDKProbingError ProbingError_clone(const struct LDKProbingError *NONNULL_PTR orig); + +/** + * Utility method to constructs a new Invoice-variant ProbingError + */ +struct LDKProbingError ProbingError_invoice(struct LDKStr a); + +/** + * Utility method to constructs a new Sending-variant ProbingError + */ +struct LDKProbingError ProbingError_sending(struct LDKProbeSendFailure a); + +/** + * Checks if two ProbingErrors contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool ProbingError_eq(const struct LDKProbingError *NONNULL_PTR a, const struct LDKProbingError *NONNULL_PTR b); + /** * Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\" * See [`PhantomKeysManager`] for more information on phantom node payments. @@ -43147,7 +46892,7 @@ bool PaymentError_eq(const struct LDKPaymentError *NONNULL_PTR a, const struct L * This can be used in a `no_std` environment, where [`std::time::SystemTime`] is not * available and the current time is supplied by the caller. */ -struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_PaymentHashZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); +struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); /** * Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\" @@ -43189,7 +46934,7 @@ struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struc * This can be used in a `no_std` environment, where [`std::time::SystemTime`] is not * available and the current time is supplied by the caller. */ -struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_PaymentHashZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); +struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); /** * Utility to construct an invoice. Generally, unless you want to do something like a custom diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Info.plist b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Info.plist index 2a6d36f4..eee1592e 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Info.plist and b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Info.plist differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/LightningDevKit b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/LightningDevKit index b6fcdfe7..209001c0 100755 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/LightningDevKit and b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/LightningDevKit differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftdoc b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftdoc index 2462128f..bd32bd7c 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftdoc and b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftinterface b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftinterface index 00d32735..6501b7cf 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftinterface +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios.swiftinterface @@ -7,561 +7,1358 @@ import Foundation @_exported import LightningDevKit import Swift import _Concurrency -public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput +public typealias Result_SocketAddressDecodeErrorZ = LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias TxComplete = LightningDevKit.Bindings.TxComplete +public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool + public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public func intoTransaction() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler +public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) - public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + @objc deinit + } +} +public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? + public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) + public func getMessage() -> LightningDevKit.Bindings.UntrustedString + public func setMessage(val: LightningDevKit.Bindings.UntrustedString) + public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? @objc deinit } } -public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC +public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getFailureCode() -> Swift.UInt16 - public func setFailureCode(val: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) + public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider +public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] - open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner - open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - open func getDestinationScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? @objc deinit } } -public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getEnabled() -> Swift.Bool - public func setEnabled(val: Swift.Bool) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? - public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) - public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func getA() -> [Swift.UInt8] + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func channel() -> LightningDevKit.Bindings.ChannelInfo + public func htlcMaximumMsat() -> Swift.UInt64 + public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ +public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? @objc deinit } } -public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField +public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTlvFieldnum() -> Swift.UInt64 - public func setTlvFieldnum(val: Swift.UInt64) - public func getSuggestedValue() -> [Swift.UInt8]? - public func setSuggestedValue(val: [Swift.UInt8]?) - public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeId? @objc deinit } } -public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ +public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +public typealias Record = LightningDevKit.Bindings.Record extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OffersMessage? + public func getLevel() -> LightningDevKit.Bindings.Level + public func setLevel(val: LightningDevKit.Bindings.Level) + public func getArgs() -> Swift.String + public func setArgs(val: Swift.String) + public func getModulePath() -> Swift.String + public func setModulePath(val: Swift.String) + public func getFile() -> Swift.String + public func setFile(val: Swift.String) + public func getLine() -> Swift.UInt32 + public func setLine(val: Swift.UInt32) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ +public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxComplete? + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getOnionRoutingPacket() -> LightningDevKit.Bindings.Packet + public func setOnionRoutingPacket(val: LightningDevKit.Bindings.Packet) + public init(blindingPointArg: [Swift.UInt8], onionRoutingPacketArg: LightningDevKit.Bindings.Packet) + public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ +public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? + public func getValue() -> LightningDevKit.Bindings.MonitorEvent? @objc deinit } } -public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor +public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SpendableOutputDescriptorType { - case StaticOutput - case DelayedPaymentOutput - case StaticPaymentOutput - public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public enum EffectiveCapacityType { + case ExactLiquidity + case AdvertisedMaxHTLC + case Total + case Infinite + case HintMaxHTLC + case Unknown + public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType - public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? - public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? - public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType + public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity + public func asMsat() -> Swift.UInt64 + public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? + public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? + public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? + public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? @objc deinit - @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getOutput() -> LightningDevKit.Bindings.TxOut + public func getLiquidityMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCapacityMsat() -> Swift.UInt64 + public func getHtlcMaximumMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 @objc deinit } } } -public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ +public typealias PathFailure = LightningDevKit.Bindings.PathFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? + public enum PathFailureType { + case InitialSend + case OnPath + public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType + public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure + public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure + public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? + public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? @objc deinit + @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> LightningDevKit.Bindings.APIError + @objc deinit + } + @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? + @objc deinit + } } } -public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ +public typealias Result_SchnorrSignatureNoneZ = LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SchnorrSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ +public typealias Watch = LightningDevKit.Bindings.Watch extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public init() + open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] @objc deinit } } -public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ +public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InvoiceError? + public func getValue() -> LightningDevKit.Bindings.BigSize? @objc deinit } } -public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? @objc deinit } } -public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore +public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asLockableScore() -> LightningDevKit.Bindings.LockableScore - public func write() -> [Swift.UInt8] - public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore - public init(score: LightningDevKit.Bindings.Score) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? @objc deinit } } -public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice - public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func timestamp() -> Swift.UInt64 - public func durationSinceEpoch() -> Swift.UInt64 - public func paymentHash() -> [Swift.UInt8]? - public func payeePubKey() -> [Swift.UInt8]? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func recoverPayeePubKey() -> [Swift.UInt8] - public func expiresAt() -> Swift.UInt64? - public func expiryTime() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func durationUntilExpiry() -> Swift.UInt64 - public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 - public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool - public func minFinalCltvExpiryDelta() -> Swift.UInt64 - public func fallbackAddresses() -> [Swift.String] - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func routeHints() -> [LightningDevKit.Bindings.RouteHint] - public func currency() -> LightningDevKit.Bindings.Currency - public func amountMilliSatoshis() -> Swift.UInt64? - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func toStr() -> Swift.String - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RoutingFees? @objc deinit } } -public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs +public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(scorer: LightningDevKit.Bindings.Score, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias Currency = LightningDevKit.Bindings.Currency -extension LightningDevKit.Bindings { - public enum Currency { - case Bitcoin - case BitcoinTestnet - case Regtest - case Simnet - case Signet - public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? @objc deinit } } -public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ClosureReasonType { - case CounterpartyForceClosed - case HolderForceClosed - case CooperativeClosure - case CommitmentTxConfirmed - case FundingTimedOut - case ProcessingError - case DisconnectedPeer - case OutdatedChannelManager - case CounterpartyCoopClosedUnfundedChannel - public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool + public enum MaxDustHTLCExposureType { + case FixedLimitMsat + case FeeRateMultiplier + public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType - public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason - public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason - public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason - public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason - public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason - public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType + public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? - public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public func getValueAsFixedLimitMsat() -> Swift.UInt64? + public func getValueAsFeeRateMultiplier() -> Swift.UInt64? @objc deinit - @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } } } -public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter +public typealias Result_ThirtyTwoBytesNoneZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) - public func asRouter() -> LightningDevKit.Bindings.Router + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + @objc deinit + } +} +public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias ReceiveTlvs = LightningDevKit.Bindings.ReceiveTlvs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ReceiveTlvs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public init(paymentSecretArg: [Swift.UInt8], paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ +public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) + public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) + public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbingError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.ProbingError? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? + @objc deinit + } +} +public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOffered() -> Swift.Bool + public func setOffered(val: Swift.Bool) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getTransactionOutputIndex() -> Swift.UInt32? + public func setTransactionOutputIndex(val: Swift.UInt32?) + public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) + public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias BigSize = LightningDevKit.Bindings.BigSize +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(lockableScore: LightningDevKit.Bindings.LockableScore) + open func write() -> [Swift.UInt8] + public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + @objc deinit + } +} +public typealias Result_HTLCDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_HTLCDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSigned? + public func getValue() -> LightningDevKit.Bindings.HTLCDescriptor? @objc deinit } } -public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError +public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ extension LightningDevKit.Bindings { - public enum Bolt12SemanticError { - case AlreadyExpired - case UnsupportedChain - case UnexpectedChain - case MissingAmount - case InvalidAmount - case InsufficientAmount - case UnexpectedAmount - case UnsupportedCurrency - case UnknownRequiredFeatures - case UnexpectedFeatures - case MissingDescription - case MissingSigningPubkey - case InvalidSigningPubkey - case UnexpectedSigningPubkey - case MissingQuantity - case InvalidQuantity - case UnexpectedQuantity - case InvalidMetadata - case UnexpectedMetadata - case MissingPayerMetadata - case MissingPayerId - case MissingPaths - case InvalidPayInfo - case MissingCreationTime - case MissingPaymentHash - case MissingSignature - public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsType? + @objc deinit } } -public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures +public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + @objc deinit + } +} +public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures public func requiresUnknownBitsFrom() -> Swift.Bool public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setPaymentMetadataOptional() - public func setPaymentMetadataRequired() - public func supportsPaymentMetadata() -> Swift.Bool - public func requiresPaymentMetadata() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public enum RetryableSendFailure { + case PaymentExpired + case RouteNotFound + case DuplicatePayment + public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MessageSendEventType { - case SendAcceptChannel - case SendAcceptChannelV2 - case SendOpenChannel + public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + @objc deinit + } +} +public typealias Result_ThirtyTwoBytesPaymentSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + @objc deinit + } +} +public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice + public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func timestamp() -> Swift.UInt64 + public func durationSinceEpoch() -> Swift.UInt64 + public func paymentHash() -> [Swift.UInt8]? + public func payeePubKey() -> [Swift.UInt8]? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func recoverPayeePubKey() -> [Swift.UInt8] + public func expiresAt() -> Swift.UInt64? + public func expiryTime() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func durationUntilExpiry() -> Swift.UInt64 + public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 + public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool + public func minFinalCltvExpiryDelta() -> Swift.UInt64 + public func fallbackAddresses() -> [Swift.String] + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func routeHints() -> [LightningDevKit.Bindings.RouteHint] + public func currency() -> LightningDevKit.Bindings.Currency + public func amountMilliSatoshis() -> Swift.UInt64? + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public func toStr() -> Swift.String + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func signature() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? + public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) + public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? + public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) + public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? + public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) + public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? + public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) + public func getChainMonitor() -> LightningDevKit.Bindings.Watch? + public func setChainMonitor(val: LightningDevKit.Bindings.Watch) + public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? + public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) + public func getRouter() -> LightningDevKit.Bindings.Router? + public func setRouter(val: LightningDevKit.Bindings.Router) + public func getLogger() -> LightningDevKit.Bindings.Logger? + public func setLogger(val: LightningDevKit.Bindings.Logger) + public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig + public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Currency = LightningDevKit.Bindings.Currency +extension LightningDevKit.Bindings { + public enum Currency { + case Bitcoin + case BitcoinTestnet + case Regtest + case Simnet + case Signet + public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_ECDSASignatureNoneZ = LightningDevKit.Bindings.Result_ECDSASignatureNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ECDSASignatureNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum PaymentPurposeType { + case InvoicePayment + case SpontaneousPayment + public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType + public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? + public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentPreimage() -> [Swift.UInt8]? + public func getPaymentSecret() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + @objc deinit + } +} +public typealias ForwardNode = LightningDevKit.Bindings.ForwardNode +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ForwardNode : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTlvs() -> LightningDevKit.Bindings.ForwardTlvs + public func setTlvs(val: LightningDevKit.Bindings.ForwardTlvs) + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public init(tlvsArg: LightningDevKit.Bindings.ForwardTlvs, nodeIdArg: [Swift.UInt8], htlcMaximumMsatArg: Swift.UInt64) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsInit? + @objc deinit + } +} +public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty + public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? + public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getShortChannelId() -> Swift.UInt64? + public func setShortChannelId(val: Swift.UInt64?) + public func getOutboundScidAlias() -> Swift.UInt64? + public func setOutboundScidAlias(val: Swift.UInt64?) + public func getInboundScidAlias() -> Swift.UInt64? + public func setInboundScidAlias(val: Swift.UInt64?) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getUnspendablePunishmentReserve() -> Swift.UInt64? + public func setUnspendablePunishmentReserve(val: Swift.UInt64?) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getFeerateSatPer1000Weight() -> Swift.UInt32? + public func setFeerateSatPer1000Weight(val: Swift.UInt32?) + public func getBalanceMsat() -> Swift.UInt64 + public func setBalanceMsat(val: Swift.UInt64) + public func getOutboundCapacityMsat() -> Swift.UInt64 + public func setOutboundCapacityMsat(val: Swift.UInt64) + public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 + public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) + public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 + public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) + public func getInboundCapacityMsat() -> Swift.UInt64 + public func setInboundCapacityMsat(val: Swift.UInt64) + public func getConfirmationsRequired() -> Swift.UInt32? + public func setConfirmationsRequired(val: Swift.UInt32?) + public func getConfirmations() -> Swift.UInt32? + public func setConfirmations(val: Swift.UInt32?) + public func getForceCloseSpendDelay() -> Swift.UInt16? + public func setForceCloseSpendDelay(val: Swift.UInt16?) + public func getIsOutbound() -> Swift.Bool + public func setIsOutbound(val: Swift.Bool) + public func getIsChannelReady() -> Swift.Bool + public func setIsChannelReady(val: Swift.Bool) + public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? + public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) + public func getIsUsable() -> Swift.Bool + public func setIsUsable(val: Swift.Bool) + public func getIsPublic() -> Swift.Bool + public func setIsPublic(val: Swift.Bool) + public func getInboundHtlcMinimumMsat() -> Swift.UInt64? + public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getInboundHtlcMaximumMsat() -> Swift.UInt64? + public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) + public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? + public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) + public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) + public func getInboundPaymentScid() -> Swift.UInt64? + public func getOutboundPaymentScid() -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias TaggedHash = LightningDevKit.Bindings.TaggedHash +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TaggedHash : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + @objc deinit + } +} +public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.UtxoLookupError? + public func getValue() -> LightningDevKit.Bindings.TxOut? + @objc deinit + } +} +public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func builtTransaction() -> [Swift.UInt8] + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_ChannelDerivationParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ChannelDerivationParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDerivationParameters) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDerivationParameters? + @objc deinit + } +} +public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getHtlcSignatures() -> [[Swift.UInt8]] + public func setHtlcSignatures(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ProbeSendFailure = LightningDevKit.Bindings.ProbeSendFailure +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ProbeSendFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ProbeSendFailureType { + case RouteNotFound + case SendingFailed + public static func == (a: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType, b: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType + public class func initWithRouteNotFound() -> LightningDevKit.Bindings.ProbeSendFailure + public class func initWithSendingFailed(a: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.ProbeSendFailure + public class func eq(a: LightningDevKit.Bindings.ProbeSendFailure, b: LightningDevKit.Bindings.ProbeSendFailure) -> Swift.Bool + public func getValueAsSendingFailed() -> LightningDevKit.Bindings.PaymentSendFailure? + @objc deinit + } +} +public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MonitorEventType { + case HTLCEvent + case HolderForceClosed + case Completed + public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType + public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithHolderForceClosed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent + public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValueAsHolderForceClosed() -> LightningDevKit.Bindings.OutPoint? + public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? + @objc deinit + @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + public func getMonitorUpdateId() -> Swift.UInt64 + @objc deinit + } + } +} +public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingSigned? + @objc deinit + } +} +public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getBlockHash() -> [Swift.UInt8]? + public func setBlockHash(val: [Swift.UInt8]?) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getScriptPubkey() -> [Swift.UInt8] + public func setScriptPubkey(val: [Swift.UInt8]) + public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum OffersMessageType { + case InvoiceRequest + case Invoice + case InvoiceError + public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType + public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage + public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool + public func tlvType() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? + public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? + public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + @objc deinit + } +} +public typealias Input = LightningDevKit.Bindings.Input +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut + public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt + open func disconnectSocket() + open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool + open func hash() -> Swift.UInt64 + @objc deinit + } +} +public typealias PaymentRelay = LightningDevKit.Bindings.PaymentRelay +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentRelay : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public init(cltvExpiryDeltaArg: Swift.UInt16, feeProportionalMillionthsArg: Swift.UInt32, feeBaseMsatArg: Swift.UInt32) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +extension LightningDevKit.Bindings { + public enum SiPrefix { + case Milli + case Micro + case Nano + case Pico + public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.InMemorySigner? + @objc deinit + } +} +public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHop? + @objc deinit + } +} +public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getFlags() -> Swift.UInt8 + public func setFlags(val: Swift.UInt8) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Offer? + @objc deinit + } +} +public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MessageSendEventType { + case SendAcceptChannel + case SendAcceptChannelV2 + case SendOpenChannel case SendOpenChannelV2 case SendFundingCreated case SendFundingSigned @@ -612,7 +1409,7 @@ extension LightningDevKit.Bindings { public class func initWithSendTxSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxInitRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxAckRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.MessageSendEvent - public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.MessageSendEvent + public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendChannelReady(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendAnnouncementSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithUpdateHtlcs(nodeId: [Swift.UInt8], updates: LightningDevKit.Bindings.CommitmentUpdate) -> LightningDevKit.Bindings.MessageSendEvent @@ -765,7 +1562,7 @@ extension LightningDevKit.Bindings { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.TxAddInput + public func getMsg() -> LightningDevKit.Bindings.TxAbort @objc deinit } @_hasMissingDesignatedInitializers public class SendChannelReady : LightningDevKit.NativeTypeWrapper { @@ -854,553 +1651,257 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class HandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getAction() -> LightningDevKit.Bindings.ErrorAction - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter - @objc deinit - } - } -} -public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOk() -> Swift.Bool - @objc deinit - } -} -public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getRevocationPubkey() -> [Swift.UInt8] - public func setRevocationPubkey(val: [Swift.UInt8]) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? - @objc deinit - } -} -public typealias Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? - @objc deinit - } -} -public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) - open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] - open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] - open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func channelKeysId() -> [Swift.UInt8] - open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - @objc deinit - } -} -public typealias Result__u832APIErrorZ = LightningDevKit.Bindings.Result__u832APIErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result__u832APIErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.BlindedHop] - public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 - public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? - @objc deinit - } -} -public typealias BestBlock = LightningDevKit.Bindings.BestBlock -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool - public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock - public init(blockHash: [Swift.UInt8], height: Swift.UInt32) - public func blockHash() -> [Swift.UInt8] - public func height() -> Swift.UInt32 - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 - public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) - public func getLiquidityOffsetHalfLife() -> Swift.UInt64 - public func setLiquidityOffsetHalfLife(val: Swift.UInt64) - public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget -extension LightningDevKit.Bindings { - public enum ConfirmationTarget { - case MempoolMinimum - case Background - case Normal - case HighPriority - public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.BlindedPath? - @objc deinit - } -} -public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public func getSats() -> Swift.UInt64 - public func setSats(val: Swift.UInt64) - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getHtlcSignatures() -> [[Swift.UInt8]] - public func setHtlcSignatures(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FailureCode = LightningDevKit.Bindings.FailureCode -extension LightningDevKit.Bindings { - public enum FailureCode { - case TemporaryNodeFailure - case RequiredNodeFeatureMissing - case IncorrectOrUnknownPaymentDetails - public static func == (a: LightningDevKit.Bindings.FailureCode, b: LightningDevKit.Bindings.FailureCode) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + public func getNodeId() -> [Swift.UInt8] + public func getAction() -> LightningDevKit.Bindings.ErrorAction + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter + @objc deinit } } } -public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ +public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? + public func getValue() -> LightningDevKit.Bindings.Shutdown? @objc deinit } } -public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +public typealias ScoreUpdate = LightningDevKit.Bindings.ScoreUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreUpdate : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) - public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) - public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getInflightHtlcMsat() -> Swift.UInt64 - public func setInflightHtlcMsat(val: Swift.UInt64) - public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) - public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Input = LightningDevKit.Bindings.Input -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut - public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias TxOut = LightningDevKit.Bindings.TxOut -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) - public func getScriptPubkey() -> [Swift.UInt8] - public func getValue() -> Swift.UInt64 + open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) + open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func probeSuccessful(path: LightningDevKit.Bindings.Path) @objc deinit } } -public typealias KeysManager = LightningDevKit.Bindings.KeysManager +public typealias WalletSource = LightningDevKit.Bindings.WalletSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) - public func getNodeSecretKey() -> [Swift.UInt8] - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public func isOwned() -> Swift.Bool + public init() + open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + open func getChangeScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias BigSize = LightningDevKit.Bindings.BigSize +public typealias Offer = LightningDevKit.Bindings.Offer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool + public func isExpired() -> Swift.Bool + public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool + public func expectsQuantity() -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - @objc deinit - } -} -public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannel? - @objc deinit - } -} -public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PrivateRoute? - @objc deinit - } -} -public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? - @objc deinit - } -} -public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? - @objc deinit - } -} -public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim +public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError extension LightningDevKit.Bindings { - public enum HTLCClaim { - case OfferedTimeout - case OfferedPreimage - case AcceptedTimeout - case AcceptedPreimage - case Revocation - public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public enum Bolt12SemanticError { + case AlreadyExpired + case UnsupportedChain + case UnexpectedChain + case MissingAmount + case InvalidAmount + case InsufficientAmount + case UnexpectedAmount + case UnsupportedCurrency + case UnknownRequiredFeatures + case UnexpectedFeatures + case MissingDescription + case MissingSigningPubkey + case InvalidSigningPubkey + case UnexpectedSigningPubkey + case MissingQuantity + case InvalidQuantity + case UnexpectedQuantity + case InvalidMetadata + case UnexpectedMetadata + case MissingPayerMetadata + case MissingPayerId + case MissingPaths + case InvalidPayInfo + case MissingCreationTime + case MissingPaymentHash + case MissingSignature + public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Score = LightningDevKit.Bindings.Score +public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 - open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) - open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func probeSuccessful(path: LightningDevKit.Bindings.Path) - open func write() -> [Swift.UInt8] + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getPerCommitmentNumber() -> Swift.UInt64 + public func setPerCommitmentNumber(val: Swift.UInt64) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment + public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) + public func getPreimage() -> [Swift.UInt8]? + public func setPreimage(val: [Swift.UInt8]?) + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public func outpoint() -> LightningDevKit.Bindings.OutPoint + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func txOutput() -> LightningDevKit.Bindings.TxOut + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Fallback = LightningDevKit.Bindings.Fallback +public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum FallbackType { - case SegWitProgram - case PubKeyHash - case ScriptHash - public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public enum Bech32ErrorType { + case MissingSeparator + case InvalidChecksum + case InvalidLength + case InvalidChar + case InvalidData + case InvalidPadding + case MixedCase + public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType - public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool - public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? - public func getValueAsPubKeyHash() -> [Swift.UInt8]? - public func getValueAsScriptHash() -> [Swift.UInt8]? + public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType + public func getValueAsInvalidChar() -> Swift.UInt32? + public func getValueAsInvalidData() -> Swift.UInt8? @objc deinit - @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getVersion() -> Swift.UInt8 - public func getProgram() -> [Swift.UInt8] - @objc deinit - } } } -public typealias Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ +public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? - public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? + public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getHolderSelectedContestDelay() -> Swift.UInt16 + public func setHolderSelectedContestDelay(val: Swift.UInt16) + public func getIsOutboundFromHolder() -> Swift.Bool + public func setIsOutboundFromHolder(val: Swift.Bool) + public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) + public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool + public func isPopulated() -> Swift.Bool + public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature +public typealias Amount = LightningDevKit.Bindings.Amount extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MultiThreadedScoreLock = LightningDevKit.Bindings.MultiThreadedScoreLock +public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedScoreLock : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAlias? @objc deinit } } -public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +public typealias Sleeper = LightningDevKit.Bindings.Sleeper extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public init(futures: [LightningDevKit.Bindings.Future]) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } @@ -1416,1046 +1917,1181 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool - public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func intoInner() -> LightningDevKit.Bindings.RouteHint - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias GossipSync = LightningDevKit.Bindings.GossipSync -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum GossipSyncType { - case P2P - case Rapid - case None - public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType - public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func none() -> LightningDevKit.Bindings.GossipSync - public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? - public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? - @objc deinit - } -} -public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeSignature() -> [Swift.UInt8] - public func setNodeSignature(val: [Swift.UInt8]) - public func getBitcoinSignature() -> [Swift.UInt8] - public func setBitcoinSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError -extension LightningDevKit.Bindings { - public enum UtxoLookupError { - case UnknownChain - case UnknownTx - public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Refund? - @objc deinit - } -} -public typealias Network = LightningDevKit.Bindings.Network +public typealias SocketAddressParseError = LightningDevKit.Bindings.SocketAddressParseError extension LightningDevKit.Bindings { - public enum Network { - case Bitcoin - case Testnet - case Regtest - case Signet - public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public enum SocketAddressParseError { + case SocketAddrParse + case InvalidInput + case InvalidPort + case InvalidOnionV3 + public static func == (a: LightningDevKit.Bindings.SocketAddressParseError, b: LightningDevKit.Bindings.SocketAddressParseError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Ping = LightningDevKit.Bindings.Ping +public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPonglen() -> Swift.UInt16 - public func setPonglen(val: Swift.UInt16) - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getLatestUpdateId() -> Swift.UInt64 + public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) + public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] + public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) + public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] + public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func initialCounterpartyCommitmentTx() -> LightningDevKit.Bindings.CommitmentTransaction? + public func counterpartyCommitmentTxsFromUpdate(update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> [LightningDevKit.Bindings.CommitmentTransaction] + public func signToLocalJusticeTx(justiceTx: [Swift.UInt8], inputIdx: Swift.UInt, value: Swift.UInt64, commitmentNumber: Swift.UInt64) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func getCounterpartyNodeId() -> [Swift.UInt8]? + public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] + public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func getSpendableOutputs(tx: [Swift.UInt8], confirmationHeight: Swift.UInt32) -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentIdPaymentErrorZ = LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentIdPaymentErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ +public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelDetails? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias Result_PayeePubKeyErrorZ = LightningDevKit.Bindings.Result_PayeePubKeyErrorZ +public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PayeePubKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? @objc deinit } } -public typealias Route = LightningDevKit.Bindings.Route +public typealias Payee = LightningDevKit.Bindings.Payee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaths() -> [LightningDevKit.Bindings.Path] - public func setPaths(val: [LightningDevKit.Bindings.Path]) - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters? - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public init(pathsArg: [LightningDevKit.Bindings.Path], paymentParamsArg: LightningDevKit.Bindings.PaymentParameters) + public enum PayeeType { + case Blinded + case Clear + public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType + public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee + public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool - public func getTotalFees() -> Swift.UInt64 - public func getTotalAmount() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool + public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? + public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? @objc deinit + @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] + public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] + public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func getFinalCltvExpiryDelta() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ +public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Ping? @objc deinit } } -public typealias Future = LightningDevKit.Bindings.Future +public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters +public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBasePenaltyMsat() -> Swift.UInt64 - public func setBasePenaltyMsat(val: Swift.UInt64) - public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getAntiProbingPenaltyMsat() -> Swift.UInt64 - public func setAntiProbingPenaltyMsat(val: Swift.UInt64) - public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 - public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters - public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) - public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) - public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) - public func clearManualPenalties() + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public func commitmentNumber() -> Swift.UInt64 + public func toBroadcasterValueSat() -> Swift.UInt64 + public func toCountersignatoryValueSat() -> Swift.UInt64 + public func feeratePerKw() -> Swift.UInt32 + public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction + public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ +public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) + public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 + public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ +public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? + public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func intoInner() -> [Swift.UInt8] + public func asLegacyPubkey() -> [Swift.UInt8]? + public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Level = LightningDevKit.Bindings.Level -extension LightningDevKit.Bindings { - public enum Level { - case Gossip - case Trace - case Debug - case Info - case Warn - case Error - public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } +@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { + public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + @objc deinit + open var hashValue: Swift.Int { + get } } -public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? - @objc deinit +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { + public func activate() -> Self + public func activateOnce() -> Self + @objc deinit +} +@_hasMissingDesignatedInitializers public class Bindings { + public enum PrintSeverity : Swift.UInt { + case DEBUG + case WARNING + case ERROR + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } } + public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) + public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) + public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer + public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper + public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String + public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func ldkGetCompiledVersion() -> Swift.String + public class func ldkCBindingsGetCompiledVersion() -> Swift.String + public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool + public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] + public class func readChannelMonitors(kvStore: LightningDevKit.Bindings.KVStore, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures + public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func parseOnionAddress(host: Swift.String, port: Swift.UInt16) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] + public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] + public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCounterpartyPaymentScript(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, paymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] + public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] + public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 + public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.ScoreLookUp, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func createOnionMessage(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func preflightProbeInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func preflightProbeZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsat: Swift.UInt64, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") + public class func readThirtyTwoBytesChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func readThirtyTwoBytesChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + @objc deinit } -public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func metadata() -> [Swift.UInt8] - public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64? - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func quantity() -> Swift.UInt64? - public func payerId() -> [Swift.UInt8] - public func payerNote() -> LightningDevKit.Bindings.PrintableString? - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } +@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { + public init() + public func getPointer() -> Swift.UnsafeMutableRawPointer + @objc deinit } -public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ +public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InitFeatures? + public func getValue() -> LightningDevKit.Bindings.Pong? @objc deinit } } -public typealias Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ +public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], Swift.UInt)? - @objc deinit - } -} -public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func broadcastTransactions(txs: [[Swift.UInt8]]) - @objc deinit - } -} -public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getHolderSelectedContestDelay() -> Swift.UInt16 - public func setHolderSelectedContestDelay(val: Swift.UInt16) - public func getIsOutboundFromHolder() -> Swift.Bool - public func setIsOutboundFromHolder(val: Swift.Bool) - public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? - public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) - public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? - public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool - public func isPopulated() -> Swift.Bool - public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.Description? @objc deinit } } -public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler +public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? - open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func processingQueueHigh() -> Swift.Bool - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? @objc deinit } } -public typealias Router = LightningDevKit.Bindings.Router +public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? @objc deinit } } -public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK +public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getPerCommitmentSecret() -> [Swift.UInt8]? - public func setPerCommitmentSecret(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getFailureCode() -> Swift.UInt16 + public func setFailureCode(val: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ +public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? @objc deinit } } -public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? - public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) - public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? - public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) - public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? - public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) - public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? - public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) - public func getChainMonitor() -> LightningDevKit.Bindings.Watch? - public func setChainMonitor(val: LightningDevKit.Bindings.Watch) - public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? - public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) - public func getRouter() -> LightningDevKit.Bindings.Router? - public func setRouter(val: LightningDevKit.Bindings.Router) - public func getLogger() -> LightningDevKit.Bindings.Logger? - public func setLogger(val: LightningDevKit.Bindings.Logger) - public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig - public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit } } -public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures +public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public init() + open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage @objc deinit } } -public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty +public typealias Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func setNodeId(val: [Swift.UInt8]) - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getUnspendablePunishmentReserve() -> Swift.UInt64 - public func setUnspendablePunishmentReserve(val: Swift.UInt64) - public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? - public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) - public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? - public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? - public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) - public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? @objc deinit } } -public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + public func getValue() -> LightningDevKit.Bindings.UntrustedString? @objc deinit } } -public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +public typealias Level = LightningDevKit.Bindings.Level extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InMemorySigner? - @objc deinit + public enum Level { + case Gossip + case Trace + case Debug + case Info + case Warn + case Error + public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ +public typealias Result_PaymentConstraintsDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentConstraintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentConstraints) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? + public func getValue() -> LightningDevKit.Bindings.PaymentConstraints? @objc deinit } } -public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction +public typealias Retry = LightningDevKit.Bindings.Retry extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] - public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public enum RetryType { + case Attempts + case Timeout + public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType + public class func initWithAttempts(a: Swift.UInt32) -> LightningDevKit.Bindings.Retry + public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry + public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool + public func hash() -> Swift.UInt64 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public func getValueAsAttempts() -> Swift.UInt32? + public func getValueAsTimeout() -> Swift.UInt64? @objc deinit } } -public typealias PrintableString = LightningDevKit.Bindings.PrintableString +public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? @objc deinit } } -public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(lockableScore: LightningDevKit.Bindings.LockableScore) - open func write() -> [Swift.UInt8] - public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getSelectedContestDelay() -> Swift.UInt16 + public func setSelectedContestDelay(val: Swift.UInt16) + public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NetAddressDecodeErrorZ = LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ +public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetAddress) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetAddress? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture +public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeFeatures? @objc deinit } } -public typealias Persister = LightningDevKit.Bindings.Persister +public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneErrorZ + public enum Bolt11ParseErrorType { + case Bech32Error + case ParseAmountError + case MalformedSignature + case BadPrefix + case UnknownCurrency + case UnknownSiPrefix + case MalformedHRP + case TooShortDataPart + case UnexpectedEndOfTaggedFields + case DescriptionDecodeError + case PaddingError + case IntegerOverflowError + case InvalidSegWitProgramLength + case InvalidPubKeyHashLength + case InvalidScriptHashLength + case InvalidRecoveryId + case InvalidSliceLength + case Skip + public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType + public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError + public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? + public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsInvalidSliceLength() -> Swift.String? @objc deinit } } -public typealias Filter = LightningDevKit.Bindings.Filter +public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) - open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? @objc deinit } } -public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart +public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp - public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) - public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func asLockableScore() -> LightningDevKit.Bindings.LockableScore + public func write() -> [Swift.UInt8] + public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore + public init(score: LightningDevKit.Bindings.Score) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Listen = LightningDevKit.Bindings.Listen +public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) - open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(scriptArg: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ +public typealias Result_ThirtyTwoBytesRetryableSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady +public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public func getShortChannelIdAlias() -> Swift.UInt64? - public func setShortChannelIdAlias(val: Swift.UInt64?) - public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getNetworks() -> [[Swift.UInt8]]? + public func setNetworks(val: [[Swift.UInt8]]?) + public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.SocketAddress? + public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.SocketAddress?) + public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.SocketAddress?) + public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError -extension LightningDevKit.Bindings { - public enum Bolt11SemanticError { - case NoPaymentHash - case MultiplePaymentHashes - case NoDescription - case MultipleDescriptions - case NoPaymentSecret - case MultiplePaymentSecrets - case InvalidFeatures - case InvalidRecoveryId - case InvalidSignature - case ImpreciseAmount - public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteParameters? + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getInflightHtlcMsat() -> Swift.UInt64 + public func setInflightHtlcMsat(val: Swift.UInt64) + public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity + public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) + public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ +public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> Swift.Bool? + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? + open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func processingQueueHigh() -> Swift.Bool + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ +public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? + public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? @objc deinit } } -public typealias Logger = LightningDevKit.Bindings.Logger +public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func log(record: LightningDevKit.Bindings.Record) + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannel? @objc deinit } } -public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +public typealias Event = LightningDevKit.Bindings.Event extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OffersMessageType { - case InvoiceRequest - case Invoice - case InvoiceError - public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public enum EventType { + case FundingGenerationReady + case PaymentClaimable + case PaymentClaimed + case PaymentSent + case PaymentFailed + case PaymentPathSuccessful + case PaymentPathFailed + case ProbeSuccessful + case ProbeFailed + case PendingHTLCsForwardable + case HTLCIntercepted + case SpendableOutputs + case PaymentForwarded + case ChannelPending + case ChannelReady + case ChannelClosed + case DiscardFunding + case OpenChannelRequest + case HTLCHandlingFailed + case BumpTransaction + public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType - public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage - public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool - public func tlvType() -> Swift.UInt64 + public func getValueType() -> LightningDevKit.Bindings.Event.EventType + public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8]?, viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, htlcs: [LightningDevKit.Bindings.ClaimedHTLC], senderIntendedTotalMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor], channelId: [Swift.UInt8]?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8]?, nextChannelId: [Swift.UInt8]?, feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8]?, counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event + public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason, counterpartyNodeId: [Swift.UInt8], channelCapacitySats: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event + public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event + public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? - public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? - public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? + public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? + public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? + public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? + public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? + public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? + public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? + public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? + public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? + public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? + public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? + public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? + public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? + public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? + public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? + public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? + public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? + public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? + public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? + public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? @objc deinit - } -} -public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentPurposeType { - case InvoicePayment - case SpontaneousPayment - public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelValueSatoshis() -> Swift.UInt64 + public func getOutputScript() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields + public func getAmountMsat() -> Swift.UInt64 + public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getViaChannelId() -> [Swift.UInt8]? + public func getViaUserChannelId() -> [Swift.UInt8]? + public func getClaimDeadline() -> Swift.UInt32? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getAmountMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getHtlcs() -> [LightningDevKit.Bindings.ClaimedHTLC] + public func getSenderIntendedTotalMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentPreimage() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getFeePaidMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentFailedPermanently() -> Swift.Bool + public func getFailure() -> LightningDevKit.Bindings.PathFailure + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTimeForwardable() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getInterceptId() -> [Swift.UInt8] + public func getRequestedNextHopScid() -> Swift.UInt64 + public func getPaymentHash() -> [Swift.UInt8] + public func getInboundAmountMsat() -> Swift.UInt64 + public func getExpectedOutboundAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getChannelId() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8]? + public func getNextChannelId() -> [Swift.UInt8]? + public func getFeeEarnedMsat() -> Swift.UInt64? + public func getClaimFromOnchainTx() -> Swift.Bool + public func getOutboundAmountForwardedMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getFormerTemporaryChannelId() -> [Swift.UInt8]? + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.ClosureReason + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelCapacitySats() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getTransaction() -> [Swift.UInt8] + @objc deinit } - public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType - public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? - public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? - @objc deinit - @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentPreimage() -> [Swift.UInt8]? - public func getPaymentSecret() -> [Swift.UInt8] + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingSatoshis() -> Swift.UInt64 + public func getPushMsat() -> Swift.UInt64 + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8] + public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination @objc deinit } } } -public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ +public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? + public func getValue() -> LightningDevKit.Bindings.InitFeatures? @objc deinit } } -public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync +public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func isInitialSyncComplete() -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit + public enum Option_NoneZ { + case Some + case None + public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ +public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFee? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getPerCommitmentSecret() -> [Swift.UInt8]? + public func setPerCommitmentSecret(val: [Swift.UInt8]) + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SendError = LightningDevKit.Bindings.SendError +public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SendErrorType { - case Secp256k1 - case TooBigPacket - case TooFewBlindedHops - case InvalidFirstHop - case InvalidMessage - case BufferFull - case GetNodeIdFailed - case BlindedPathAdvanceFailed - public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType - public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError - public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError - public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError - public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError - public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError - public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError - public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool - public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getNodeId() -> LightningDevKit.Bindings.NodeId + public func setNodeId(val: LightningDevKit.Bindings.NodeId) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAddresses() -> [LightningDevKit.Bindings.SocketAddress] + public func setAddresses(val: [LightningDevKit.Bindings.SocketAddress]) + public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentHashRetryableSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ +public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) - public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 - public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SignOrCreationError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +public typealias LockableScore = LightningDevKit.Bindings.LockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public init() + open func readLock() -> LightningDevKit.Bindings.ScoreLookUp + open func writeLock() -> LightningDevKit.Bindings.ScoreUpdate @objc deinit } } -public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage +public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UnsignedGossipMessageType { - case ChannelAnnouncement - case ChannelUpdate - case NodeAnnouncement - public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType - public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getNodeOne() -> LightningDevKit.Bindings.NodeId + public func setNodeOne(val: LightningDevKit.Bindings.NodeId) + public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getNodeTwo() -> LightningDevKit.Bindings.NodeId + public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) + public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getCapacitySats() -> Swift.UInt64? + public func setCapacitySats(val: Swift.UInt64?) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool + public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? public func write() -> [Swift.UInt8] - public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? - public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? - public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Destination = LightningDevKit.Bindings.Destination +public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DestinationType { - case Node - case BlindedPath - public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType - public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination - public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination - public func getValueAsNode() -> [Swift.UInt8]? - public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? + public init() + open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + @objc deinit + } +} +public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ +public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? @objc deinit } } -public typealias Result_SharedSecretNoneZ = LightningDevKit.Bindings.Result_SharedSecretNoneZ +public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SharedSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SharedSecretNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } @@ -2472,576 +3108,592 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination +public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum HTLCDestinationType { - case NextHopChannel - case UnknownNextHop - case InvalidForward - case FailedPayment - public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + @objc deinit + } +} +public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ClosureReasonType { + case CounterpartyForceClosed + case HolderForceClosed + case CooperativeClosure + case CommitmentTxConfirmed + case FundingTimedOut + case ProcessingError + case DisconnectedPeer + case OutdatedChannelManager + case CounterpartyCoopClosedUnfundedChannel + case FundingBatchClosure + public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType - public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType + public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason + public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason + public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason + public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason + public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingBatchClosure() -> LightningDevKit.Bindings.ClosureReason + public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? - public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? - public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? - public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? + public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? @objc deinit - @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 + public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString @objc deinit } - @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String @objc deinit } } } -public typealias EventHandler = LightningDevKit.Bindings.EventHandler -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func handleEvent(event: LightningDevKit.Bindings.Event) - @objc deinit - } -} -public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func builtTransaction() -> [Swift.UInt8] - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ +public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.GraphSyncError? - public func getValue() -> Swift.UInt32? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAckRbf? @objc deinit } } -public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ +public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? - @objc deinit - } -} -public typealias EntropySource = LightningDevKit.Bindings.EntropySource -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func getSecureRandomBytes() -> [Swift.UInt8] - @objc deinit - } -} -public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum MaxDustHTLCExposureType { - case FixedLimitMsat - case FeeRateMultiplier - public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType - public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public func getValueAsFixedLimitMsat() -> Swift.UInt64? - public func getValueAsFeeRateMultiplier() -> Swift.UInt64? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? @objc deinit } } -public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError +public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bolt11ParseErrorType { - case Bech32Error - case ParseAmountError - case MalformedSignature - case BadPrefix - case UnknownCurrency - case UnknownSiPrefix - case MalformedHRP - case TooShortDataPart - case UnexpectedEndOfTaggedFields - case DescriptionDecodeError - case PaddingError - case IntegerOverflowError - case InvalidSegWitProgramLength - case InvalidPubKeyHashLength - case InvalidScriptHashLength - case InvalidRecoveryId - case InvalidSliceLength - case Skip - public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType - public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError - public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? - public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsInvalidSliceLength() -> Swift.String? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ +public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? + public func getValue() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Amount = LightningDevKit.Bindings.Amount +public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited + public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) + public func getPrevtxOut() -> Swift.UInt32 + public func setPrevtxOut(val: Swift.UInt32) + public func getSequence() -> Swift.UInt32 + public func setSequence(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.UtxoLookupError? - public func getValue() -> LightningDevKit.Bindings.TxOut? + public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 + public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) + public func getLiquidityOffsetHalfLife() -> Swift.UInt64 + public func setLiquidityOffsetHalfLife(val: Swift.UInt64) + public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath +public typealias BestBlock = LightningDevKit.Bindings.BestBlock extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool - public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool + public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock + public init(blockHash: [Swift.UInt8], height: Swift.UInt32) + public func blockHash() -> [Swift.UInt8] + public func height() -> Swift.UInt32 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator +public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - public class func getLDKSwiftBindingsSerializationHash() -> Swift.String - public class func getLDKSwiftBindingsVersion() -> Swift.String - public class func getLDKSwiftBindingsCommitHash() -> Swift.String -} -public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? @objc deinit } } -public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ +public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MonitorEvent? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? @objc deinit } } -public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func tlvType() -> Swift.UInt64 - open func write() -> [Swift.UInt8] + open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) @objc deinit } } -public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC +public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) + open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner @objc deinit } } -public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +public typealias Balance = LightningDevKit.Bindings.Balance extension LightningDevKit.Bindings { - public enum SiPrefix { - case Milli - case Micro - case Nano - case Pico - public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum BalanceType { + case ClaimableOnChannelClose + case ClaimableAwaitingConfirmations + case ContentiousClaimable + case MaybeTimeoutClaimableHTLC + case MaybePreimageClaimableHTLC + case CounterpartyRevokedOutputClaimable + public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType + public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance + public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool + public func claimableAmountSatoshis() -> Swift.UInt64 + public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? + public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? + public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? + public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? + public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? + public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? + @objc deinit + @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getConfirmationHeight() -> Swift.UInt32 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getTimeoutHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentPreimage() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getClaimableHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getExpiryHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit } } } -public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - @objc deinit - } -} -public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? - public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) - public func getMessage() -> LightningDevKit.Bindings.UntrustedString - public func setMessage(val: LightningDevKit.Bindings.UntrustedString) - public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) + public func getGenesisHash() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) + public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph + public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? + public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) + public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func channelFailedPermanent(shortChannelId: Swift.UInt64) + public func nodeFailedPermanent(nodeId: [Swift.UInt8]) + public func removeStaleChannelsAndTracking() + public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) + public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader +public typealias Confirm = LightningDevKit.Bindings.Confirm extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - @objc deinit - } -} -public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.APIError? + open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func transactionUnconfirmed(txid: [Swift.UInt8]?) + open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) + open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] @objc deinit } } -public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error +public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason extension LightningDevKit.Bindings { - public enum Secp256k1Error { - case IncorrectSignature - case InvalidMessage - case InvalidPublicKey - case InvalidSignature - case InvalidSecretKey - case InvalidSharedSecret - case InvalidRecoveryId - case InvalidTweak - case NotEnoughMemory - case InvalidPublicKeySum - case InvalidParityValue - public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public enum PaymentFailureReason { + case RecipientRejected + case UserAbandoned + case RetriesExhausted + case PaymentExpired + case RouteNotFound + case UnexpectedError + public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput +public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? + public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) + public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? + public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) + public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? + public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) + public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? + public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) + public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentParameters? - @objc deinit - } -} -public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ +public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddOutput? + public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) + public func getPhantomScid() -> Swift.UInt64 + public func setPhantomScid(val: Swift.UInt64) + public func getRealNodePubkey() -> [Swift.UInt8] + public func setRealNodePubkey(val: [Swift.UInt8]) + public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ +public typealias Pong = LightningDevKit.Bindings.Pong extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ScriptNoneZ = LightningDevKit.Bindings.Result_ScriptNoneZ +public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ScriptNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) + public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ +public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAbort? + public func getValue() -> LightningDevKit.Bindings.InvoiceError? @objc deinit } } -public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ +public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelConfig? + public func getValue() -> LightningDevKit.Bindings.ChannelReady? @objc deinit } } -public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction +public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func txid() -> [Swift.UInt8] - public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction - public func keys() -> LightningDevKit.Bindings.TxCreationKeys - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOwned() -> Swift.Bool + public enum UnsignedGossipMessageType { + case ChannelAnnouncement + case ChannelUpdate + case NodeAnnouncement + public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType + public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func write() -> [Swift.UInt8] + public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? @objc deinit } } -public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [LightningDevKit.Bindings.Utxo]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAddOutput? @objc deinit } } -public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ +public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeId? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction +public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public func commitmentNumber() -> Swift.UInt64 - public func toBroadcasterValueSat() -> Swift.UInt64 - public func toCountersignatoryValueSat() -> Swift.UInt64 - public func feeratePerKw() -> Swift.UInt32 - public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction - public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } @@ -3064,598 +3716,781 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ +public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? - @objc deinit - } -} -public typealias PeerManager = LightningDevKit.Bindings.PeerManager -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") - public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) - public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.NetAddress?)] - public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func processEvents() - public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) - public func disconnectByNodeId(nodeId: [Swift.UInt8]) - public func disconnectAllPeers() - public func timerTickOccurred() - public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.NetAddress]) - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxComplete? @objc deinit } } -public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ +public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError +public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum GraphSyncErrorType { - case DecodeError - case LightningError - public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType - public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError - public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError - public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? - public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getNextLocalCommitmentNumber() -> Swift.UInt64 + public func setNextLocalCommitmentNumber(val: Swift.UInt64) + public func getNextRemoteCommitmentNumber() -> Swift.UInt64 + public func setNextRemoteCommitmentNumber(val: Swift.UInt64) + public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? + public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) + public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] + public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) + public func getNextFundingTxid() -> [Swift.UInt8]? + public func setNextFundingTxid(val: [Swift.UInt8]?) + public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo +public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? @objc deinit } } -public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +public typealias Result_CVec_u8ZNoneZ = LightningDevKit.Bindings.Result_CVec_u8ZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd +public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFullInformation() -> Swift.Bool - public func setFullInformation(val: Swift.Bool) - public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func getNetwork() -> LightningDevKit.Bindings.Network + public func setNetwork(val: LightningDevKit.Bindings.Network) + public func getBestBlock() -> LightningDevKit.Bindings.BestBlock + public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) + public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ +public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? + public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? @objc deinit } } -public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ +public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Shutdown? + public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool + public func endBlocknum() -> Swift.UInt32 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage +public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func getPayee() -> LightningDevKit.Bindings.Payee + public func setPayee(val: LightningDevKit.Bindings.Payee) + public func getExpiryTime() -> Swift.UInt64? + public func setExpiryTime(val: Swift.UInt64?) + public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 + public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) + public func getMaxPathCount() -> Swift.UInt8 + public func setMaxPathCount(val: Swift.UInt8) + public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 + public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) + public func getPreviouslyFailedChannels() -> [Swift.UInt64] + public func setPreviouslyFailedChannels(val: [Swift.UInt64]) + public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters + public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBlinded(blindedRouteHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)]) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript +public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(scriptArg: [Swift.UInt8]) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) + public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler + public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync +public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) - public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) - public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + @objc deinit + } +} +public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement +public typealias Recipient = LightningDevKit.Bindings.Recipient extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public enum Recipient { + case Node + case PhantomNode + public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Hostname = LightningDevKit.Bindings.Hostname +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getNodeId() -> LightningDevKit.Bindings.NodeId - public func setNodeId(val: LightningDevKit.Bindings.NodeId) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAddresses() -> [LightningDevKit.Bindings.NetAddress] - public func setAddresses(val: [LightningDevKit.Bindings.NetAddress]) - public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool + public func len() -> Swift.UInt8 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString +public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) + open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) + open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) + open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) + open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) + open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) + open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) + open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) + open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) + open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) + open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) + open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) + open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) + open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) + open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) + open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) + open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) + open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) + open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) + open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) + open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) + open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) + open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) + open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) + open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) + open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) + open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) + open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + open func getGenesisHashes() -> [[Swift.UInt8]]? + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Sleeper = LightningDevKit.Bindings.Sleeper +public typealias ClaimedHTLC = LightningDevKit.Bindings.ClaimedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClaimedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public init(futures: [LightningDevKit.Bindings.Future]) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getValueMsat() -> Swift.UInt64 + public func setValueMsat(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], userChannelIdArg: [Swift.UInt8], cltvExpiryArg: Swift.UInt32, valueMsatArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClaimedHTLC, b: LightningDevKit.Bindings.ClaimedHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? + public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? @objc deinit } } -public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor +public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeId1() -> LightningDevKit.Bindings.NodeId + public func setNodeId1(val: LightningDevKit.Bindings.NodeId) + public func getNodeId2() -> LightningDevKit.Bindings.NodeId + public func setNodeId2(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(featuresArg: LightningDevKit.Bindings.ChannelFeatures, chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeId1Arg: LightningDevKit.Bindings.NodeId, nodeId2Arg: LightningDevKit.Bindings.NodeId, bitcoinKey1Arg: LightningDevKit.Bindings.NodeId, bitcoinKey2Arg: LightningDevKit.Bindings.NodeId, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup +public typealias UserConfig = LightningDevKit.Bindings.UserConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult + public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) + public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits + public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) + public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig + public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) + public func getAcceptForwardsToPrivChannels() -> Swift.Bool + public func setAcceptForwardsToPrivChannels(val: Swift.Bool) + public func getAcceptInboundChannels() -> Swift.Bool + public func setAcceptInboundChannels(val: Swift.Bool) + public func getManuallyAcceptInboundChannels() -> Swift.Bool + public func setManuallyAcceptInboundChannels(val: Swift.Bool) + public func getAcceptInterceptHtlcs() -> Swift.Bool + public func setAcceptInterceptHtlcs(val: Swift.Bool) + public func getAcceptMppKeysend() -> Swift.Bool + public func setAcceptMppKeysend(val: Swift.Bool) + public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstTimestamp() -> Swift.UInt32 - public func setFirstTimestamp(val: Swift.UInt32) - public func getTimestampRange() -> Swift.UInt32 - public func setTimestampRange(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setPaymentMetadataOptional() + public func setPaymentMetadataRequired() + public func supportsPaymentMetadata() -> Swift.Bool + public func requiresPaymentMetadata() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp +public typealias Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool - public func hash() -> Swift.UInt64 - public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public func asUnixTimestamp() -> Swift.UInt64 - public func asDurationSinceEpoch() -> Swift.UInt64 - public func asTime() -> Swift.UInt64 - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? @objc deinit } } -public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures +public typealias PeerManager = LightningDevKit.Bindings.PeerManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getTxHash() -> [Swift.UInt8]? - public func setTxHash(val: [Swift.UInt8]) - public func getWitnesses() -> [[Swift.UInt8]] - public func setWitnesses(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") + public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) + public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.SocketAddress?)] + public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public func processEvents() + public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) + public func disconnectByNodeId(nodeId: [Swift.UInt8]) + public func disconnectAllPeers() + public func timerTickOccurred() + public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.SocketAddress]) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf +public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned +public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeSatoshis() -> Swift.UInt64 - public func setFeeSatoshis(val: Swift.UInt64) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? - public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) - public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) - public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public enum NetworkUpdateType { + case ChannelUpdateMessage + case ChannelFailure + case NodeFailure + public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType + public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? + public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? + public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getShortChannelId() -> Swift.UInt64 + public func isPermanent() -> Swift.Bool + @objc deinit + } + @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func isPermanent() -> Swift.Bool + @objc deinit + } } } -public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets +public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func getMinSeenSecret() -> Swift.UInt64 - public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func getTlvFieldnum() -> Swift.UInt64 + public func setTlvFieldnum(val: Swift.UInt64) + public func getSuggestedValue() -> [Swift.UInt8]? + public func setSuggestedValue(val: [Swift.UInt8]?) + public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Path = LightningDevKit.Bindings.Path +public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.RouteHop] - public func setHops(val: [LightningDevKit.Bindings.RouteHop]) - public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? - public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) - public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool - public func feeMsat() -> Swift.UInt64 - public func finalValueMsat() -> Swift.UInt64 - public func finalCltvExpiryDelta() -> Swift.UInt32? + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getOurToSelfDelay() -> Swift.UInt16 + public func setOurToSelfDelay(val: Swift.UInt16) + public func getOurHtlcMinimumMsat() -> Swift.UInt64 + public func setOurHtlcMinimumMsat(val: Swift.UInt64) + public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 + public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) + public func getNegotiateScidPrivacy() -> Swift.Bool + public func setNegotiateScidPrivacy(val: Swift.Bool) + public func getAnnouncedChannel() -> Swift.Bool + public func setAnnouncedChannel(val: Swift.Bool) + public func getCommitUpfrontShutdownPubkey() -> Swift.Bool + public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) + public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 + public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) + public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) + public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 + public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) + public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ +public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? + public func getValue() -> LightningDevKit.Bindings.ClosureReason? @objc deinit } } -public typealias Utxo = LightningDevKit.Bindings.Utxo +public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool - public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo - public func isOwned() -> Swift.Bool + public init() + open func broadcastTransactions(txs: [[Swift.UInt8]]) @objc deinit } } -public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason +public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey extension LightningDevKit.Bindings { - public enum PaymentFailureReason { - case RecipientRejected - case UserAbandoned - case RetriesExhausted - case PaymentExpired - case RouteNotFound - case UnexpectedError - public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(keyMaterial: [Swift.UInt8]) + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias PathFailure = LightningDevKit.Bindings.PathFailure +public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PathFailureType { - case InitialSend - case OnPath - public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType - public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure - public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure - public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFullInformation() -> Swift.Bool + public func setFullInformation(val: Swift.Bool) + public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? - public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> LightningDevKit.Bindings.APIError - @objc deinit - } - @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? - @objc deinit - } } } -@_hasMissingDesignatedInitializers public class LDKExampleClass { - public class func printSomething() - public func printInstance() - @objc deinit -} -public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction +public typealias Result_ReceiveTlvsDecodeErrorZ = LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReceiveTlvsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool - public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) - public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction - public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public func toHolderValueSat() -> Swift.UInt64 - public func toCounterpartyValueSat() -> Swift.UInt64 - public func toHolderScript() -> [Swift.UInt8] - public func toCounterpartyScript() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReceiveTlvs) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReceiveTlvs? @objc deinit } } -public typealias Recipient = LightningDevKit.Bindings.Recipient +public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures extension LightningDevKit.Bindings { - public enum Recipient { - case Node - case PhantomNode - public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setInitialRoutingSyncOptional() + public func setInitialRoutingSyncRequired() + public func initialRoutingSync() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner +public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) - open func write() -> [Swift.UInt8] - public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt - open func disconnectSocket() - open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool - open func hash() -> Swift.UInt64 + public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? @objc deinit } } -public typealias RouteHop = LightningDevKit.Bindings.RouteHop +public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkey() -> [Swift.UInt8] - public func setPubkey(val: [Swift.UInt8]) - public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getFeeMsat() -> Swift.UInt64 - public func setFeeMsat(val: Swift.UInt64) - public func getCltvExpiryDelta() -> Swift.UInt32 - public func setCltvExpiryDelta(val: Swift.UInt32) - public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) + public func getForwardingFeeBaseMsat() -> Swift.UInt32 + public func setForwardingFeeBaseMsat(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure + public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) + public func getAcceptUnderpayingHtlcs() -> Swift.Bool + public func setAcceptUnderpayingHtlcs(val: Swift.Bool) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool + public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_CVec_ECDSASignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_ECDSASignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? + @objc deinit + } +} public typealias BackgroundProcessor = LightningDevKit.Bindings.BackgroundProcessor extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class BackgroundProcessor : LightningDevKit.NativeTypeWrapper { @@ -3664,573 +4499,654 @@ extension LightningDevKit.Bindings { @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `gossipSync`.") public class func start(persister: LightningDevKit.Bindings.Persister, eventHandler: LightningDevKit.Bindings.EventHandler, chainMonitor: LightningDevKit.Bindings.ChainMonitor, channelManager: LightningDevKit.Bindings.ChannelManager, gossipSync: LightningDevKit.Bindings.GossipSync, peerManager: LightningDevKit.Bindings.PeerManager, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.WriteableScore?) -> LightningDevKit.Bindings.BackgroundProcessor @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func join() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func join() -> LightningDevKit.Bindings.Result_NoneIOErrorZ @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func stop() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func stop() -> LightningDevKit.Bindings.Result_NoneIOErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned +public typealias PrintableString = LightningDevKit.Bindings.PrintableString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getSkimmedFeeMsat() -> Swift.UInt64? + public func setSkimmedFeeMsat(val: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey +public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public enum Secp256k1Error { + case IncorrectSignature + case InvalidMessage + case InvalidPublicKey + case InvalidSignature + case InvalidSecretKey + case InvalidSharedSecret + case InvalidRecoveryId + case InvalidTweak + case NotEnoughMemory + case InvalidPublicKeySum + case InvalidParityValue + public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget +extension LightningDevKit.Bindings { + public enum ConfirmationTarget { + case MempoolMinimum + case Background + case Normal + case HighPriority + public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(keyMaterial: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias Offer = LightningDevKit.Bindings.Offer +public typealias Refund = LightningDevKit.Bindings.Refund extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func chains() -> [[Swift.UInt8]] - public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool - public func metadata() -> [Swift.UInt8]? - public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString - public func features() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func supportedQuantity() -> LightningDevKit.Bindings.Quantity - public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool - public func expectsQuantity() -> Swift.Bool - public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +public typealias CreationError = LightningDevKit.Bindings.CreationError +extension LightningDevKit.Bindings { + public enum CreationError { + case DescriptionTooLong + case RouteTooLong + case TimestampOutOfBounds + case InvalidAmount + case MissingRouteHints + case MinFinalCltvExpiryDeltaTooShort + public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum RecentPaymentDetailsType { + case AwaitingInvoice + case Pending + case Fulfilled + case Abandoned + public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType + public class func initWithAwaitingInvoice(paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithPending(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithFulfilled(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithAbandoned(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public func getValueAsAwaitingInvoice() -> LightningDevKit.Bindings.RecentPaymentDetails.AwaitingInvoice? + public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? + public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? + public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + @objc deinit + @_hasMissingDesignatedInitializers public class AwaitingInvoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getTotalMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_PayeePubKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PayeePubKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + @objc deinit + } +} +public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentParameters? + @objc deinit + } +} +public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHop? + public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func contestDelay() -> Swift.UInt16 + public func isOutbound() -> Swift.Bool + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ +public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? + public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp + public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) + public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Payee = LightningDevKit.Bindings.Payee +public typealias Destination = LightningDevKit.Bindings.Destination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PayeeType { - case Blinded - case Clear - public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public enum DestinationType { + case Node + case BlindedPath + public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType - public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee - public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool - public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? - public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? + public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType + public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination + public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination + public func getValueAsNode() -> [Swift.UInt8]? + public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? @objc deinit - @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] - public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] - public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures - public func getFinalCltvExpiryDelta() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish +public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextLocalCommitmentNumber() -> Swift.UInt64 - public func setNextLocalCommitmentNumber(val: Swift.UInt64) - public func getNextRemoteCommitmentNumber() -> Swift.UInt64 - public func setNextRemoteCommitmentNumber(val: Swift.UInt64) - public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? - public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) - public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] - public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) - public func getNextFundingTxid() -> [Swift.UInt8]? - public func setNextFundingTxid(val: [Swift.UInt8]?) - public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? @objc deinit } } -public typealias Sha256 = LightningDevKit.Bindings.Sha256 +public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 + public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool - public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 + public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler +public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) - open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) - open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) - open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) - open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) - open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) - open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) - open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) - open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) - open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) - open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) - open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) - open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) - open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) - open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) - open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) - open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) - open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) - open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) - open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) - open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) - open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) - open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) - open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) - open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) - open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) - open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) - open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - open func getGenesisHashes() -> [[Swift.UInt8]]? - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - @objc deinit + public enum ChannelShutdownState { + case NotShuttingDown + case ShutdownInitiated + case ResolvingHTLCs + case NegotiatingClosingFee + case ShutdownComplete + public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent +public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum BumpTransactionEventType { - case ChannelClose - case HTLCResolution - public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public enum UtxoResultType { + case Sync + case Async + public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType - public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool - public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? - public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? + public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType + public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult + public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult + public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? + public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + @objc deinit + } +} +public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + @objc deinit + } +} +public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getCommitmentTx() -> [Swift.UInt8] - public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 - public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor - public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] - public func getTxLockTime() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor +public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getLatestUpdateId() -> Swift.UInt64 - public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) - public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] - public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) - public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] - public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) - public func getCounterpartyNodeId() -> [Swift.UInt8]? - public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] - public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] + public func txid() -> [Swift.UInt8] + public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction + public func keys() -> LightningDevKit.Bindings.TxCreationKeys + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func revokeableOutputIndex() -> Swift.UInt? + public func buildToLocalJusticeTx(feeratePerKw: Swift.UInt64, destinationScript: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo +public typealias Result_ChannelMonitorUpdateStatusNoneZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateStatusNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures - public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus? @objc deinit } } -public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys +public typealias Result_SocketAddressSocketAddressParseErrorZ = LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressSocketAddressParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getRevocationKey() -> [Swift.UInt8] - public func setRevocationKey(val: [Swift.UInt8]) - public func getBroadcasterHtlcKey() -> [Swift.UInt8] - public func setBroadcasterHtlcKey(val: [Swift.UInt8]) - public func getCountersignatoryHtlcKey() -> [Swift.UInt8] - public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) - public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] - public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) - public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SocketAddressParseError) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SocketAddressParseError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias BindingsError = LightningDevKit.Bindings.BindingsError +public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getDummy() -> Swift.UInt8 + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias Pong = LightningDevKit.Bindings.Pong +public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeSignature() -> [Swift.UInt8] + public func setNodeSignature(val: [Swift.UInt8]) + public func getBitcoinSignature() -> [Swift.UInt8] + public func setBitcoinSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Persist = LightningDevKit.Bindings.Persist +public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ @objc deinit } } -public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? @objc deinit } } -public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime +public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool - public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public func asSeconds() -> Swift.UInt64 - public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAbort = LightningDevKit.Bindings.TxAbort +public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> [Swift.UInt8] - public func setData(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ +public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? @objc deinit } } -public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement +public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeId1() -> LightningDevKit.Bindings.NodeId - public func setNodeId1(val: LightningDevKit.Bindings.NodeId) - public func getNodeId2() -> LightningDevKit.Bindings.NodeId - public func setNodeId2(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func getMinFundingSatoshis() -> Swift.UInt64 + public func setMinFundingSatoshis(val: Swift.UInt64) + public func getMaxFundingSatoshis() -> Swift.UInt64 + public func setMaxFundingSatoshis(val: Swift.UInt64) + public func getMaxHtlcMinimumMsat() -> Swift.UInt64 + public func setMaxHtlcMinimumMsat(val: Swift.UInt64) + public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getMaxChannelReserveSatoshis() -> Swift.UInt64 + public func setMaxChannelReserveSatoshis(val: Swift.UInt64) + public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) + public func getMaxMinimumDepth() -> Swift.UInt32 + public func setMaxMinimumDepth(val: Swift.UInt32) + public func getTrustOwnFunding0conf() -> Swift.Bool + public func setTrustOwnFunding0conf(val: Swift.Bool) + public func getForceAnnouncedChannelPreference() -> Swift.Bool + public func setForceAnnouncedChannelPreference(val: Swift.Bool) + public func getTheirToSelfDelay() -> Swift.UInt16 + public func setTheirToSelfDelay(val: Swift.UInt16) + public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +public typealias MonitorUpdatingPersister = LightningDevKit.Bindings.MonitorUpdatingPersister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdatingPersister : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(kvStore: LightningDevKit.Bindings.KVStore, logger: LightningDevKit.Bindings.Logger, maximumPendingUpdates: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) + public func readAllChannelMonitorsWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public func readChannelMonitorWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, monitorKey: Swift.String) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public func cleanupStaleUpdates(lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func asPersist() -> LightningDevKit.Bindings.Persist + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey +public typealias Persist = LightningDevKit.Bindings.Persist extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8] - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init() + open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus @objc deinit } } -public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig +public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) - public func getForwardingFeeBaseMsat() -> Swift.UInt32 - public func setForwardingFeeBaseMsat(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure - public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) - public func getAcceptUnderpayingHtlcs() -> Swift.Bool - public func setAcceptUnderpayingHtlcs(val: Swift.Bool) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool - public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingCreated? @objc deinit } } -public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath +public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getIntermediateNodes() -> [[Swift.UInt8]] - public func setIntermediateNodes(val: [[Swift.UInt8]]) - public func getDestination() -> LightningDevKit.Bindings.Destination - public func setDestination(val: LightningDevKit.Bindings.Destination) - public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTransaction() -> [Swift.UInt8] + public func setTransaction(val: [Swift.UInt8]) + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ +public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedTail? + public func getValue() -> LightningDevKit.Bindings.TxSignatures? @objc deinit } } -public typealias Description = LightningDevKit.Bindings.Description +public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getRevocationPubkey() -> [Swift.UInt8] + public func setRevocationPubkey(val: [Swift.UInt8]) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool - public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public func intoInner() -> Swift.String + public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage +public typealias KVStore = LightningDevKit.Bindings.KVStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class KVStore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + open func write(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, buf: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func remove(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func list(primaryNamespace: Swift.String, secondaryNamespace: Swift.String) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ @objc deinit } } @@ -4246,1979 +5162,1797 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? - @objc deinit - } -} -public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits +public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFundingSatoshis() -> Swift.UInt64 - public func setMinFundingSatoshis(val: Swift.UInt64) - public func getMaxFundingSatoshis() -> Swift.UInt64 - public func setMaxFundingSatoshis(val: Swift.UInt64) - public func getMaxHtlcMinimumMsat() -> Swift.UInt64 - public func setMaxHtlcMinimumMsat(val: Swift.UInt64) - public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getMaxChannelReserveSatoshis() -> Swift.UInt64 - public func setMaxChannelReserveSatoshis(val: Swift.UInt64) - public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) - public func getMaxMinimumDepth() -> Swift.UInt32 - public func setMaxMinimumDepth(val: Swift.UInt32) - public func getTrustOwnFunding0conf() -> Swift.Bool - public func setTrustOwnFunding0conf(val: Swift.Bool) - public func getForceAnnouncedChannelPreference() -> Swift.Bool - public func setForceAnnouncedChannelPreference(val: Swift.Bool) - public func getTheirToSelfDelay() -> Swift.UInt16 - public func setTheirToSelfDelay(val: Swift.UInt16) - public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func isOwned() -> Swift.Bool + public init() + open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] + open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + open func getDestinationScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ @objc deinit } } -public typealias Confirm = LightningDevKit.Bindings.Confirm +public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func transactionUnconfirmed(txid: [Swift.UInt8]?) - open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) - open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public enum BumpTransactionEventType { + case ChannelClose + case HTLCResolution + public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType + public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool + public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? + public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getCommitmentTx() -> [Swift.UInt8] + public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 + public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor + public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] + public func getTxLockTime() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ +public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger +public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) - public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler - public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider - public func isOwned() -> Swift.Bool - @objc deinit + public enum UtxoLookupError { + case UnknownChain + case UnknownTx + public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures +public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setInitialRoutingSyncOptional() - public func setInitialRoutingSyncRequired() - public func initialRoutingSync() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool + public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public func asSeconds() -> Swift.UInt64 + public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) - public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig - public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] - public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] - public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseAllChannelsBroadcastingLatestTxn() - public func forceCloseAllChannelsWithoutBroadcastingTxn() - public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ - public func abandonPayment(paymentId: [Swift.UInt8]) - public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func processPendingHtlcForwards() - public func timerTickOccurred() - public func failHtlcBackwards(paymentHash: [Swift.UInt8]) - public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) - public func claimFunds(paymentPreimage: [Swift.UInt8]) - public func getOurNodeId() -> [Swift.UInt8] - public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func getPhantomScid() -> Swift.UInt64 - public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints - public func getInterceptScid() -> Swift.UInt64 - public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func getPersistableUpdateFuture() -> LightningDevKit.Bindings.Future - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func initFeatures() -> LightningDevKit.Bindings.InitFeatures - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFee? @objc deinit } } -public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters +public typealias MultiThreadedScoreLockWrite = LightningDevKit.Bindings.MultiThreadedScoreLockWrite extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockWrite : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getValueSatoshis() -> Swift.UInt64 - public func setValueSatoshis(val: Swift.UInt64) - public func getKeysId() -> [Swift.UInt8]? - public func setKeysId(val: [Swift.UInt8]) - public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) - public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) - public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Hostname = LightningDevKit.Bindings.Hostname +public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool - public func len() -> Swift.UInt8 + public func getChannels() -> [Swift.UInt64] + public func setChannels(val: [Swift.UInt64]) + public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) + public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) + public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult +public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UtxoResultType { - case Sync - case Async - public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType - public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult - public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult - public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? - public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannel? @objc deinit } } -public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ +public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Hostname? + public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? @objc deinit } } -public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement +public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeSignature1() -> [Swift.UInt8] - public func setNodeSignature1(val: [Swift.UInt8]) - public func getNodeSignature2() -> [Swift.UInt8] - public func setNodeSignature2(val: [Swift.UInt8]) - public func getBitcoinSignature1() -> [Swift.UInt8] - public func setBitcoinSignature1(val: [Swift.UInt8]) - public func getBitcoinSignature2() -> [Swift.UInt8] - public func setBitcoinSignature2(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] + open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + open func signBolt12InvoiceRequest(invoiceRequest: LightningDevKit.Bindings.UnsignedInvoiceRequest) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signBolt12Invoice(invoice: LightningDevKit.Bindings.UnsignedBolt12Invoice) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ @objc deinit } } -public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ +public typealias Fallback = LightningDevKit.Bindings.Fallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public enum FallbackType { + case SegWitProgram + case PubKeyHash + case ScriptHash + public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType + public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool + public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? + public func getValueAsPubKeyHash() -> [Swift.UInt8]? + public func getValueAsScriptHash() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getVersion() -> Swift.UInt8 + public func getProgram() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHop? + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> Swift.Bool? @objc deinit } } -public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter +public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias +public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8]? - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ @objc deinit } } -public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ +public typealias Result_RecipientOnionFieldsNoneZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> Swift.Bool? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool + public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public func intoInner() -> LightningDevKit.Bindings.RouteHint + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error +public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bech32ErrorType { - case MissingSeparator - case InvalidChecksum - case InvalidLength - case InvalidChar - case InvalidData - case InvalidPadding - case MixedCase - public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType - public func getValueAsInvalidChar() -> Swift.UInt32? - public func getValueAsInvalidData() -> Swift.UInt8? + public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.GraphSyncError? + public func getValue() -> Swift.UInt32? @objc deinit } } -public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate +public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) - public func getForwardingFeeBaseMsat() -> Swift.UInt32? - public func setForwardingFeeBaseMsat(val: Swift.UInt32?) - public func getCltvExpiryDelta() -> Swift.UInt16? - public func setCltvExpiryDelta(val: Swift.UInt16?) - public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? - public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func getValueSatoshis() -> Swift.UInt64 + public func setValueSatoshis(val: Swift.UInt64) + public func getKeysId() -> [Swift.UInt8]? + public func setKeysId(val: [Swift.UInt8]) + public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters + public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit +public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getNetworks() -> [[Swift.UInt8]]? - public func setNetworks(val: [[Swift.UInt8]]?) - public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.NetAddress? - public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.NetAddress?) - public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.NetAddress?) - public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) + public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice + public func signableHash() -> [Swift.UInt8]? + public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature + public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func checkSignature() -> Swift.Bool + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func toStr() -> Swift.String public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus +public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ extension LightningDevKit.Bindings { - public enum ChannelMonitorUpdateStatus { - case Completed - case InProgress - case PermanentFailure - public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + @objc deinit } } -public typealias CreationError = LightningDevKit.Bindings.CreationError +public typealias Wallet = LightningDevKit.Bindings.Wallet extension LightningDevKit.Bindings { - public enum CreationError { - case DescriptionTooLong - case RouteTooLong - case TimestampOutOfBounds - case InvalidAmount - case MissingRouteHints - case MinFinalCltvExpiryDeltaTooShort - public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) + public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor +public typealias Router = LightningDevKit.Bindings.Router extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ @objc deinit } } -public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SignOrCreationError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public func getError() -> LightningDevKit.Bindings.ProbeSendFailure? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? @objc deinit } } -public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ +public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHint? + public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? @objc deinit } } -public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate +public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetworkUpdateType { - case ChannelUpdateMessage - case ChannelFailure - case NodeFailure - public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public enum ErrorActionType { + case DisconnectPeer + case DisconnectPeerWithWarning + case IgnoreError + case IgnoreAndLog + case IgnoreDuplicateGossip + case SendErrorMessage + case SendWarningMessage + public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType - public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? - public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? - public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? + public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType + public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? + public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? + public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? + public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? + public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getShortChannelId() -> Swift.UInt64 - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.WarningMessage @objc deinit } - @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - } -} -public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentSendFailureType { - case ParameterError - case PathParameterError - case AllFailedResendSafe - case DuplicatePayment - case PartialFailure - public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType - public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure - public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? - public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? - public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? - public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? - @objc deinit - @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] - public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters - public func getPaymentId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.WarningMessage + public func getLogLevel() -> LightningDevKit.Bindings.Level @objc deinit } } } -public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? - @objc deinit - } -} -public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ +public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? - @objc deinit - } -} -public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ -extension LightningDevKit.Bindings { - public enum Option_NoneZ { - case Some - case None - public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ +public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? + public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? @objc deinit } } -public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ +public typealias GossipSync = LightningDevKit.Bindings.GossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCDestination? + public enum GossipSyncType { + case P2P + case Rapid + case None + public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType + public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func none() -> LightningDevKit.Bindings.GossipSync + public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? + public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? @objc deinit } } -public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ +public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum HTLCClaim { + case OfferedTimeout + case OfferedPreimage + case AcceptedTimeout + case AcceptedPreimage + case Revocation + public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingCreated? + public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? @objc deinit } } -public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited +public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool - public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public func intoTransaction() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ +public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PathFailure? + public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? @objc deinit } } -public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ +public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + public func getValue() -> LightningDevKit.Bindings.TxAddInput? @objc deinit } } -public typealias WalletSource = LightningDevKit.Bindings.WalletSource +public typealias Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - open func getChangeScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)? @objc deinit } } -public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getData() -> LightningDevKit.Bindings.RawDataPart - public func setData(val: LightningDevKit.Bindings.RawDataPart) - public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func getSrcNodeId() -> [Swift.UInt8] + public func setSrcNodeId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64? + public func setHtlcMinimumMsat(val: Swift.UInt64?) + public func getHtlcMaximumMsat() -> Swift.UInt64? + public func setHtlcMaximumMsat(val: Swift.UInt64?) + public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func paymentHash() -> LightningDevKit.Bindings.Sha256? - public func description() -> LightningDevKit.Bindings.Description? - public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? - public func descriptionHash() -> LightningDevKit.Bindings.Sha256? - public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? - public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func amountPicoBtc() -> Swift.UInt64? - public func currency() -> LightningDevKit.Bindings.Currency + public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate +public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateId() -> Swift.UInt64 - public func setUpdateId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) + public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool + public func addresses() -> [LightningDevKit.Bindings.SocketAddress] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput +public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) public func getSerialId() -> Swift.UInt64 public func setSerialId(val: Swift.UInt64) - public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited - public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) - public func getPrevtxOut() -> Swift.UInt32 - public func setPrevtxOut(val: Swift.UInt32) - public func getSequence() -> Swift.UInt32 - public func setSequence(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func getSats() -> Swift.UInt64 + public func setSats(val: Swift.UInt64) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func call() - @objc deinit - } -} -public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getOurToSelfDelay() -> Swift.UInt16 - public func setOurToSelfDelay(val: Swift.UInt16) - public func getOurHtlcMinimumMsat() -> Swift.UInt64 - public func setOurHtlcMinimumMsat(val: Swift.UInt64) - public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 - public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) - public func getNegotiateScidPrivacy() -> Swift.Bool - public func setNegotiateScidPrivacy(val: Swift.Bool) - public func getAnnouncedChannel() -> Swift.Bool - public func setAnnouncedChannel(val: Swift.Bool) - public func getCommitUpfrontShutdownPubkey() -> Swift.Bool - public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) - public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 - public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) - public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) - public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 - public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) - public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias RouteHint = LightningDevKit.Bindings.RouteHint +public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [LightningDevKit.Bindings.RouteHintHop] - public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) - public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? @objc deinit } } -public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ +public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? + public func getError() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Result_PaymentHashPaymentSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ +public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> [Swift.UInt8]? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents +public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OnionMessageContentsType { - case Offers - case Custom - public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType - public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents - public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents - public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? - public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func call() @objc deinit } } -public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ +public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsType? + public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? @objc deinit } } -public typealias Wallet = LightningDevKit.Bindings.Wallet +public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) - public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource - public func isOwned() -> Swift.Bool + public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) + open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] + open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] + open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func channelKeysId() -> [Swift.UInt8] + open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys @objc deinit } } -public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ +public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? + public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ +public typealias Path = LightningDevKit.Bindings.Path extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func getHops() -> [LightningDevKit.Bindings.RouteHop] + public func setHops(val: [LightningDevKit.Bindings.RouteHop]) + public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? + public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) + public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool + public func feeMsat() -> Swift.UInt64 + public func finalValueMsat() -> Swift.UInt64 + public func finalCltvExpiryDelta() -> Swift.UInt32? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ +public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? @objc deinit } } -public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo +public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [Swift.UInt64] - public func setChannels(val: [Swift.UInt64]) - public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? - public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) - public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) - public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ +public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ +public typealias Description = LightningDevKit.Bindings.Description extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool + public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public func intoInner() -> Swift.String + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor +public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getPerCommitmentNumber() -> Swift.UInt64 - public func setPerCommitmentNumber(val: Swift.UInt64) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment - public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) - public func getPreimage() -> [Swift.UInt8]? - public func setPreimage(val: [Swift.UInt8]?) - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool - public func outpoint() -> LightningDevKit.Bindings.OutPoint - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func txOutput() -> LightningDevKit.Bindings.TxOut - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getIntroductionNodeId() -> [Swift.UInt8] + public func setIntroductionNodeId(val: [Swift.UInt8]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getBlindedHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setBlindedHops(val: [LightningDevKit.Bindings.BlindedHop]) + public init(introductionNodeIdArg: [Swift.UInt8], blindingPointArg: [Swift.UInt8], blindedHopsArg: [LightningDevKit.Bindings.BlindedHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool + public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func oneHopForPayment(payeeNodeId: [Swift.UInt8], payeeTlvs: LightningDevKit.Bindings.ReceiveTlvs, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ +public typealias Route = LightningDevKit.Bindings.Route extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getPaths() -> [LightningDevKit.Bindings.Path] + public func setPaths(val: [LightningDevKit.Bindings.Path]) + public func getRouteParams() -> LightningDevKit.Bindings.RouteParameters? + public func setRouteParams(val: LightningDevKit.Bindings.RouteParameters) + public init(pathsArg: [LightningDevKit.Bindings.Path], routeParamsArg: LightningDevKit.Bindings.RouteParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool + public func getTotalFees() -> Swift.UInt64 + public func getTotalAmount() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getPushMsat() -> Swift.UInt64 - public func setPushMsat(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool +public typealias Shutdown = LightningDevKit.Bindings.Shutdown +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getScriptpubkey() -> [Swift.UInt8] + public func setScriptpubkey(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ +public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.CoinSelection? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedTail? @objc deinit } } -public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> [Swift.UInt8]? + public init(scorer: LightningDevKit.Bindings.ScoreLookUp, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_KeyPairZNoneZ = LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_KeyPairZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ +public typealias EntropySource = LightningDevKit.Bindings.EntropySource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public init() + open func getSecureRandomBytes() -> [Swift.UInt8] @objc deinit } } -public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript +public typealias TxIn = LightningDevKit.Bindings.TxIn extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func intoInner() -> [Swift.UInt8] - public func asLegacyPubkey() -> [Swift.UInt8]? - public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) + public func getWitness() -> [Swift.UInt8] + public func getScriptSig() -> [Swift.UInt8] + public func getSequence() -> Swift.UInt32 + public func getPreviousTxid() -> [Swift.UInt8] + public func getPreviousVout() -> Swift.UInt32 @objc deinit } } -public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ +public typealias ScoreLookUp = LightningDevKit.Bindings.ScoreLookUp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreLookUp : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 @objc deinit } } -public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ +public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? + public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ +public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isInitialSyncComplete() -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OutPoint = LightningDevKit.Bindings.OutPoint +public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public func getIndex() -> Swift.UInt16 - public func setIndex(val: Swift.UInt16) - public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func toChannelId() -> [Swift.UInt8] + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]?) + public func getPaymentMetadata() -> [Swift.UInt8]? + public func setPaymentMetadata(val: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields + public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public func withCustomTlvs(customTlvs: [(Swift.UInt64, [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public func customTlvs() -> [(Swift.UInt64, [Swift.UInt8])] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SignatureNoneZ = LightningDevKit.Bindings.Result_SignatureNoneZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SignatureNoneZ + public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? @objc deinit } } -public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ +public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? + public init() + public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOffered() -> Swift.Bool - public func setOffered(val: Swift.Bool) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getTransactionOutputIndex() -> Swift.UInt32? - public func setTransactionOutputIndex(val: Swift.UInt32?) - public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) - public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getChannelTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func setChannelTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64, channelTransactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool + public func witnessScript() -> [Swift.UInt8]? + public func maxWitnessLength() -> Swift.UInt public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Refund = LightningDevKit.Bindings.Refund +public typealias Logger = LightningDevKit.Bindings.Logger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func log(record: LightningDevKit.Bindings.Record) + @objc deinit + } +} +public typealias Network = LightningDevKit.Bindings.Network +extension LightningDevKit.Bindings { + public enum Network { + case Bitcoin + case Testnet + case Regtest + case Signet + public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } +} +public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? - public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func metadata() -> [Swift.UInt8] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures public func quantity() -> Swift.UInt64? public func payerId() -> [Swift.UInt8] public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer +public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func debugLogLiquidityStats() - public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? - public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? - public func asScore() -> LightningDevKit.Bindings.Score + public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? + public func listChannels() -> [Swift.UInt64] + public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? + public func listNodes() -> [LightningDevKit.Bindings.NodeId] + public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.SocketAddress]? + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) + public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig + public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] + public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] + public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseAllChannelsBroadcastingLatestTxn() + public func forceCloseAllChannelsWithoutBroadcastingTxn() + public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ + public func abandonPayment(paymentId: [Swift.UInt8]) + public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public func sendSpontaneousPreflightProbes(nodeId: [Swift.UInt8], amountMsat: Swift.UInt64, finalCltvExpiryDelta: Swift.UInt32, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func sendPreflightProbes(routeParams: LightningDevKit.Bindings.RouteParameters, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func batchFundingTransactionGenerated(temporaryChannels: [([Swift.UInt8], [Swift.UInt8])], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func processPendingHtlcForwards() + public func timerTickOccurred() + public func failHtlcBackwards(paymentHash: [Swift.UInt8]) + public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) + public func claimFunds(paymentPreimage: [Swift.UInt8]) + public func claimFundsWithKnownCustomTlvs(paymentPreimage: [Swift.UInt8]) + public func getOurNodeId() -> [Swift.UInt8] + public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func getPhantomScid() -> Swift.UInt64 + public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints + public func getInterceptScid() -> Swift.UInt64 + public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func getEventOrPersistenceNeededFuture() -> LightningDevKit.Bindings.Future + public func getAndClearNeedsPersistence() -> Swift.Bool + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func initFeatures() -> LightningDevKit.Bindings.InitFeatures + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ +public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? + public init() + open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? + open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ @objc deinit } } -public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys +public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func asUnixTimestamp() -> Swift.UInt64 + public func asDurationSinceEpoch() -> Swift.UInt64 + public func asTime() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Watch = LightningDevKit.Bindings.Watch +public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] - @objc deinit + public enum Bolt11SemanticError { + case NoPaymentHash + case MultiplePaymentHashes + case NoDescription + case MultipleDescriptions + case NoPaymentSecret + case MultiplePaymentSecrets + case InvalidFeatures + case InvalidRecoveryId + case InvalidSignature + case ImpreciseAmount + public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler +public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) - open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? @objc deinit } } -public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +public typealias Utxo = LightningDevKit.Bindings.Utxo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool + public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias LightningError = LightningDevKit.Bindings.LightningError +public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func setErr(val: Swift.String) - public func getAction() -> LightningDevKit.Bindings.ErrorAction - public func setAction(val: LightningDevKit.Bindings.ErrorAction) - public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ +public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RoutingFees? + public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? @objc deinit } } -public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ +public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeFeatures? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getPaymentPreimage() -> [Swift.UInt8]? + public func setPaymentPreimage(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler +public typealias Ping = LightningDevKit.Bindings.Ping extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? - open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public func getPonglen() -> Swift.UInt16 + public func setPonglen(val: Swift.UInt16) + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlockHash() -> [Swift.UInt8]? - public func setBlockHash(val: [Swift.UInt8]?) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getScriptPubkey() -> [Swift.UInt8] - public func setScriptPubkey(val: [Swift.UInt8]) - public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] + public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) + public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] + public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) + public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] + public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) + public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] + public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) + public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? + public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) + public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned + public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) + public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) + public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Event? @objc deinit } } -public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ +public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxSignatures? + public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) + open func write() -> [Swift.UInt8] + public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner @objc deinit } } -public typealias Result_CVec_SignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ +public typealias DecodeError = LightningDevKit.Bindings.DecodeError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_SignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? + public enum DecodeErrorType { + case UnknownVersion + case UnknownRequiredFeature + case InvalidValue + case ShortRead + case BadLengthDescriptor + case Io + case UnsupportedCompression + public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType + public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError + public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError + public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError + public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError + public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError + public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError + public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError + public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool + public func getValueAsIo() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ +public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getPushMsat() -> Swift.UInt64 + public func setPushMsat(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ +public typealias PaymentError = LightningDevKit.Bindings.PaymentError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? + public enum PaymentErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError + public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError + public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? @objc deinit } } -public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ +public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? + public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? @objc deinit } } -public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters +public typealias Packet = LightningDevKit.Bindings.Packet extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Packet : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNetwork() -> LightningDevKit.Bindings.Network - public func setNetwork(val: LightningDevKit.Bindings.Network) - public func getBestBlock() -> LightningDevKit.Bindings.BestBlock - public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) - public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) + public func getVersion() -> Swift.UInt8 + public func setVersion(val: Swift.UInt8) + public func getPublicKey() -> [Swift.UInt8] + public func setPublicKey(val: [Swift.UInt8]) + public func getHopData() -> [Swift.UInt8] + public func setHopData(val: [Swift.UInt8]) + public func getHmac() -> [Swift.UInt8]? + public func setHmac(val: [Swift.UInt8]) + public init(versionArg: Swift.UInt8, publicKeyArg: [Swift.UInt8], hopDataArg: [Swift.UInt8], hmacArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Packet, b: LightningDevKit.Bindings.Packet) -> Swift.Bool + public func write() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - @objc deinit - } + public class func getLDKSwiftBindingsSerializationHash() -> Swift.String + public class func getLDKSwiftBindingsVersion() -> Swift.String + public class func getLDKSwiftBindingsCommitHash() -> Swift.String } -public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor +public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) - public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getBaseMsat() -> Swift.UInt32 + public func setBaseMsat(val: Swift.UInt32) + public func getProportionalMillionths() -> Swift.UInt32 + public func setProportionalMillionths(val: Swift.UInt32) + public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider +public typealias Listen = LightningDevKit.Bindings.Listen extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage + open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) + open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) @objc deinit } } -public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ +public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PrivateRoute? @objc deinit } } -public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ +public typealias FilesystemStore = LightningDevKit.Bindings.FilesystemStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FilesystemStore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + public init(dataDir: Swift.String) + public func getDataDir() -> Swift.String + public func asKVStore() -> LightningDevKit.Bindings.KVStore + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph +public typealias EventHandler = LightningDevKit.Bindings.EventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? - public func listChannels() -> [Swift.UInt64] - public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? - public func listNodes() -> [LightningDevKit.Bindings.NodeId] - public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.NetAddress]? - public func isOwned() -> Swift.Bool + public init() + open func handleEvent(event: LightningDevKit.Bindings.Event) @objc deinit } } -public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner +public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingKey() -> [Swift.UInt8]? - public func setFundingKey(val: [Swift.UInt8]) - public func getRevocationBaseKey() -> [Swift.UInt8]? - public func setRevocationBaseKey(val: [Swift.UInt8]) - public func getPaymentKey() -> [Swift.UInt8]? - public func setPaymentKey(val: [Swift.UInt8]) - public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? - public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) - public func getHtlcBaseKey() -> [Swift.UInt8]? - public func setHtlcBaseKey(val: [Swift.UInt8]) - public func getCommitmentSeed() -> [Swift.UInt8]? - public func setCommitmentSeed(val: [Swift.UInt8]) - public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) - public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func counterpartySelectedContestDelay() -> Swift.UInt16 - public func holderSelectedContestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner - public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner - public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) - public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice - public func signableHash() -> [Swift.UInt8]? - public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature - public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public func checkSignature() -> Swift.Bool - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func toStr() -> Swift.String + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice +public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func description() -> LightningDevKit.Bindings.PrintableString - public func createdAt() -> Swift.UInt64 - public func relativeExpiry() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func paymentHash() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func signingPubkey() -> [Swift.UInt8] - public func signableHash() -> [Swift.UInt8] - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> Swift.Bool - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? @objc deinit } } -public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ +public typealias MultiThreadedScoreLockRead = LightningDevKit.Bindings.MultiThreadedScoreLockRead extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockRead : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OnionMessage? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Event = LightningDevKit.Bindings.Event +public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EventType { - case FundingGenerationReady - case PaymentClaimable - case PaymentClaimed - case PaymentSent - case PaymentFailed - case PaymentPathSuccessful - case PaymentPathFailed - case ProbeSuccessful - case ProbeFailed - case PendingHTLCsForwardable - case HTLCIntercepted - case SpendableOutputs - case PaymentForwarded - case ChannelPending - case ChannelReady - case ChannelClosed - case DiscardFunding - case OpenChannelRequest - case HTLCHandlingFailed - case BumpTransaction - public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Event.EventType - public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8], viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Event - public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8], nextChannelId: [Swift.UInt8], feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event - public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason) -> LightningDevKit.Bindings.Event - public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event - public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event - public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? - public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? - public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? - public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? - public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? - public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? - public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? - public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? - public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? - public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? - public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? - public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? - public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? - public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? - public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? - public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? - public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? - public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? - public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? - public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) + public func getForwardingFeeBaseMsat() -> Swift.UInt32? + public func setForwardingFeeBaseMsat(val: Swift.UInt32?) + public func getCltvExpiryDelta() -> Swift.UInt16? + public func setCltvExpiryDelta(val: Swift.UInt16?) + public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + @objc deinit + } +} +public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OutPoint? + @objc deinit + } +} +public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + @objc deinit + } +} +public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? + @objc deinit + } +} +public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SendError? + @objc deinit + } +} +public typealias TxAbort = LightningDevKit.Bindings.TxAbort +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> [Swift.UInt8] + public func setData(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelValueSatoshis() -> Swift.UInt64 - public func getOutputScript() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields - public func getAmountMsat() -> Swift.UInt64 - public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - public func getViaChannelId() -> [Swift.UInt8] - public func getViaUserChannelId() -> [Swift.UInt8]? - public func getClaimDeadline() -> Swift.UInt32? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getAmountMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentPreimage() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getFeePaidMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8]? - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentFailedPermanently() -> Swift.Bool - public func getFailure() -> LightningDevKit.Bindings.PathFailure - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTimeForwardable() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getInterceptId() -> [Swift.UInt8] - public func getRequestedNextHopScid() -> Swift.UInt64 - public func getPaymentHash() -> [Swift.UInt8] - public func getInboundAmountMsat() -> Swift.UInt64 - public func getExpectedOutboundAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getNextChannelId() -> [Swift.UInt8] - public func getFeeEarnedMsat() -> Swift.UInt64? - public func getClaimFromOnchainTx() -> Swift.Bool - public func getOutboundAmountForwardedMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getFormerTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.ClosureReason - @objc deinit - } - @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getTransaction() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingSatoshis() -> Swift.UInt64 - public func getPushMsat() -> Swift.UInt64 - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination - @objc deinit - } } } public typealias InvoiceRequestFeatures = LightningDevKit.Bindings.InvoiceRequestFeatures @@ -6226,880 +6960,1033 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class InvoiceRequestFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + @objc deinit + } +} +public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getData() -> LightningDevKit.Bindings.RawDataPart + public func setData(val: LightningDevKit.Bindings.RawDataPart) + public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func paymentHash() -> LightningDevKit.Bindings.Sha256? + public func description() -> LightningDevKit.Bindings.Description? + public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? + public func descriptionHash() -> LightningDevKit.Bindings.Sha256? + public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? + public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func amountPicoBtc() -> Swift.UInt64? + public func currency() -> LightningDevKit.Bindings.Currency + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getEnabled() -> Swift.Bool + public func setEnabled(val: Swift.Bool) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? + public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) + public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func setKeysendOptional() + public func setKeysendRequired() + public func supportsKeysend() -> Swift.Bool + public func requiresKeysend() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteParameters? @objc deinit } } -public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Offer? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHop? @objc deinit } } -public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage +public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func getTxHash() -> [Swift.UInt8]? + public func setTxHash(val: [Swift.UInt8]) + public func getWitnesses() -> [[Swift.UInt8]] + public func setWitnesses(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ +public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func getIntermediateNodes() -> [[Swift.UInt8]] + public func setIntermediateNodes(val: [[Swift.UInt8]]) + public func getDestination() -> LightningDevKit.Bindings.Destination + public func setDestination(val: LightningDevKit.Bindings.Destination) + public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [LightningDevKit.Bindings.Utxo]? + @objc deinit + } +} +@_hasMissingDesignatedInitializers public class LDKExampleClass { + public class func printSomething() + public func printInstance() + @objc deinit +} +public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + @objc deinit + } +} +public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeInfo? + public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? @objc deinit } } -public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction +public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ErrorActionType { - case DisconnectPeer - case DisconnectPeerWithWarning - case IgnoreError - case IgnoreAndLog - case IgnoreDuplicateGossip - case SendErrorMessage - case SendWarningMessage - public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType - public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? - public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? - public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? - public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? - public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeSatoshis() -> Swift.UInt64 + public func setFeeSatoshis(val: Swift.UInt64) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) + public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) + public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - public func getLogLevel() -> LightningDevKit.Bindings.Level - @objc deinit - } } } -public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer +public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer - public func asScore() -> LightningDevKit.Bindings.Score + public func getA() -> [Swift.UInt8]? + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPreimageAPIErrorZ = LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ +public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPreimageAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? + public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters + public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public func getMaxTotalRoutingFeeMsat() -> Swift.UInt64? + public func setMaxTotalRoutingFeeMsat(val: Swift.UInt64?) + public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64, maxTotalRoutingFeeMsatArg: Swift.UInt64?) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public class func initWithPaymentParamsAndValue(paymentParams: LightningDevKit.Bindings.PaymentParameters, finalValueMsat: Swift.UInt64) -> LightningDevKit.Bindings.RouteParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ +public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? + public enum SignOrCreationErrorType { + case SignError + case CreationError + public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType + public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError + public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError + public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? @objc deinit } } -public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingSigned? + public init() + open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult @objc deinit } } -public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints +public enum NetworkGraphArgument { + case serialized([Swift.UInt8]) + case instance(LightningDevKit.NetworkGraph) +} +public struct ChannelManagerConstructionParameters { + public var config: LightningDevKit.UserConfig + public var entropySource: LightningDevKit.EntropySource + public var nodeSigner: LightningDevKit.NodeSigner + public var signerProvider: LightningDevKit.SignerProvider + public var feeEstimator: LightningDevKit.FeeEstimator + public var chainMonitor: LightningDevKit.ChainMonitor + public var txBroadcaster: LightningDevKit.BroadcasterInterface + public var enableP2PGossip: Swift.Bool + public var scorer: LightningDevKit.MultiThreadedLockableScore? + public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? + public var payerRetries: LightningDevKit.Bindings.Retry + public var logger: LightningDevKit.Logger + public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt32(3))) +} +@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { + final public let channelManager: LightningDevKit.ChannelManager + final public let channel_manager_latest_block_hash: [Swift.UInt8]? + public var netGraph: LightningDevKit.NetworkGraph? { + get + } + final public let peerManager: LightningDevKit.PeerManager + public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { + get + } + public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws + public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) + public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) + public func interrupt() + public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler + @objc deinit +} +public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { + func handleEvent(event: LightningDevKit.Event) +} +@_hasMissingDesignatedInitializers public class TCPPeerHandler { + public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool + public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool + @objc deinit +} +public typealias KeysManager = LightningDevKit.Bindings.KeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) - public func getPhantomScid() -> Swift.UInt64 - public func setPhantomScid(val: Swift.UInt64) - public func getRealNodePubkey() -> [Swift.UInt8] - public func setRealNodePubkey(val: [Swift.UInt8]) - public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) + public func getNodeSecretKey() -> [Swift.UInt8] + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ +public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias UserConfig = LightningDevKit.Bindings.UserConfig +public typealias Filter = LightningDevKit.Bindings.Filter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig - public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) - public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) - public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig - public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) - public func getAcceptForwardsToPrivChannels() -> Swift.Bool - public func setAcceptForwardsToPrivChannels(val: Swift.Bool) - public func getAcceptInboundChannels() -> Swift.Bool - public func setAcceptInboundChannels(val: Swift.Bool) - public func getManuallyAcceptInboundChannels() -> Swift.Bool - public func setManuallyAcceptInboundChannels(val: Swift.Bool) - public func getAcceptInterceptHtlcs() -> Swift.Bool - public func setAcceptInterceptHtlcs(val: Swift.Bool) - public func getAcceptMppKeysend() -> Swift.Bool - public func setAcceptMppKeysend(val: Swift.Bool) - public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) - public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig - public func isOwned() -> Swift.Bool + public init() + open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) + open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) @objc deinit } } -public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ +public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.Description? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? @objc deinit } } -public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 +public typealias Sha256 = LightningDevKit.Bindings.Sha256 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool + public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ +public typealias BindingsError = LightningDevKit.Bindings.BindingsError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + public func getDummy() -> Swift.UInt8 @objc deinit } } -public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure -extension LightningDevKit.Bindings { - public enum RetryableSendFailure { - case PaymentExpired - case RouteNotFound - case DuplicatePayment - public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange +public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public func getSyncComplete() -> Swift.Bool - public func setSyncComplete(val: Swift.Bool) - public func getShortChannelIds() -> [Swift.UInt64] - public func setShortChannelIds(val: [Swift.UInt64]) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) - public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDetails? @objc deinit } } -public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +public typealias APIError = LightningDevKit.Bindings.APIError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RecentPaymentDetailsType { - case Pending - case Fulfilled - case Abandoned - public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public enum APIErrorType { + case APIMisuseError + case FeeRateTooHigh + case InvalidRoute + case ChannelUnavailable + case MonitorUpdateInProgress + case IncompatibleShutdownScript + public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType - public class func initWithPending(paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithFulfilled(paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithAbandoned(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails - public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? - public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? - public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType + public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError + public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError + public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError + public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? + public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? + public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? + public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? + public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? @objc deinit - @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] - public func getTotalMsat() -> Swift.UInt64 + public func getErr() -> Swift.String @objc deinit } - @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8]? + public func getErr() -> Swift.String + public func getFeerate() -> Swift.UInt32 @objc deinit } - @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getScript() -> LightningDevKit.Bindings.ShutdownScript @objc deinit } } } -public typealias Record = LightningDevKit.Bindings.Record +public typealias TxComplete = LightningDevKit.Bindings.TxComplete extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLevel() -> LightningDevKit.Bindings.Level - public func setLevel(val: LightningDevKit.Bindings.Level) - public func getArgs() -> Swift.String - public func setArgs(val: Swift.String) - public func getModulePath() -> Swift.String - public func setModulePath(val: Swift.String) - public func getFile() -> Swift.String - public func setFile(val: Swift.String) - public func getLine() -> Swift.UInt32 - public func setLine(val: Swift.UInt32) + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ +public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getBasePenaltyMsat() -> Swift.UInt64 + public func setBasePenaltyMsat(val: Swift.UInt64) + public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getAntiProbingPenaltyMsat() -> Swift.UInt64 + public func setAntiProbingPenaltyMsat(val: Swift.UInt64) + public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 + public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) + public func getLinearSuccessProbability() -> Swift.Bool + public func setLinearSuccessProbability(val: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters + public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) + public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) + public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) + public func clearManualPenalties() + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler +public typealias Result_C2Tuple_CVec_u8ZusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_CVec_u8ZusizeZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? - public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) - public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? - public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) - public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? - public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) - public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? - public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) - public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], Swift.UInt)? @objc deinit } } -public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields +public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentSecret() -> [Swift.UInt8]? - public func setPaymentSecret(val: [Swift.UInt8]?) - public func getPaymentMetadata() -> [Swift.UInt8]? - public func setPaymentMetadata(val: [Swift.UInt8]?) - public init(paymentSecretArg: [Swift.UInt8]?, paymentMetadataArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields - public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity +public typealias ForwardTlvs = LightningDevKit.Bindings.ForwardTlvs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ForwardTlvs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EffectiveCapacityType { - case ExactLiquidity - case AdvertisedMaxHTLC - case Total - case Infinite - case HintMaxHTLC - case Unknown - public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType - public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity - public func asMsat() -> Swift.UInt64 - public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? - public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? - public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? - public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getPaymentRelay() -> LightningDevKit.Bindings.PaymentRelay + public func setPaymentRelay(val: LightningDevKit.Bindings.PaymentRelay) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(shortChannelIdArg: Swift.UInt64, paymentRelayArg: LightningDevKit.Bindings.PaymentRelay, paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getLiquidityMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getCapacityMsat() -> Swift.UInt64 - public func getHtlcMaximumMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } } } -public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager +public typealias OutPoint = LightningDevKit.Bindings.OutPoint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func getNodeSecretKey() -> [Swift.UInt8] - public func getPhantomNodeSecretKey() -> [Swift.UInt8] + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public func getIndex() -> Swift.UInt16 + public func setIndex(val: Swift.UInt16) + public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func toChannelId() -> [Swift.UInt8] + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ +public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? + public func getValue() -> LightningDevKit.Bindings.TxAbort? @objc deinit } } -public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ +public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPath? + public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? @objc deinit } } -public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ +public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? + public func getUpdateId() -> Swift.UInt64 + public func setUpdateId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ +public typealias Persister = LightningDevKit.Bindings.Persister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosureReason? + public init() + open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneIOErrorZ @objc deinit } } -public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFeeSatoshis() -> Swift.UInt64 - public func setMinFeeSatoshis(val: Swift.UInt64) - public func getMaxFeeSatoshis() -> Swift.UInt64 - public func setMaxFeeSatoshis(val: Swift.UInt64) - public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public func getSyncComplete() -> Swift.Bool + public func setSyncComplete(val: Swift.Bool) + public func getShortChannelIds() -> [Swift.UInt64] + public func setShortChannelIds(val: [Swift.UInt64]) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) + public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction +public typealias Score = LightningDevKit.Bindings.Score +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(scoreLookUp: LightningDevKit.Bindings.ScoreLookUp, scoreUpdate: LightningDevKit.Bindings.ScoreUpdate) + open func write() -> [Swift.UInt8] + public func getScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func getScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + @objc deinit + } +} +public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + @objc deinit + } +} +public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func tlvType() -> Swift.UInt64 + open func write() -> [Swift.UInt8] + @objc deinit + } +} +public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTransaction() -> [Swift.UInt8] - public func setTransaction(val: [Swift.UInt8]) - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? @objc deinit } } -public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError +public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] + public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) + public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? + public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) + public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters +public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getSelectedContestDelay() -> Swift.UInt16 - public func setSelectedContestDelay(val: Swift.UInt16) - public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ +public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Event? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) + public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) + public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ +public typealias VerifiedInvoiceRequest = LightningDevKit.Bindings.VerifiedInvoiceRequest extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class VerifiedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? + public func getKeys() -> [Swift.UInt8]? + public func setKeys(val: [Swift.UInt8]?) + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ +public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValue() -> LightningDevKit.Bindings.Hostname? @objc deinit } } -public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated +public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingTxid() -> [Swift.UInt8]? - public func setFundingTxid(val: [Swift.UInt8]) - public func getFundingOutputIndex() -> Swift.UInt16 - public func setFundingOutputIndex(val: Swift.UInt16) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeInfo? @objc deinit } } -public enum NetworkGraphArgument { - case serialized([Swift.UInt8]) - case instance(LightningDevKit.NetworkGraph) -} -public struct ChannelManagerConstructionParameters { - public var config: LightningDevKit.UserConfig - public var entropySource: LightningDevKit.EntropySource - public var nodeSigner: LightningDevKit.NodeSigner - public var signerProvider: LightningDevKit.SignerProvider - public var feeEstimator: LightningDevKit.FeeEstimator - public var chainMonitor: LightningDevKit.ChainMonitor - public var txBroadcaster: LightningDevKit.BroadcasterInterface - public var enableP2PGossip: Swift.Bool - public var scorer: LightningDevKit.MultiThreadedLockableScore? - public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? - public var payerRetries: LightningDevKit.Bindings.Retry - public var logger: LightningDevKit.Logger - public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt(3))) -} -@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { - final public let channelManager: LightningDevKit.ChannelManager - final public let channel_manager_latest_block_hash: [Swift.UInt8]? - public var netGraph: LightningDevKit.NetworkGraph? { - get - } - final public let peerManager: LightningDevKit.PeerManager - public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { - get - } - public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws - public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) - public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) - public func interrupt() - public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler - @objc deinit -} -public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { - func handleEvent(event: LightningDevKit.Event) -} -@_hasMissingDesignatedInitializers public class TCPPeerHandler { - public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool - public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool - @objc deinit -} -public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC +public typealias Result_NoneIOErrorZ = LightningDevKit.Bindings.Result_NoneIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getPaymentPreimage() -> [Swift.UInt8]? - public func setPaymentPreimage(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias IOError = LightningDevKit.Bindings.IOError +public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ extension LightningDevKit.Bindings { - public enum IOError { - case NotFound - case PermissionDenied - case ConnectionRefused - case ConnectionReset - case ConnectionAborted - case NotConnected - case AddrInUse - case AddrNotAvailable - case BrokenPipe - case AlreadyExists - case WouldBlock - case InvalidInput - case InvalidData - case TimedOut - case WriteZero - case Interrupted - case Other - case UnexpectedEof - public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.CoinSelection? + @objc deinit } } -public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ +public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Ping? + public func getFundingKey() -> [Swift.UInt8]? + public func setFundingKey(val: [Swift.UInt8]) + public func getRevocationBaseKey() -> [Swift.UInt8]? + public func setRevocationBaseKey(val: [Swift.UInt8]) + public func getPaymentKey() -> [Swift.UInt8]? + public func setPaymentKey(val: [Swift.UInt8]) + public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? + public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) + public func getHtlcBaseKey() -> [Swift.UInt8]? + public func setHtlcBaseKey(val: [Swift.UInt8]) + public func getCommitmentSeed() -> [Swift.UInt8]? + public func setCommitmentSeed(val: [Swift.UInt8]) + public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) + public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys? + public func counterpartySelectedContestDelay() -> Swift.UInt16? + public func holderSelectedContestDelay() -> Swift.UInt16? + public func isOutbound() -> Swift.Bool? + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getSkimmedFeeMsat() -> Swift.UInt64? - public func setSkimmedFeeMsat(val: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public func getShortChannelIdAlias() -> Swift.UInt64? + public func setShortChannelIdAlias(val: Swift.UInt64?) + public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MonitorEventType { - case HTLCEvent - case CommitmentTxConfirmed - case Completed - case UpdateFailed - public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType - public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCommitmentTxConfirmed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithUpdateFailed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? - public func getValueAsCommitmentTxConfirmed() -> LightningDevKit.Bindings.OutPoint? - public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? - public func getValueAsUpdateFailed() -> LightningDevKit.Bindings.OutPoint? + public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxInitRbf? @objc deinit - @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - public func getMonitorUpdateId() -> Swift.UInt64 - @objc deinit - } } } -public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + public func getValue() -> LightningDevKit.Bindings.HTLCDestination? @objc deinit } } @@ -7120,373 +8007,189 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) - public func getGenesisHash() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) - public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph - public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? - public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) - public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func channelFailedPermanent(shortChannelId: Swift.UInt64) - public func nodeFailedPermanent(nodeId: [Swift.UInt8]) - public func removeStaleChannelsAndTracking() - public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) - public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Quantity = LightningDevKit.Bindings.Quantity +public typealias Result_ThirtyTwoBytesPaymentErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Shutdown = LightningDevKit.Bindings.Shutdown +public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getScriptpubkey() -> [Swift.UInt8] - public func setScriptpubkey(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? @objc deinit } } -public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo +public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getNodeOne() -> LightningDevKit.Bindings.NodeId - public func setNodeOne(val: LightningDevKit.Bindings.NodeId) - public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getNodeTwo() -> LightningDevKit.Bindings.NodeId - public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) - public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getCapacitySats() -> Swift.UInt64? - public func setCapacitySats(val: Swift.UInt64?) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool - public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? @objc deinit } } -public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError +public typealias TxOut = LightningDevKit.Bindings.TxOut extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ParseOrSemanticErrorType { - case ParseError - case SemanticError - public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType - public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) + public func getScriptPubkey() -> [Swift.UInt8] + public func getValue() -> Swift.UInt64 @objc deinit } } -@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { - public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - @objc deinit - open var hashValue: Swift.Int { - get - } -} -@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { - public func activate() -> Self - public func activateOnce() -> Self - @objc deinit -} -@_hasMissingDesignatedInitializers public class Bindings { - public enum PrintSeverity : Swift.UInt { - case DEBUG - case WARNING - case ERROR - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { - get - } - } - public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) - public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) - public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer - public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper - public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String - public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func ldkGetCompiledVersion() -> Swift.String - public class func ldkCBindingsGetCompiledVersion() -> Swift.String - public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool - public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] - public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures - public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] - public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] - public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] - public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] - public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] - public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 - public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.Score, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") - public class func readBlockHashChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func readBlockHashChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - @objc deinit -} -@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { - public init() - public func getPointer() -> Swift.UnsafeMutableRawPointer - @objc deinit -} -public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo +public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) - public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool - public func addresses() -> [LightningDevKit.Bindings.NetAddress] + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsInit? + public func getValue() -> LightningDevKit.Bindings.PathFailure? @objc deinit } } -public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop +public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) + open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader @objc deinit } } -public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice +public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func signingPubkey() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOk() -> Swift.Bool @objc deinit } } -public typealias APIError = LightningDevKit.Bindings.APIError +public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum APIErrorType { - case APIMisuseError - case FeeRateTooHigh - case InvalidRoute - case ChannelUnavailable - case MonitorUpdateInProgress - case IncompatibleShutdownScript - public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType - public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError - public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError - public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError - public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? - public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? - public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? - public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? - public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? + public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) + open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider @objc deinit - @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func getFeerate() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getScript() -> LightningDevKit.Bindings.ShutdownScript - @objc deinit - } } } -public typealias Result_NoneErrorZ = LightningDevKit.Bindings.Result_NoneErrorZ +public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? @objc deinit } } -public typealias NetAddress = LightningDevKit.Bindings.NetAddress +public typealias SocketAddress = LightningDevKit.Bindings.SocketAddress extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetAddress : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SocketAddress : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetAddressType { - case IPv4 - case IPv6 + public enum SocketAddressType { + case TcpIpV4 + case TcpIpV6 case OnionV2 case OnionV3 case Hostname - public static func == (a: LightningDevKit.Bindings.NetAddress.NetAddressType, b: LightningDevKit.Bindings.NetAddress.NetAddressType) -> Swift.Bool + public static func == (a: LightningDevKit.Bindings.SocketAddress.SocketAddressType, b: LightningDevKit.Bindings.SocketAddress.SocketAddressType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetAddress.NetAddressType - public class func initWithIpv4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithIpv6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func eq(a: LightningDevKit.Bindings.NetAddress, b: LightningDevKit.Bindings.NetAddress) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func getValueAsIPv4() -> LightningDevKit.Bindings.NetAddress.IPv4? - public func getValueAsIPv6() -> LightningDevKit.Bindings.NetAddress.IPv6? + public func getValueType() -> LightningDevKit.Bindings.SocketAddress.SocketAddressType + public class func initWithTcpIpV4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithTcpIpV6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func eq(a: LightningDevKit.Bindings.SocketAddress, b: LightningDevKit.Bindings.SocketAddress) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func getValueAsTcpIpV4() -> LightningDevKit.Bindings.SocketAddress.TcpIpV4? + public func getValueAsTcpIpV6() -> LightningDevKit.Bindings.SocketAddress.TcpIpV6? public func getValueAsOnionV2() -> [Swift.UInt8]? - public func getValueAsOnionV3() -> LightningDevKit.Bindings.NetAddress.OnionV3? - public func getValueAsHostname() -> LightningDevKit.Bindings.NetAddress.Hostname? + public func getValueAsOnionV3() -> LightningDevKit.Bindings.SocketAddress.OnionV3? + public func getValueAsHostname() -> LightningDevKit.Bindings.SocketAddress.Hostname? @objc deinit - @_hasMissingDesignatedInitializers public class IPv4 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV4 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] public func getPort() -> Swift.UInt16 @objc deinit } - @_hasMissingDesignatedInitializers public class IPv6 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV6 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] @@ -7511,1396 +8214,1367 @@ extension LightningDevKit.Bindings { } } } -public typealias NodeId = LightningDevKit.Bindings.NodeId +public typealias RouteHop = LightningDevKit.Bindings.RouteHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId - public func asSlice() -> [Swift.UInt8] - public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public func getPubkey() -> [Swift.UInt8] + public func setPubkey(val: [Swift.UInt8]) + public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getFeeMsat() -> Swift.UInt64 + public func setFeeMsat(val: Swift.UInt64) + public func getCltvExpiryDelta() -> Swift.UInt32 + public func setCltvExpiryDelta(val: Swift.UInt32) + public func getMaybeAnnouncedChannel() -> Swift.Bool + public func setMaybeAnnouncedChannel(val: Swift.Bool) + public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32, maybeAnnouncedChannelArg: Swift.Bool) public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ +public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) + public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] + public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] + public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] + public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func getUpdateFuture() -> LightningDevKit.Bindings.Future + public func rebroadcastPendingClaims() + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func asWatch() -> LightningDevKit.Bindings.Watch + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstTimestamp() -> Swift.UInt32 + public func setFirstTimestamp(val: Swift.UInt32) + public func getTimestampRange() -> Swift.UInt32 + public func setTimestampRange(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + @objc deinit + } +} +public typealias Result_RetryDecodeErrorZ = LightningDevKit.Bindings.Result_RetryDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RetryDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddInput? + public func getValue() -> LightningDevKit.Bindings.Retry? @objc deinit } } -public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate +public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] - public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) - public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] - public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) - public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] - public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) - public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] - public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) - public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? - public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) - public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned - public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) - public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) - public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> Swift.Bool? + @objc deinit + } +} +public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_SignatureCVec_SignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ +public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_SignatureCVec_SignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? + public init() + public func getMinSeenSecret() -> Swift.UInt64 + public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState -extension LightningDevKit.Bindings { - public enum ChannelShutdownState { - case NotShuttingDown - case ShutdownInitiated - case ResolvingHTLCs - case NegotiatingClosingFee - case ShutdownComplete - public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ +public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? @objc deinit } } -public typealias DecodeError = LightningDevKit.Bindings.DecodeError +public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DecodeErrorType { - case UnknownVersion - case UnknownRequiredFeature - case InvalidValue - case ShortRead - case BadLengthDescriptor - case Io - case UnsupportedCompression - public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType - public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError - public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError - public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError - public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError - public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError - public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError - public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError - public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool - public func getValueAsIo() -> LightningDevKit.Bindings.IOError? + public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WarningMessage? @objc deinit } } -public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider +public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ +public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReady? + public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? @objc deinit } } -public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +public typealias PaymentConstraints = LightningDevKit.Bindings.PaymentConstraints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentConstraints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + public func getMaxCltvExpiry() -> Swift.UInt32 + public func setMaxCltvExpiry(val: Swift.UInt32) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public init(maxCltvExpiryArg: Swift.UInt32, htlcMinimumMsatArg: Swift.UInt64) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ +public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannel? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? @objc deinit } } -public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate +public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? @objc deinit } } -public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor +public typealias Future = LightningDevKit.Bindings.Future extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) - public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] - public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] - public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] - public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func getUpdateFuture() -> LightningDevKit.Bindings.Future - public func rebroadcastPendingClaims() - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func asWatch() -> LightningDevKit.Bindings.Watch - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError +public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ClosingSigned? @objc deinit } } -public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner +public typealias RouteHint = LightningDevKit.Bindings.RouteHint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] - open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_SignatureNoneZ + public func getA() -> [LightningDevKit.Bindings.RouteHintHop] + public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) + public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures +public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } -public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection +public typealias Result_CVec_u8ZIOErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] - public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) - public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? - public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) - public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias FilesystemPersister = LightningDevKit.Bindings.FilesystemPersister +public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FilesystemPersister : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(pathToChannelData: Swift.String) - public func getDataDir() -> Swift.String - public func readChannelmonitors(entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ + public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func debugLogLiquidityStats() + public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? + public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? + public func historicalEstimatedPaymentSuccessProbability(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId, amountMsat: Swift.UInt64, params: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.Double? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func asScore() -> LightningDevKit.Bindings.Score + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool +public typealias NodeId = LightningDevKit.Bindings.NodeId +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId + public func asSlice() -> [Swift.UInt8] + public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner +public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) - open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func getNodeSignature1() -> [Swift.UInt8] + public func setNodeSignature1(val: [Swift.UInt8]) + public func getNodeSignature2() -> [Swift.UInt8] + public func setNodeSignature2(val: [Swift.UInt8]) + public func getBitcoinSignature1() -> [Swift.UInt8] + public func setBitcoinSignature1(val: [Swift.UInt8]) + public func getBitcoinSignature2() -> [Swift.UInt8] + public func setBitcoinSignature2(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ +public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum ChannelMonitorUpdateStatus { + case Completed + case InProgress + case UnrecoverableError + public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAckRbf? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters +public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func contestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func isOwned() -> Swift.Bool + public enum HTLCDestinationType { + case NextHopChannel + case UnknownNextHop + case InvalidForward + case FailedPayment + public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType + public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? + public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? + public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? + public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? @objc deinit + @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } } } -public typealias Result_PaymentSecretNoneZ = LightningDevKit.Bindings.Result_PaymentSecretNoneZ +public typealias Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ = LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.SendError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)? @objc deinit } } -public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty - public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? - public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getShortChannelId() -> Swift.UInt64? - public func setShortChannelId(val: Swift.UInt64?) - public func getOutboundScidAlias() -> Swift.UInt64? - public func setOutboundScidAlias(val: Swift.UInt64?) - public func getInboundScidAlias() -> Swift.UInt64? - public func setInboundScidAlias(val: Swift.UInt64?) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public func getUnspendablePunishmentReserve() -> Swift.UInt64? - public func setUnspendablePunishmentReserve(val: Swift.UInt64?) - public func getUserChannelId() -> [Swift.UInt8] - public func setUserChannelId(val: [Swift.UInt8]) - public func getFeerateSatPer1000Weight() -> Swift.UInt32? - public func setFeerateSatPer1000Weight(val: Swift.UInt32?) - public func getBalanceMsat() -> Swift.UInt64 - public func setBalanceMsat(val: Swift.UInt64) - public func getOutboundCapacityMsat() -> Swift.UInt64 - public func setOutboundCapacityMsat(val: Swift.UInt64) - public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 - public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) - public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 - public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) - public func getInboundCapacityMsat() -> Swift.UInt64 - public func setInboundCapacityMsat(val: Swift.UInt64) - public func getConfirmationsRequired() -> Swift.UInt32? - public func setConfirmationsRequired(val: Swift.UInt32?) - public func getConfirmations() -> Swift.UInt32? - public func setConfirmations(val: Swift.UInt32?) - public func getForceCloseSpendDelay() -> Swift.UInt16? - public func setForceCloseSpendDelay(val: Swift.UInt16?) - public func getIsOutbound() -> Swift.Bool - public func setIsOutbound(val: Swift.Bool) - public func getIsChannelReady() -> Swift.Bool - public func setIsChannelReady(val: Swift.Bool) - public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? - public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) - public func getIsUsable() -> Swift.Bool - public func setIsUsable(val: Swift.Bool) - public func getIsPublic() -> Swift.Bool - public func setIsPublic(val: Swift.Bool) - public func getInboundHtlcMinimumMsat() -> Swift.UInt64? - public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getInboundHtlcMaximumMsat() -> Swift.UInt64? - public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) - public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? - public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) - public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) - public func getInboundPaymentScid() -> Swift.UInt64? - public func getOutboundPaymentScid() -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias Result_PublicKeyErrorZ = LightningDevKit.Bindings.Result_PublicKeyErrorZ +public typealias Result_PaymentRelayDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentRelayDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentRelay) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentRelay? @objc deinit } } -public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId +public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool - public func isOwned() -> Swift.Bool + public enum ParseOrSemanticErrorType { + case ParseError + case SemanticError + public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType + public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? @objc deinit } } -public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentError = LightningDevKit.Bindings.PaymentError +public typealias SendError = LightningDevKit.Bindings.SendError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PaymentErrorType { - case Invoice - case Sending - public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public enum SendErrorType { + case Secp256k1 + case TooBigPacket + case TooFewBlindedHops + case InvalidFirstHop + case InvalidMessage + case BufferFull + case GetNodeIdFailed + case BlindedPathAdvanceFailed + public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType - public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError - public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError - public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool - public func getValueAsInvoice() -> Swift.String? - public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType + public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError + public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError + public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError + public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError + public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError + public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError + public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool + public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? @objc deinit } } -public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHint? @objc deinit } } -public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ +public typealias Result_VerifiedInvoiceRequestNoneZ = LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_VerifiedInvoiceRequestNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.VerifiedInvoiceRequest) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAlias? + public func getValue() -> LightningDevKit.Bindings.VerifiedInvoiceRequest? @objc deinit } } -public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? @objc deinit } } -public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ +public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BigSize? + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingTxid() -> [Swift.UInt8]? + public func setFundingTxid(val: [Swift.UInt8]) + public func getFundingOutputIndex() -> Swift.UInt16 + public func setFundingOutputIndex(val: Swift.UInt16) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ +public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Refund? @objc deinit } } -public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ +public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? @objc deinit } } -public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ +public typealias FailureCode = LightningDevKit.Bindings.FailureCode extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FailureCode : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UntrustedString? + public enum FailureCodeType { + case TemporaryNodeFailure + case RequiredNodeFeatureMissing + case IncorrectOrUnknownPaymentDetails + case InvalidOnionPayload + public static func == (a: LightningDevKit.Bindings.FailureCode.FailureCodeType, b: LightningDevKit.Bindings.FailureCode.FailureCodeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.FailureCode.FailureCodeType + public class func initWithTemporaryNodeFailure() -> LightningDevKit.Bindings.FailureCode + public class func initWithRequiredNodeFeatureMissing() -> LightningDevKit.Bindings.FailureCode + public class func initWithIncorrectOrUnknownPaymentDetails() -> LightningDevKit.Bindings.FailureCode + public class func initWithInvalidOnionPayload(a: (Swift.UInt64, Swift.UInt16)?) -> LightningDevKit.Bindings.FailureCode + public func getValueAsInvalidOnionPayload() -> (Swift.UInt64, Swift.UInt16)?? @objc deinit } } -public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ +public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] + public func signature() -> [Swift.UInt8] + public func signableHash() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ +public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool + public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) + public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction + public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public func toHolderValueSat() -> Swift.UInt64 + public func toCounterpartyValueSat() -> Swift.UInt64 + public func toHolderScript() -> [Swift.UInt8] + public func toCounterpartyScript() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PartiallySignedTransactionNoneZ = LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ +public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PartiallySignedTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? @objc deinit } } -public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters +public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getUnspendablePunishmentReserve() -> Swift.UInt64 + public func setUnspendablePunishmentReserve(val: Swift.UInt64) + public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) + public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? + public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? + public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) + public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters +public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPayee() -> LightningDevKit.Bindings.Payee - public func setPayee(val: LightningDevKit.Bindings.Payee) - public func getExpiryTime() -> Swift.UInt64? - public func setExpiryTime(val: Swift.UInt64?) - public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 - public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) - public func getMaxPathCount() -> Swift.UInt8 - public func setMaxPathCount(val: Swift.UInt8) - public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 - public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) - public func getPreviouslyFailedChannels() -> [Swift.UInt64] - public func setPreviouslyFailedChannels(val: [Swift.UInt64]) - public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters - public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters - public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ +public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? + public func getValue() -> LightningDevKit.Bindings.OnionMessage? @objc deinit } } -public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +public typealias Result_CVec_StrZIOErrorZ = LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_StrZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithOk(o: [Swift.String]) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? - @objc deinit - } -} -public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func channel() -> LightningDevKit.Bindings.ChannelInfo - public func htlcMaximumMsat() -> Swift.UInt64 - public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.String]? @objc deinit } } -public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler +public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) - open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider + public func getBlindedNodeId() -> [Swift.UInt8] + public func setBlindedNodeId(val: [Swift.UInt8]) + public func getEncryptedPayload() -> [Swift.UInt8] + public func setEncryptedPayload(val: [Swift.UInt8]) + public init(blindedNodeIdArg: [Swift.UInt8], encryptedPayloadArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxIn = LightningDevKit.Bindings.TxIn +public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) - public func getWitness() -> [Swift.UInt8] - public func getScriptSig() -> [Swift.UInt8] - public func getSequence() -> Swift.UInt32 - public func getPreviousTxid() -> [Swift.UInt8] - public func getPreviousVout() -> Swift.UInt32 + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? @objc deinit } } -public typealias Retry = LightningDevKit.Bindings.Retry +public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RetryType { - case Attempts - case Timeout - public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public enum GraphSyncErrorType { + case DecodeError + case LightningError + public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType - public class func initWithAttempts(a: Swift.UInt) -> LightningDevKit.Bindings.Retry - public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry - public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func getValueAsAttempts() -> Swift.UInt? - public func getValueAsTimeout() -> Swift.UInt64? - @objc deinit - } -} -public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getBaseMsat() -> Swift.UInt32 - public func setBaseMsat(val: Swift.UInt32) - public func getProportionalMillionths() -> Swift.UInt32 - public func setProportionalMillionths(val: Swift.UInt32) - public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType + public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError + public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError + public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? + public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop +public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSrcNodeId() -> [Swift.UInt8] - public func setSrcNodeId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64? - public func setHtlcMinimumMsat(val: Swift.UInt64?) - public func getHtlcMaximumMsat() -> Swift.UInt64? - public func setHtlcMaximumMsat(val: Swift.UInt64?) - public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) + public enum SpendableOutputDescriptorType { + case StaticOutput + case DelayedPaymentOutput + case StaticPaymentOutput + public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType + public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? + public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit + @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func getOutput() -> LightningDevKit.Bindings.TxOut + @objc deinit + } } } -public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ +public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? + public enum OnionMessageContentsType { + case Offers + case Custom + public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType + public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents + public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents + public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? + public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +public typealias Result_ThirtyTwoBytesAPIErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OutPoint? + public func getError() -> LightningDevKit.Bindings.APIError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange +public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool - public func endBlocknum() -> Swift.UInt32 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func getNodeSecretKey() -> [Swift.UInt8] + public func getPhantomNodeSecretKey() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SendError? - @objc deinit - } -} -public typealias LockableScore = LightningDevKit.Bindings.LockableScore +public typealias LightningError = LightningDevKit.Bindings.LightningError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func lock() -> LightningDevKit.Bindings.Score + public func getErr() -> Swift.String + public func setErr(val: Swift.String) + public func getAction() -> LightningDevKit.Bindings.ErrorAction + public func setAction(val: LightningDevKit.Bindings.ErrorAction) + public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +public typealias Quantity = LightningDevKit.Bindings.Quantity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool - public func setKeysendOptional() - public func setKeysendRequired() - public func supportsKeysend() -> Swift.Bool - public func requiresKeysend() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getFlags() -> Swift.UInt8 - public func setFlags(val: Swift.UInt8) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getExcessData() -> [Swift.UInt8] - public func setExcessData(val: [Swift.UInt8]) - public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getRevocationKey() -> [Swift.UInt8] + public func setRevocationKey(val: [Swift.UInt8]) + public func getBroadcasterHtlcKey() -> [Swift.UInt8] + public func setBroadcasterHtlcKey(val: [Swift.UInt8]) + public func getCountersignatoryHtlcKey() -> [Swift.UInt8] + public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) + public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] + public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) + public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ +public typealias Result_StrSecp256k1ErrorZ = LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StrSecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> Swift.String? @objc deinit } } -public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +public typealias ProbingError = LightningDevKit.Bindings.ProbingError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ProbingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + public enum ProbingErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.ProbingError.ProbingErrorType, b: LightningDevKit.Bindings.ProbingError.ProbingErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbingError.ProbingErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.ProbingError + public class func initWithSending(a: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.ProbingError + public class func eq(a: LightningDevKit.Bindings.ProbingError, b: LightningDevKit.Bindings.ProbingError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.ProbeSendFailure? @objc deinit } } -public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ +public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] + public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_PaymentHashPaymentSecretZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ +public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? @objc deinit } } -public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public enum PaymentSendFailureType { + case ParameterError + case PathParameterError + case AllFailedResendSafe + case DuplicatePayment + case PartialFailure + public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType + public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func eq(a: LightningDevKit.Bindings.PaymentSendFailure, b: LightningDevKit.Bindings.PaymentSendFailure) -> Swift.Bool + public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? + public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? + public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? + public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? @objc deinit + @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] + public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } } } -public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) + public func asRouter() -> LightningDevKit.Bindings.Router public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ +public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Pong? + public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? @objc deinit } } -public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError +public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SignOrCreationErrorType { - case SignError - case CreationError - public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType - public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError - public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError - public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? + public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelConfig? @objc deinit } } -public typealias Balance = LightningDevKit.Bindings.Balance +public typealias IOError = LightningDevKit.Bindings.IOError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum BalanceType { - case ClaimableOnChannelClose - case ClaimableAwaitingConfirmations - case ContentiousClaimable - case MaybeTimeoutClaimableHTLC - case MaybePreimageClaimableHTLC - case CounterpartyRevokedOutputClaimable - public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType - public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance - public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool - public func claimableAmountSatoshis() -> Swift.UInt64 - public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? - public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? - public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? - public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? - public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? - public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? - @objc deinit - @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getConfirmationHeight() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getTimeoutHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentPreimage() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getClaimableHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getExpiryHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit + public enum IOError { + case NotFound + case PermissionDenied + case ConnectionRefused + case ConnectionReset + case ConnectionAborted + case NotConnected + case AddrInUse + case AddrNotAvailable + case BrokenPipe + case AlreadyExists + case WouldBlock + case InvalidInput + case InvalidData + case TimedOut + case WriteZero + case Interrupted + case Other + case UnexpectedEof + public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get } } } -public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ +public typealias Result_ClaimedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClaimedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClaimedHTLC) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WarningMessage? + public func getValue() -> LightningDevKit.Bindings.ClaimedHTLC? @objc deinit } } -public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ +public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxInitRbf? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_StringErrorZ = LightningDevKit.Bindings.Result_StringErrorZ +public typealias Result_PublicKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StringErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PublicKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StringErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> Swift.String? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel +public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + @objc deinit + } +} +public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMinFeeSatoshis() -> Swift.UInt64 + public func setMinFeeSatoshis(val: Swift.UInt64) + public func getMaxFeeSatoshis() -> Swift.UInt64 + public func setMaxFeeSatoshis(val: Swift.UInt64) + public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} extension LightningDevKit.Bindings.Currency : Swift.Equatable {} extension LightningDevKit.Bindings.Currency : Swift.Hashable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Equatable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Equatable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} -extension LightningDevKit.Bindings.Network : Swift.Equatable {} -extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Hashable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} extension LightningDevKit.Bindings.Level : Swift.Equatable {} extension LightningDevKit.Bindings.Level : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Hashable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} extension LightningDevKit.Bindings.Recipient : Swift.Equatable {} extension LightningDevKit.Bindings.Recipient : Swift.Hashable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} -extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} -extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Equatable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} +extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} +extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Equatable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Hashable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} -extension LightningDevKit.Bindings.IOError : Swift.Equatable {} -extension LightningDevKit.Bindings.IOError : Swift.Hashable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Equatable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Equatable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} +extension LightningDevKit.Bindings.Network : Swift.Equatable {} +extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Equatable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Hashable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.IOError : Swift.Equatable {} +extension LightningDevKit.Bindings.IOError : Swift.Hashable {} diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc index 2462128f..bd32bd7c 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc and b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface index 00d32735..6501b7cf 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface @@ -7,561 +7,1358 @@ import Foundation @_exported import LightningDevKit import Swift import _Concurrency -public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput +public typealias Result_SocketAddressDecodeErrorZ = LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias TxComplete = LightningDevKit.Bindings.TxComplete +public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool + public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public func intoTransaction() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler +public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) - public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + @objc deinit + } +} +public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? + public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) + public func getMessage() -> LightningDevKit.Bindings.UntrustedString + public func setMessage(val: LightningDevKit.Bindings.UntrustedString) + public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? @objc deinit } } -public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC +public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getFailureCode() -> Swift.UInt16 - public func setFailureCode(val: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) + public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider +public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] - open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner - open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - open func getDestinationScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? @objc deinit } } -public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getEnabled() -> Swift.Bool - public func setEnabled(val: Swift.Bool) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? - public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) - public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func getA() -> [Swift.UInt8] + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func channel() -> LightningDevKit.Bindings.ChannelInfo + public func htlcMaximumMsat() -> Swift.UInt64 + public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ +public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? @objc deinit } } -public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField +public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTlvFieldnum() -> Swift.UInt64 - public func setTlvFieldnum(val: Swift.UInt64) - public func getSuggestedValue() -> [Swift.UInt8]? - public func setSuggestedValue(val: [Swift.UInt8]?) - public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeId? @objc deinit } } -public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ +public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +public typealias Record = LightningDevKit.Bindings.Record extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OffersMessage? + public func getLevel() -> LightningDevKit.Bindings.Level + public func setLevel(val: LightningDevKit.Bindings.Level) + public func getArgs() -> Swift.String + public func setArgs(val: Swift.String) + public func getModulePath() -> Swift.String + public func setModulePath(val: Swift.String) + public func getFile() -> Swift.String + public func setFile(val: Swift.String) + public func getLine() -> Swift.UInt32 + public func setLine(val: Swift.UInt32) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ +public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxComplete? + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getOnionRoutingPacket() -> LightningDevKit.Bindings.Packet + public func setOnionRoutingPacket(val: LightningDevKit.Bindings.Packet) + public init(blindingPointArg: [Swift.UInt8], onionRoutingPacketArg: LightningDevKit.Bindings.Packet) + public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ +public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? + public func getValue() -> LightningDevKit.Bindings.MonitorEvent? @objc deinit } } -public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor +public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SpendableOutputDescriptorType { - case StaticOutput - case DelayedPaymentOutput - case StaticPaymentOutput - public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public enum EffectiveCapacityType { + case ExactLiquidity + case AdvertisedMaxHTLC + case Total + case Infinite + case HintMaxHTLC + case Unknown + public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType - public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? - public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? - public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType + public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity + public func asMsat() -> Swift.UInt64 + public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? + public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? + public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? + public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? @objc deinit - @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getOutput() -> LightningDevKit.Bindings.TxOut + public func getLiquidityMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCapacityMsat() -> Swift.UInt64 + public func getHtlcMaximumMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 @objc deinit } } } -public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ +public typealias PathFailure = LightningDevKit.Bindings.PathFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? + public enum PathFailureType { + case InitialSend + case OnPath + public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType + public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure + public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure + public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? + public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? @objc deinit + @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> LightningDevKit.Bindings.APIError + @objc deinit + } + @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? + @objc deinit + } } } -public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ +public typealias Result_SchnorrSignatureNoneZ = LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SchnorrSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ +public typealias Watch = LightningDevKit.Bindings.Watch extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public init() + open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] @objc deinit } } -public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ +public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InvoiceError? + public func getValue() -> LightningDevKit.Bindings.BigSize? @objc deinit } } -public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? @objc deinit } } -public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore +public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asLockableScore() -> LightningDevKit.Bindings.LockableScore - public func write() -> [Swift.UInt8] - public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore - public init(score: LightningDevKit.Bindings.Score) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? @objc deinit } } -public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice - public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func timestamp() -> Swift.UInt64 - public func durationSinceEpoch() -> Swift.UInt64 - public func paymentHash() -> [Swift.UInt8]? - public func payeePubKey() -> [Swift.UInt8]? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func recoverPayeePubKey() -> [Swift.UInt8] - public func expiresAt() -> Swift.UInt64? - public func expiryTime() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func durationUntilExpiry() -> Swift.UInt64 - public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 - public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool - public func minFinalCltvExpiryDelta() -> Swift.UInt64 - public func fallbackAddresses() -> [Swift.String] - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func routeHints() -> [LightningDevKit.Bindings.RouteHint] - public func currency() -> LightningDevKit.Bindings.Currency - public func amountMilliSatoshis() -> Swift.UInt64? - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func toStr() -> Swift.String - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RoutingFees? @objc deinit } } -public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs +public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(scorer: LightningDevKit.Bindings.Score, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias Currency = LightningDevKit.Bindings.Currency -extension LightningDevKit.Bindings { - public enum Currency { - case Bitcoin - case BitcoinTestnet - case Regtest - case Simnet - case Signet - public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? @objc deinit } } -public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ClosureReasonType { - case CounterpartyForceClosed - case HolderForceClosed - case CooperativeClosure - case CommitmentTxConfirmed - case FundingTimedOut - case ProcessingError - case DisconnectedPeer - case OutdatedChannelManager - case CounterpartyCoopClosedUnfundedChannel - public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool + public enum MaxDustHTLCExposureType { + case FixedLimitMsat + case FeeRateMultiplier + public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType - public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason - public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason - public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason - public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason - public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason - public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType + public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? - public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public func getValueAsFixedLimitMsat() -> Swift.UInt64? + public func getValueAsFeeRateMultiplier() -> Swift.UInt64? @objc deinit - @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } } } -public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter +public typealias Result_ThirtyTwoBytesNoneZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) - public func asRouter() -> LightningDevKit.Bindings.Router + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + @objc deinit + } +} +public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias ReceiveTlvs = LightningDevKit.Bindings.ReceiveTlvs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ReceiveTlvs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public init(paymentSecretArg: [Swift.UInt8], paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ +public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) + public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) + public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbingError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.ProbingError? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? + @objc deinit + } +} +public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOffered() -> Swift.Bool + public func setOffered(val: Swift.Bool) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getTransactionOutputIndex() -> Swift.UInt32? + public func setTransactionOutputIndex(val: Swift.UInt32?) + public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) + public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias BigSize = LightningDevKit.Bindings.BigSize +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(lockableScore: LightningDevKit.Bindings.LockableScore) + open func write() -> [Swift.UInt8] + public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + @objc deinit + } +} +public typealias Result_HTLCDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_HTLCDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSigned? + public func getValue() -> LightningDevKit.Bindings.HTLCDescriptor? @objc deinit } } -public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError +public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ extension LightningDevKit.Bindings { - public enum Bolt12SemanticError { - case AlreadyExpired - case UnsupportedChain - case UnexpectedChain - case MissingAmount - case InvalidAmount - case InsufficientAmount - case UnexpectedAmount - case UnsupportedCurrency - case UnknownRequiredFeatures - case UnexpectedFeatures - case MissingDescription - case MissingSigningPubkey - case InvalidSigningPubkey - case UnexpectedSigningPubkey - case MissingQuantity - case InvalidQuantity - case UnexpectedQuantity - case InvalidMetadata - case UnexpectedMetadata - case MissingPayerMetadata - case MissingPayerId - case MissingPaths - case InvalidPayInfo - case MissingCreationTime - case MissingPaymentHash - case MissingSignature - public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsType? + @objc deinit } } -public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures +public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + @objc deinit + } +} +public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures public func requiresUnknownBitsFrom() -> Swift.Bool public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setPaymentMetadataOptional() - public func setPaymentMetadataRequired() - public func supportsPaymentMetadata() -> Swift.Bool - public func requiresPaymentMetadata() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public enum RetryableSendFailure { + case PaymentExpired + case RouteNotFound + case DuplicatePayment + public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MessageSendEventType { - case SendAcceptChannel - case SendAcceptChannelV2 - case SendOpenChannel + public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + @objc deinit + } +} +public typealias Result_ThirtyTwoBytesPaymentSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + @objc deinit + } +} +public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice + public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func timestamp() -> Swift.UInt64 + public func durationSinceEpoch() -> Swift.UInt64 + public func paymentHash() -> [Swift.UInt8]? + public func payeePubKey() -> [Swift.UInt8]? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func recoverPayeePubKey() -> [Swift.UInt8] + public func expiresAt() -> Swift.UInt64? + public func expiryTime() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func durationUntilExpiry() -> Swift.UInt64 + public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 + public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool + public func minFinalCltvExpiryDelta() -> Swift.UInt64 + public func fallbackAddresses() -> [Swift.String] + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func routeHints() -> [LightningDevKit.Bindings.RouteHint] + public func currency() -> LightningDevKit.Bindings.Currency + public func amountMilliSatoshis() -> Swift.UInt64? + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public func toStr() -> Swift.String + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func signature() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? + public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) + public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? + public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) + public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? + public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) + public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? + public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) + public func getChainMonitor() -> LightningDevKit.Bindings.Watch? + public func setChainMonitor(val: LightningDevKit.Bindings.Watch) + public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? + public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) + public func getRouter() -> LightningDevKit.Bindings.Router? + public func setRouter(val: LightningDevKit.Bindings.Router) + public func getLogger() -> LightningDevKit.Bindings.Logger? + public func setLogger(val: LightningDevKit.Bindings.Logger) + public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig + public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Currency = LightningDevKit.Bindings.Currency +extension LightningDevKit.Bindings { + public enum Currency { + case Bitcoin + case BitcoinTestnet + case Regtest + case Simnet + case Signet + public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_ECDSASignatureNoneZ = LightningDevKit.Bindings.Result_ECDSASignatureNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ECDSASignatureNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum PaymentPurposeType { + case InvoicePayment + case SpontaneousPayment + public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType + public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? + public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentPreimage() -> [Swift.UInt8]? + public func getPaymentSecret() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + @objc deinit + } +} +public typealias ForwardNode = LightningDevKit.Bindings.ForwardNode +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ForwardNode : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTlvs() -> LightningDevKit.Bindings.ForwardTlvs + public func setTlvs(val: LightningDevKit.Bindings.ForwardTlvs) + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public init(tlvsArg: LightningDevKit.Bindings.ForwardTlvs, nodeIdArg: [Swift.UInt8], htlcMaximumMsatArg: Swift.UInt64) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsInit? + @objc deinit + } +} +public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty + public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? + public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getShortChannelId() -> Swift.UInt64? + public func setShortChannelId(val: Swift.UInt64?) + public func getOutboundScidAlias() -> Swift.UInt64? + public func setOutboundScidAlias(val: Swift.UInt64?) + public func getInboundScidAlias() -> Swift.UInt64? + public func setInboundScidAlias(val: Swift.UInt64?) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getUnspendablePunishmentReserve() -> Swift.UInt64? + public func setUnspendablePunishmentReserve(val: Swift.UInt64?) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getFeerateSatPer1000Weight() -> Swift.UInt32? + public func setFeerateSatPer1000Weight(val: Swift.UInt32?) + public func getBalanceMsat() -> Swift.UInt64 + public func setBalanceMsat(val: Swift.UInt64) + public func getOutboundCapacityMsat() -> Swift.UInt64 + public func setOutboundCapacityMsat(val: Swift.UInt64) + public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 + public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) + public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 + public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) + public func getInboundCapacityMsat() -> Swift.UInt64 + public func setInboundCapacityMsat(val: Swift.UInt64) + public func getConfirmationsRequired() -> Swift.UInt32? + public func setConfirmationsRequired(val: Swift.UInt32?) + public func getConfirmations() -> Swift.UInt32? + public func setConfirmations(val: Swift.UInt32?) + public func getForceCloseSpendDelay() -> Swift.UInt16? + public func setForceCloseSpendDelay(val: Swift.UInt16?) + public func getIsOutbound() -> Swift.Bool + public func setIsOutbound(val: Swift.Bool) + public func getIsChannelReady() -> Swift.Bool + public func setIsChannelReady(val: Swift.Bool) + public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? + public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) + public func getIsUsable() -> Swift.Bool + public func setIsUsable(val: Swift.Bool) + public func getIsPublic() -> Swift.Bool + public func setIsPublic(val: Swift.Bool) + public func getInboundHtlcMinimumMsat() -> Swift.UInt64? + public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getInboundHtlcMaximumMsat() -> Swift.UInt64? + public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) + public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? + public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) + public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) + public func getInboundPaymentScid() -> Swift.UInt64? + public func getOutboundPaymentScid() -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias TaggedHash = LightningDevKit.Bindings.TaggedHash +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TaggedHash : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + @objc deinit + } +} +public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.UtxoLookupError? + public func getValue() -> LightningDevKit.Bindings.TxOut? + @objc deinit + } +} +public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func builtTransaction() -> [Swift.UInt8] + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_ChannelDerivationParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ChannelDerivationParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDerivationParameters) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDerivationParameters? + @objc deinit + } +} +public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getHtlcSignatures() -> [[Swift.UInt8]] + public func setHtlcSignatures(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ProbeSendFailure = LightningDevKit.Bindings.ProbeSendFailure +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ProbeSendFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ProbeSendFailureType { + case RouteNotFound + case SendingFailed + public static func == (a: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType, b: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType + public class func initWithRouteNotFound() -> LightningDevKit.Bindings.ProbeSendFailure + public class func initWithSendingFailed(a: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.ProbeSendFailure + public class func eq(a: LightningDevKit.Bindings.ProbeSendFailure, b: LightningDevKit.Bindings.ProbeSendFailure) -> Swift.Bool + public func getValueAsSendingFailed() -> LightningDevKit.Bindings.PaymentSendFailure? + @objc deinit + } +} +public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MonitorEventType { + case HTLCEvent + case HolderForceClosed + case Completed + public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType + public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithHolderForceClosed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent + public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValueAsHolderForceClosed() -> LightningDevKit.Bindings.OutPoint? + public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? + @objc deinit + @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + public func getMonitorUpdateId() -> Swift.UInt64 + @objc deinit + } + } +} +public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingSigned? + @objc deinit + } +} +public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getBlockHash() -> [Swift.UInt8]? + public func setBlockHash(val: [Swift.UInt8]?) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getScriptPubkey() -> [Swift.UInt8] + public func setScriptPubkey(val: [Swift.UInt8]) + public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum OffersMessageType { + case InvoiceRequest + case Invoice + case InvoiceError + public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType + public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage + public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool + public func tlvType() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? + public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? + public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + @objc deinit + } +} +public typealias Input = LightningDevKit.Bindings.Input +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut + public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt + open func disconnectSocket() + open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool + open func hash() -> Swift.UInt64 + @objc deinit + } +} +public typealias PaymentRelay = LightningDevKit.Bindings.PaymentRelay +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentRelay : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public init(cltvExpiryDeltaArg: Swift.UInt16, feeProportionalMillionthsArg: Swift.UInt32, feeBaseMsatArg: Swift.UInt32) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +extension LightningDevKit.Bindings { + public enum SiPrefix { + case Milli + case Micro + case Nano + case Pico + public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.InMemorySigner? + @objc deinit + } +} +public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHop? + @objc deinit + } +} +public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getFlags() -> Swift.UInt8 + public func setFlags(val: Swift.UInt8) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Offer? + @objc deinit + } +} +public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MessageSendEventType { + case SendAcceptChannel + case SendAcceptChannelV2 + case SendOpenChannel case SendOpenChannelV2 case SendFundingCreated case SendFundingSigned @@ -612,7 +1409,7 @@ extension LightningDevKit.Bindings { public class func initWithSendTxSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxInitRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxAckRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.MessageSendEvent - public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.MessageSendEvent + public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendChannelReady(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendAnnouncementSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithUpdateHtlcs(nodeId: [Swift.UInt8], updates: LightningDevKit.Bindings.CommitmentUpdate) -> LightningDevKit.Bindings.MessageSendEvent @@ -765,7 +1562,7 @@ extension LightningDevKit.Bindings { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.TxAddInput + public func getMsg() -> LightningDevKit.Bindings.TxAbort @objc deinit } @_hasMissingDesignatedInitializers public class SendChannelReady : LightningDevKit.NativeTypeWrapper { @@ -854,553 +1651,257 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class HandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getAction() -> LightningDevKit.Bindings.ErrorAction - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter - @objc deinit - } - } -} -public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOk() -> Swift.Bool - @objc deinit - } -} -public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getRevocationPubkey() -> [Swift.UInt8] - public func setRevocationPubkey(val: [Swift.UInt8]) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? - @objc deinit - } -} -public typealias Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? - @objc deinit - } -} -public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) - open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] - open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] - open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func channelKeysId() -> [Swift.UInt8] - open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - @objc deinit - } -} -public typealias Result__u832APIErrorZ = LightningDevKit.Bindings.Result__u832APIErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result__u832APIErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.BlindedHop] - public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 - public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? - @objc deinit - } -} -public typealias BestBlock = LightningDevKit.Bindings.BestBlock -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool - public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock - public init(blockHash: [Swift.UInt8], height: Swift.UInt32) - public func blockHash() -> [Swift.UInt8] - public func height() -> Swift.UInt32 - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 - public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) - public func getLiquidityOffsetHalfLife() -> Swift.UInt64 - public func setLiquidityOffsetHalfLife(val: Swift.UInt64) - public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget -extension LightningDevKit.Bindings { - public enum ConfirmationTarget { - case MempoolMinimum - case Background - case Normal - case HighPriority - public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.BlindedPath? - @objc deinit - } -} -public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public func getSats() -> Swift.UInt64 - public func setSats(val: Swift.UInt64) - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getHtlcSignatures() -> [[Swift.UInt8]] - public func setHtlcSignatures(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FailureCode = LightningDevKit.Bindings.FailureCode -extension LightningDevKit.Bindings { - public enum FailureCode { - case TemporaryNodeFailure - case RequiredNodeFeatureMissing - case IncorrectOrUnknownPaymentDetails - public static func == (a: LightningDevKit.Bindings.FailureCode, b: LightningDevKit.Bindings.FailureCode) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + public func getNodeId() -> [Swift.UInt8] + public func getAction() -> LightningDevKit.Bindings.ErrorAction + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter + @objc deinit } } } -public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ +public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? + public func getValue() -> LightningDevKit.Bindings.Shutdown? @objc deinit } } -public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +public typealias ScoreUpdate = LightningDevKit.Bindings.ScoreUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreUpdate : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) - public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) - public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getInflightHtlcMsat() -> Swift.UInt64 - public func setInflightHtlcMsat(val: Swift.UInt64) - public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) - public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Input = LightningDevKit.Bindings.Input -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut - public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias TxOut = LightningDevKit.Bindings.TxOut -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) - public func getScriptPubkey() -> [Swift.UInt8] - public func getValue() -> Swift.UInt64 + open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) + open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func probeSuccessful(path: LightningDevKit.Bindings.Path) @objc deinit } } -public typealias KeysManager = LightningDevKit.Bindings.KeysManager +public typealias WalletSource = LightningDevKit.Bindings.WalletSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) - public func getNodeSecretKey() -> [Swift.UInt8] - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public func isOwned() -> Swift.Bool + public init() + open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + open func getChangeScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias BigSize = LightningDevKit.Bindings.BigSize +public typealias Offer = LightningDevKit.Bindings.Offer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool + public func isExpired() -> Swift.Bool + public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool + public func expectsQuantity() -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - @objc deinit - } -} -public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannel? - @objc deinit - } -} -public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PrivateRoute? - @objc deinit - } -} -public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? - @objc deinit - } -} -public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? - @objc deinit - } -} -public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim +public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError extension LightningDevKit.Bindings { - public enum HTLCClaim { - case OfferedTimeout - case OfferedPreimage - case AcceptedTimeout - case AcceptedPreimage - case Revocation - public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public enum Bolt12SemanticError { + case AlreadyExpired + case UnsupportedChain + case UnexpectedChain + case MissingAmount + case InvalidAmount + case InsufficientAmount + case UnexpectedAmount + case UnsupportedCurrency + case UnknownRequiredFeatures + case UnexpectedFeatures + case MissingDescription + case MissingSigningPubkey + case InvalidSigningPubkey + case UnexpectedSigningPubkey + case MissingQuantity + case InvalidQuantity + case UnexpectedQuantity + case InvalidMetadata + case UnexpectedMetadata + case MissingPayerMetadata + case MissingPayerId + case MissingPaths + case InvalidPayInfo + case MissingCreationTime + case MissingPaymentHash + case MissingSignature + public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Score = LightningDevKit.Bindings.Score +public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 - open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) - open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func probeSuccessful(path: LightningDevKit.Bindings.Path) - open func write() -> [Swift.UInt8] + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getPerCommitmentNumber() -> Swift.UInt64 + public func setPerCommitmentNumber(val: Swift.UInt64) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment + public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) + public func getPreimage() -> [Swift.UInt8]? + public func setPreimage(val: [Swift.UInt8]?) + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public func outpoint() -> LightningDevKit.Bindings.OutPoint + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func txOutput() -> LightningDevKit.Bindings.TxOut + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Fallback = LightningDevKit.Bindings.Fallback +public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum FallbackType { - case SegWitProgram - case PubKeyHash - case ScriptHash - public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public enum Bech32ErrorType { + case MissingSeparator + case InvalidChecksum + case InvalidLength + case InvalidChar + case InvalidData + case InvalidPadding + case MixedCase + public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType - public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool - public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? - public func getValueAsPubKeyHash() -> [Swift.UInt8]? - public func getValueAsScriptHash() -> [Swift.UInt8]? + public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType + public func getValueAsInvalidChar() -> Swift.UInt32? + public func getValueAsInvalidData() -> Swift.UInt8? @objc deinit - @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getVersion() -> Swift.UInt8 - public func getProgram() -> [Swift.UInt8] - @objc deinit - } } } -public typealias Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ +public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? - public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? + public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getHolderSelectedContestDelay() -> Swift.UInt16 + public func setHolderSelectedContestDelay(val: Swift.UInt16) + public func getIsOutboundFromHolder() -> Swift.Bool + public func setIsOutboundFromHolder(val: Swift.Bool) + public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) + public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool + public func isPopulated() -> Swift.Bool + public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature +public typealias Amount = LightningDevKit.Bindings.Amount extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MultiThreadedScoreLock = LightningDevKit.Bindings.MultiThreadedScoreLock +public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedScoreLock : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAlias? @objc deinit } } -public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +public typealias Sleeper = LightningDevKit.Bindings.Sleeper extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public init(futures: [LightningDevKit.Bindings.Future]) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } @@ -1416,1046 +1917,1181 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool - public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func intoInner() -> LightningDevKit.Bindings.RouteHint - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias GossipSync = LightningDevKit.Bindings.GossipSync -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum GossipSyncType { - case P2P - case Rapid - case None - public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType - public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func none() -> LightningDevKit.Bindings.GossipSync - public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? - public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? - @objc deinit - } -} -public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeSignature() -> [Swift.UInt8] - public func setNodeSignature(val: [Swift.UInt8]) - public func getBitcoinSignature() -> [Swift.UInt8] - public func setBitcoinSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError -extension LightningDevKit.Bindings { - public enum UtxoLookupError { - case UnknownChain - case UnknownTx - public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Refund? - @objc deinit - } -} -public typealias Network = LightningDevKit.Bindings.Network +public typealias SocketAddressParseError = LightningDevKit.Bindings.SocketAddressParseError extension LightningDevKit.Bindings { - public enum Network { - case Bitcoin - case Testnet - case Regtest - case Signet - public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public enum SocketAddressParseError { + case SocketAddrParse + case InvalidInput + case InvalidPort + case InvalidOnionV3 + public static func == (a: LightningDevKit.Bindings.SocketAddressParseError, b: LightningDevKit.Bindings.SocketAddressParseError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Ping = LightningDevKit.Bindings.Ping +public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPonglen() -> Swift.UInt16 - public func setPonglen(val: Swift.UInt16) - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getLatestUpdateId() -> Swift.UInt64 + public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) + public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] + public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) + public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] + public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func initialCounterpartyCommitmentTx() -> LightningDevKit.Bindings.CommitmentTransaction? + public func counterpartyCommitmentTxsFromUpdate(update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> [LightningDevKit.Bindings.CommitmentTransaction] + public func signToLocalJusticeTx(justiceTx: [Swift.UInt8], inputIdx: Swift.UInt, value: Swift.UInt64, commitmentNumber: Swift.UInt64) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func getCounterpartyNodeId() -> [Swift.UInt8]? + public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] + public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func getSpendableOutputs(tx: [Swift.UInt8], confirmationHeight: Swift.UInt32) -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentIdPaymentErrorZ = LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentIdPaymentErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ +public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelDetails? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias Result_PayeePubKeyErrorZ = LightningDevKit.Bindings.Result_PayeePubKeyErrorZ +public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PayeePubKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? @objc deinit } } -public typealias Route = LightningDevKit.Bindings.Route +public typealias Payee = LightningDevKit.Bindings.Payee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaths() -> [LightningDevKit.Bindings.Path] - public func setPaths(val: [LightningDevKit.Bindings.Path]) - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters? - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public init(pathsArg: [LightningDevKit.Bindings.Path], paymentParamsArg: LightningDevKit.Bindings.PaymentParameters) + public enum PayeeType { + case Blinded + case Clear + public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType + public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee + public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool - public func getTotalFees() -> Swift.UInt64 - public func getTotalAmount() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool + public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? + public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? @objc deinit + @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] + public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] + public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func getFinalCltvExpiryDelta() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ +public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Ping? @objc deinit } } -public typealias Future = LightningDevKit.Bindings.Future +public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters +public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBasePenaltyMsat() -> Swift.UInt64 - public func setBasePenaltyMsat(val: Swift.UInt64) - public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getAntiProbingPenaltyMsat() -> Swift.UInt64 - public func setAntiProbingPenaltyMsat(val: Swift.UInt64) - public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 - public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters - public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) - public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) - public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) - public func clearManualPenalties() + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public func commitmentNumber() -> Swift.UInt64 + public func toBroadcasterValueSat() -> Swift.UInt64 + public func toCountersignatoryValueSat() -> Swift.UInt64 + public func feeratePerKw() -> Swift.UInt32 + public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction + public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ +public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) + public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 + public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ +public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? + public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func intoInner() -> [Swift.UInt8] + public func asLegacyPubkey() -> [Swift.UInt8]? + public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Level = LightningDevKit.Bindings.Level -extension LightningDevKit.Bindings { - public enum Level { - case Gossip - case Trace - case Debug - case Info - case Warn - case Error - public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } +@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { + public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + @objc deinit + open var hashValue: Swift.Int { + get } } -public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? - @objc deinit +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { + public func activate() -> Self + public func activateOnce() -> Self + @objc deinit +} +@_hasMissingDesignatedInitializers public class Bindings { + public enum PrintSeverity : Swift.UInt { + case DEBUG + case WARNING + case ERROR + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } } + public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) + public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) + public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer + public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper + public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String + public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func ldkGetCompiledVersion() -> Swift.String + public class func ldkCBindingsGetCompiledVersion() -> Swift.String + public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool + public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] + public class func readChannelMonitors(kvStore: LightningDevKit.Bindings.KVStore, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures + public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func parseOnionAddress(host: Swift.String, port: Swift.UInt16) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] + public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] + public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCounterpartyPaymentScript(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, paymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] + public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] + public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 + public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.ScoreLookUp, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func createOnionMessage(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func preflightProbeInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func preflightProbeZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsat: Swift.UInt64, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") + public class func readThirtyTwoBytesChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func readThirtyTwoBytesChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + @objc deinit } -public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func metadata() -> [Swift.UInt8] - public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64? - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func quantity() -> Swift.UInt64? - public func payerId() -> [Swift.UInt8] - public func payerNote() -> LightningDevKit.Bindings.PrintableString? - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } +@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { + public init() + public func getPointer() -> Swift.UnsafeMutableRawPointer + @objc deinit } -public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ +public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InitFeatures? + public func getValue() -> LightningDevKit.Bindings.Pong? @objc deinit } } -public typealias Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ +public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], Swift.UInt)? - @objc deinit - } -} -public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func broadcastTransactions(txs: [[Swift.UInt8]]) - @objc deinit - } -} -public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getHolderSelectedContestDelay() -> Swift.UInt16 - public func setHolderSelectedContestDelay(val: Swift.UInt16) - public func getIsOutboundFromHolder() -> Swift.Bool - public func setIsOutboundFromHolder(val: Swift.Bool) - public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? - public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) - public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? - public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool - public func isPopulated() -> Swift.Bool - public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.Description? @objc deinit } } -public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler +public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? - open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func processingQueueHigh() -> Swift.Bool - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? @objc deinit } } -public typealias Router = LightningDevKit.Bindings.Router +public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? @objc deinit } } -public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK +public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getPerCommitmentSecret() -> [Swift.UInt8]? - public func setPerCommitmentSecret(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getFailureCode() -> Swift.UInt16 + public func setFailureCode(val: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ +public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? @objc deinit } } -public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? - public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) - public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? - public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) - public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? - public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) - public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? - public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) - public func getChainMonitor() -> LightningDevKit.Bindings.Watch? - public func setChainMonitor(val: LightningDevKit.Bindings.Watch) - public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? - public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) - public func getRouter() -> LightningDevKit.Bindings.Router? - public func setRouter(val: LightningDevKit.Bindings.Router) - public func getLogger() -> LightningDevKit.Bindings.Logger? - public func setLogger(val: LightningDevKit.Bindings.Logger) - public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig - public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit } } -public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures +public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public init() + open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage @objc deinit } } -public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty +public typealias Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func setNodeId(val: [Swift.UInt8]) - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getUnspendablePunishmentReserve() -> Swift.UInt64 - public func setUnspendablePunishmentReserve(val: Swift.UInt64) - public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? - public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) - public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? - public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? - public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) - public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? @objc deinit } } -public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + public func getValue() -> LightningDevKit.Bindings.UntrustedString? @objc deinit } } -public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +public typealias Level = LightningDevKit.Bindings.Level extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InMemorySigner? - @objc deinit + public enum Level { + case Gossip + case Trace + case Debug + case Info + case Warn + case Error + public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ +public typealias Result_PaymentConstraintsDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentConstraintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentConstraints) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? + public func getValue() -> LightningDevKit.Bindings.PaymentConstraints? @objc deinit } } -public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction +public typealias Retry = LightningDevKit.Bindings.Retry extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] - public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public enum RetryType { + case Attempts + case Timeout + public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType + public class func initWithAttempts(a: Swift.UInt32) -> LightningDevKit.Bindings.Retry + public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry + public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool + public func hash() -> Swift.UInt64 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public func getValueAsAttempts() -> Swift.UInt32? + public func getValueAsTimeout() -> Swift.UInt64? @objc deinit } } -public typealias PrintableString = LightningDevKit.Bindings.PrintableString +public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? @objc deinit } } -public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(lockableScore: LightningDevKit.Bindings.LockableScore) - open func write() -> [Swift.UInt8] - public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getSelectedContestDelay() -> Swift.UInt16 + public func setSelectedContestDelay(val: Swift.UInt16) + public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NetAddressDecodeErrorZ = LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ +public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetAddress) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetAddress? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture +public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeFeatures? @objc deinit } } -public typealias Persister = LightningDevKit.Bindings.Persister +public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneErrorZ + public enum Bolt11ParseErrorType { + case Bech32Error + case ParseAmountError + case MalformedSignature + case BadPrefix + case UnknownCurrency + case UnknownSiPrefix + case MalformedHRP + case TooShortDataPart + case UnexpectedEndOfTaggedFields + case DescriptionDecodeError + case PaddingError + case IntegerOverflowError + case InvalidSegWitProgramLength + case InvalidPubKeyHashLength + case InvalidScriptHashLength + case InvalidRecoveryId + case InvalidSliceLength + case Skip + public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType + public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError + public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? + public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsInvalidSliceLength() -> Swift.String? @objc deinit } } -public typealias Filter = LightningDevKit.Bindings.Filter +public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) - open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? @objc deinit } } -public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart +public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp - public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) - public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func asLockableScore() -> LightningDevKit.Bindings.LockableScore + public func write() -> [Swift.UInt8] + public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore + public init(score: LightningDevKit.Bindings.Score) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Listen = LightningDevKit.Bindings.Listen +public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) - open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(scriptArg: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ +public typealias Result_ThirtyTwoBytesRetryableSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady +public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public func getShortChannelIdAlias() -> Swift.UInt64? - public func setShortChannelIdAlias(val: Swift.UInt64?) - public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getNetworks() -> [[Swift.UInt8]]? + public func setNetworks(val: [[Swift.UInt8]]?) + public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.SocketAddress? + public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.SocketAddress?) + public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.SocketAddress?) + public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError -extension LightningDevKit.Bindings { - public enum Bolt11SemanticError { - case NoPaymentHash - case MultiplePaymentHashes - case NoDescription - case MultipleDescriptions - case NoPaymentSecret - case MultiplePaymentSecrets - case InvalidFeatures - case InvalidRecoveryId - case InvalidSignature - case ImpreciseAmount - public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteParameters? + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getInflightHtlcMsat() -> Swift.UInt64 + public func setInflightHtlcMsat(val: Swift.UInt64) + public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity + public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) + public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ +public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> Swift.Bool? + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? + open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func processingQueueHigh() -> Swift.Bool + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ +public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? + public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? @objc deinit } } -public typealias Logger = LightningDevKit.Bindings.Logger +public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func log(record: LightningDevKit.Bindings.Record) + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannel? @objc deinit } } -public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +public typealias Event = LightningDevKit.Bindings.Event extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OffersMessageType { - case InvoiceRequest - case Invoice - case InvoiceError - public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public enum EventType { + case FundingGenerationReady + case PaymentClaimable + case PaymentClaimed + case PaymentSent + case PaymentFailed + case PaymentPathSuccessful + case PaymentPathFailed + case ProbeSuccessful + case ProbeFailed + case PendingHTLCsForwardable + case HTLCIntercepted + case SpendableOutputs + case PaymentForwarded + case ChannelPending + case ChannelReady + case ChannelClosed + case DiscardFunding + case OpenChannelRequest + case HTLCHandlingFailed + case BumpTransaction + public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType - public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage - public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool - public func tlvType() -> Swift.UInt64 + public func getValueType() -> LightningDevKit.Bindings.Event.EventType + public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8]?, viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, htlcs: [LightningDevKit.Bindings.ClaimedHTLC], senderIntendedTotalMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor], channelId: [Swift.UInt8]?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8]?, nextChannelId: [Swift.UInt8]?, feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8]?, counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event + public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason, counterpartyNodeId: [Swift.UInt8], channelCapacitySats: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event + public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event + public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? - public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? - public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? + public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? + public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? + public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? + public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? + public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? + public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? + public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? + public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? + public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? + public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? + public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? + public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? + public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? + public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? + public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? + public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? + public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? + public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? + public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? @objc deinit - } -} -public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentPurposeType { - case InvoicePayment - case SpontaneousPayment - public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelValueSatoshis() -> Swift.UInt64 + public func getOutputScript() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields + public func getAmountMsat() -> Swift.UInt64 + public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getViaChannelId() -> [Swift.UInt8]? + public func getViaUserChannelId() -> [Swift.UInt8]? + public func getClaimDeadline() -> Swift.UInt32? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getAmountMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getHtlcs() -> [LightningDevKit.Bindings.ClaimedHTLC] + public func getSenderIntendedTotalMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentPreimage() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getFeePaidMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentFailedPermanently() -> Swift.Bool + public func getFailure() -> LightningDevKit.Bindings.PathFailure + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTimeForwardable() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getInterceptId() -> [Swift.UInt8] + public func getRequestedNextHopScid() -> Swift.UInt64 + public func getPaymentHash() -> [Swift.UInt8] + public func getInboundAmountMsat() -> Swift.UInt64 + public func getExpectedOutboundAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getChannelId() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8]? + public func getNextChannelId() -> [Swift.UInt8]? + public func getFeeEarnedMsat() -> Swift.UInt64? + public func getClaimFromOnchainTx() -> Swift.Bool + public func getOutboundAmountForwardedMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getFormerTemporaryChannelId() -> [Swift.UInt8]? + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.ClosureReason + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelCapacitySats() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getTransaction() -> [Swift.UInt8] + @objc deinit } - public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType - public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? - public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? - @objc deinit - @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentPreimage() -> [Swift.UInt8]? - public func getPaymentSecret() -> [Swift.UInt8] + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingSatoshis() -> Swift.UInt64 + public func getPushMsat() -> Swift.UInt64 + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8] + public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination @objc deinit } } } -public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ +public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? + public func getValue() -> LightningDevKit.Bindings.InitFeatures? @objc deinit } } -public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync +public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func isInitialSyncComplete() -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit + public enum Option_NoneZ { + case Some + case None + public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ +public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFee? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getPerCommitmentSecret() -> [Swift.UInt8]? + public func setPerCommitmentSecret(val: [Swift.UInt8]) + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SendError = LightningDevKit.Bindings.SendError +public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SendErrorType { - case Secp256k1 - case TooBigPacket - case TooFewBlindedHops - case InvalidFirstHop - case InvalidMessage - case BufferFull - case GetNodeIdFailed - case BlindedPathAdvanceFailed - public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType - public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError - public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError - public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError - public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError - public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError - public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError - public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool - public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getNodeId() -> LightningDevKit.Bindings.NodeId + public func setNodeId(val: LightningDevKit.Bindings.NodeId) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAddresses() -> [LightningDevKit.Bindings.SocketAddress] + public func setAddresses(val: [LightningDevKit.Bindings.SocketAddress]) + public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentHashRetryableSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ +public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) - public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 - public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SignOrCreationError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +public typealias LockableScore = LightningDevKit.Bindings.LockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public init() + open func readLock() -> LightningDevKit.Bindings.ScoreLookUp + open func writeLock() -> LightningDevKit.Bindings.ScoreUpdate @objc deinit } } -public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage +public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UnsignedGossipMessageType { - case ChannelAnnouncement - case ChannelUpdate - case NodeAnnouncement - public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType - public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getNodeOne() -> LightningDevKit.Bindings.NodeId + public func setNodeOne(val: LightningDevKit.Bindings.NodeId) + public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getNodeTwo() -> LightningDevKit.Bindings.NodeId + public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) + public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getCapacitySats() -> Swift.UInt64? + public func setCapacitySats(val: Swift.UInt64?) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool + public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? public func write() -> [Swift.UInt8] - public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? - public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? - public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Destination = LightningDevKit.Bindings.Destination +public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DestinationType { - case Node - case BlindedPath - public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType - public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination - public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination - public func getValueAsNode() -> [Swift.UInt8]? - public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? + public init() + open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + @objc deinit + } +} +public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ +public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? @objc deinit } } -public typealias Result_SharedSecretNoneZ = LightningDevKit.Bindings.Result_SharedSecretNoneZ +public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SharedSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SharedSecretNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } @@ -2472,576 +3108,592 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination +public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum HTLCDestinationType { - case NextHopChannel - case UnknownNextHop - case InvalidForward - case FailedPayment - public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + @objc deinit + } +} +public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ClosureReasonType { + case CounterpartyForceClosed + case HolderForceClosed + case CooperativeClosure + case CommitmentTxConfirmed + case FundingTimedOut + case ProcessingError + case DisconnectedPeer + case OutdatedChannelManager + case CounterpartyCoopClosedUnfundedChannel + case FundingBatchClosure + public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType - public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType + public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason + public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason + public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason + public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason + public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingBatchClosure() -> LightningDevKit.Bindings.ClosureReason + public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? - public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? - public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? - public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? + public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? @objc deinit - @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 + public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString @objc deinit } - @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String @objc deinit } } } -public typealias EventHandler = LightningDevKit.Bindings.EventHandler -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func handleEvent(event: LightningDevKit.Bindings.Event) - @objc deinit - } -} -public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func builtTransaction() -> [Swift.UInt8] - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ +public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.GraphSyncError? - public func getValue() -> Swift.UInt32? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAckRbf? @objc deinit } } -public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ +public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? - @objc deinit - } -} -public typealias EntropySource = LightningDevKit.Bindings.EntropySource -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func getSecureRandomBytes() -> [Swift.UInt8] - @objc deinit - } -} -public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum MaxDustHTLCExposureType { - case FixedLimitMsat - case FeeRateMultiplier - public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType - public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public func getValueAsFixedLimitMsat() -> Swift.UInt64? - public func getValueAsFeeRateMultiplier() -> Swift.UInt64? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? @objc deinit } } -public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError +public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bolt11ParseErrorType { - case Bech32Error - case ParseAmountError - case MalformedSignature - case BadPrefix - case UnknownCurrency - case UnknownSiPrefix - case MalformedHRP - case TooShortDataPart - case UnexpectedEndOfTaggedFields - case DescriptionDecodeError - case PaddingError - case IntegerOverflowError - case InvalidSegWitProgramLength - case InvalidPubKeyHashLength - case InvalidScriptHashLength - case InvalidRecoveryId - case InvalidSliceLength - case Skip - public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType - public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError - public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? - public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsInvalidSliceLength() -> Swift.String? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ +public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? + public func getValue() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Amount = LightningDevKit.Bindings.Amount +public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited + public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) + public func getPrevtxOut() -> Swift.UInt32 + public func setPrevtxOut(val: Swift.UInt32) + public func getSequence() -> Swift.UInt32 + public func setSequence(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.UtxoLookupError? - public func getValue() -> LightningDevKit.Bindings.TxOut? + public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 + public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) + public func getLiquidityOffsetHalfLife() -> Swift.UInt64 + public func setLiquidityOffsetHalfLife(val: Swift.UInt64) + public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath +public typealias BestBlock = LightningDevKit.Bindings.BestBlock extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool - public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool + public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock + public init(blockHash: [Swift.UInt8], height: Swift.UInt32) + public func blockHash() -> [Swift.UInt8] + public func height() -> Swift.UInt32 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator +public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - public class func getLDKSwiftBindingsSerializationHash() -> Swift.String - public class func getLDKSwiftBindingsVersion() -> Swift.String - public class func getLDKSwiftBindingsCommitHash() -> Swift.String -} -public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? @objc deinit } } -public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ +public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MonitorEvent? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? @objc deinit } } -public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func tlvType() -> Swift.UInt64 - open func write() -> [Swift.UInt8] + open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) @objc deinit } } -public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC +public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) + open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner @objc deinit } } -public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +public typealias Balance = LightningDevKit.Bindings.Balance extension LightningDevKit.Bindings { - public enum SiPrefix { - case Milli - case Micro - case Nano - case Pico - public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum BalanceType { + case ClaimableOnChannelClose + case ClaimableAwaitingConfirmations + case ContentiousClaimable + case MaybeTimeoutClaimableHTLC + case MaybePreimageClaimableHTLC + case CounterpartyRevokedOutputClaimable + public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType + public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance + public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool + public func claimableAmountSatoshis() -> Swift.UInt64 + public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? + public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? + public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? + public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? + public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? + public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? + @objc deinit + @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getConfirmationHeight() -> Swift.UInt32 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getTimeoutHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentPreimage() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getClaimableHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getExpiryHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit } } } -public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - @objc deinit - } -} -public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? - public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) - public func getMessage() -> LightningDevKit.Bindings.UntrustedString - public func setMessage(val: LightningDevKit.Bindings.UntrustedString) - public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) + public func getGenesisHash() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) + public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph + public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? + public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) + public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func channelFailedPermanent(shortChannelId: Swift.UInt64) + public func nodeFailedPermanent(nodeId: [Swift.UInt8]) + public func removeStaleChannelsAndTracking() + public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) + public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader +public typealias Confirm = LightningDevKit.Bindings.Confirm extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - @objc deinit - } -} -public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.APIError? + open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func transactionUnconfirmed(txid: [Swift.UInt8]?) + open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) + open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] @objc deinit } } -public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error +public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason extension LightningDevKit.Bindings { - public enum Secp256k1Error { - case IncorrectSignature - case InvalidMessage - case InvalidPublicKey - case InvalidSignature - case InvalidSecretKey - case InvalidSharedSecret - case InvalidRecoveryId - case InvalidTweak - case NotEnoughMemory - case InvalidPublicKeySum - case InvalidParityValue - public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public enum PaymentFailureReason { + case RecipientRejected + case UserAbandoned + case RetriesExhausted + case PaymentExpired + case RouteNotFound + case UnexpectedError + public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput +public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? + public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) + public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? + public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) + public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? + public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) + public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? + public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) + public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentParameters? - @objc deinit - } -} -public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ +public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddOutput? + public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) + public func getPhantomScid() -> Swift.UInt64 + public func setPhantomScid(val: Swift.UInt64) + public func getRealNodePubkey() -> [Swift.UInt8] + public func setRealNodePubkey(val: [Swift.UInt8]) + public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ +public typealias Pong = LightningDevKit.Bindings.Pong extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ScriptNoneZ = LightningDevKit.Bindings.Result_ScriptNoneZ +public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ScriptNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) + public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ +public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAbort? + public func getValue() -> LightningDevKit.Bindings.InvoiceError? @objc deinit } } -public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ +public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelConfig? + public func getValue() -> LightningDevKit.Bindings.ChannelReady? @objc deinit } } -public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction +public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func txid() -> [Swift.UInt8] - public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction - public func keys() -> LightningDevKit.Bindings.TxCreationKeys - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOwned() -> Swift.Bool + public enum UnsignedGossipMessageType { + case ChannelAnnouncement + case ChannelUpdate + case NodeAnnouncement + public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType + public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func write() -> [Swift.UInt8] + public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? @objc deinit } } -public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [LightningDevKit.Bindings.Utxo]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAddOutput? @objc deinit } } -public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ +public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeId? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction +public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public func commitmentNumber() -> Swift.UInt64 - public func toBroadcasterValueSat() -> Swift.UInt64 - public func toCountersignatoryValueSat() -> Swift.UInt64 - public func feeratePerKw() -> Swift.UInt32 - public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction - public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } @@ -3064,598 +3716,781 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ +public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? - @objc deinit - } -} -public typealias PeerManager = LightningDevKit.Bindings.PeerManager -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") - public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) - public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.NetAddress?)] - public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func processEvents() - public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) - public func disconnectByNodeId(nodeId: [Swift.UInt8]) - public func disconnectAllPeers() - public func timerTickOccurred() - public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.NetAddress]) - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxComplete? @objc deinit } } -public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ +public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError +public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum GraphSyncErrorType { - case DecodeError - case LightningError - public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType - public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError - public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError - public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? - public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getNextLocalCommitmentNumber() -> Swift.UInt64 + public func setNextLocalCommitmentNumber(val: Swift.UInt64) + public func getNextRemoteCommitmentNumber() -> Swift.UInt64 + public func setNextRemoteCommitmentNumber(val: Swift.UInt64) + public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? + public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) + public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] + public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) + public func getNextFundingTxid() -> [Swift.UInt8]? + public func setNextFundingTxid(val: [Swift.UInt8]?) + public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo +public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? @objc deinit } } -public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +public typealias Result_CVec_u8ZNoneZ = LightningDevKit.Bindings.Result_CVec_u8ZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd +public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFullInformation() -> Swift.Bool - public func setFullInformation(val: Swift.Bool) - public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func getNetwork() -> LightningDevKit.Bindings.Network + public func setNetwork(val: LightningDevKit.Bindings.Network) + public func getBestBlock() -> LightningDevKit.Bindings.BestBlock + public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) + public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ +public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? + public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? @objc deinit } } -public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ +public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Shutdown? + public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool + public func endBlocknum() -> Swift.UInt32 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage +public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func getPayee() -> LightningDevKit.Bindings.Payee + public func setPayee(val: LightningDevKit.Bindings.Payee) + public func getExpiryTime() -> Swift.UInt64? + public func setExpiryTime(val: Swift.UInt64?) + public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 + public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) + public func getMaxPathCount() -> Swift.UInt8 + public func setMaxPathCount(val: Swift.UInt8) + public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 + public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) + public func getPreviouslyFailedChannels() -> [Swift.UInt64] + public func setPreviouslyFailedChannels(val: [Swift.UInt64]) + public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters + public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBlinded(blindedRouteHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)]) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript +public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(scriptArg: [Swift.UInt8]) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) + public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler + public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync +public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) - public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) - public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + @objc deinit + } +} +public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement +public typealias Recipient = LightningDevKit.Bindings.Recipient extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public enum Recipient { + case Node + case PhantomNode + public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Hostname = LightningDevKit.Bindings.Hostname +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getNodeId() -> LightningDevKit.Bindings.NodeId - public func setNodeId(val: LightningDevKit.Bindings.NodeId) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAddresses() -> [LightningDevKit.Bindings.NetAddress] - public func setAddresses(val: [LightningDevKit.Bindings.NetAddress]) - public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool + public func len() -> Swift.UInt8 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString +public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) + open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) + open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) + open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) + open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) + open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) + open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) + open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) + open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) + open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) + open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) + open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) + open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) + open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) + open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) + open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) + open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) + open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) + open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) + open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) + open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) + open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) + open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) + open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) + open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) + open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) + open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) + open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + open func getGenesisHashes() -> [[Swift.UInt8]]? + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Sleeper = LightningDevKit.Bindings.Sleeper +public typealias ClaimedHTLC = LightningDevKit.Bindings.ClaimedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClaimedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public init(futures: [LightningDevKit.Bindings.Future]) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getValueMsat() -> Swift.UInt64 + public func setValueMsat(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], userChannelIdArg: [Swift.UInt8], cltvExpiryArg: Swift.UInt32, valueMsatArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClaimedHTLC, b: LightningDevKit.Bindings.ClaimedHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? + public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? @objc deinit } } -public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor +public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeId1() -> LightningDevKit.Bindings.NodeId + public func setNodeId1(val: LightningDevKit.Bindings.NodeId) + public func getNodeId2() -> LightningDevKit.Bindings.NodeId + public func setNodeId2(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(featuresArg: LightningDevKit.Bindings.ChannelFeatures, chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeId1Arg: LightningDevKit.Bindings.NodeId, nodeId2Arg: LightningDevKit.Bindings.NodeId, bitcoinKey1Arg: LightningDevKit.Bindings.NodeId, bitcoinKey2Arg: LightningDevKit.Bindings.NodeId, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup +public typealias UserConfig = LightningDevKit.Bindings.UserConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult + public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) + public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits + public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) + public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig + public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) + public func getAcceptForwardsToPrivChannels() -> Swift.Bool + public func setAcceptForwardsToPrivChannels(val: Swift.Bool) + public func getAcceptInboundChannels() -> Swift.Bool + public func setAcceptInboundChannels(val: Swift.Bool) + public func getManuallyAcceptInboundChannels() -> Swift.Bool + public func setManuallyAcceptInboundChannels(val: Swift.Bool) + public func getAcceptInterceptHtlcs() -> Swift.Bool + public func setAcceptInterceptHtlcs(val: Swift.Bool) + public func getAcceptMppKeysend() -> Swift.Bool + public func setAcceptMppKeysend(val: Swift.Bool) + public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstTimestamp() -> Swift.UInt32 - public func setFirstTimestamp(val: Swift.UInt32) - public func getTimestampRange() -> Swift.UInt32 - public func setTimestampRange(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setPaymentMetadataOptional() + public func setPaymentMetadataRequired() + public func supportsPaymentMetadata() -> Swift.Bool + public func requiresPaymentMetadata() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp +public typealias Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool - public func hash() -> Swift.UInt64 - public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public func asUnixTimestamp() -> Swift.UInt64 - public func asDurationSinceEpoch() -> Swift.UInt64 - public func asTime() -> Swift.UInt64 - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? @objc deinit } } -public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures +public typealias PeerManager = LightningDevKit.Bindings.PeerManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getTxHash() -> [Swift.UInt8]? - public func setTxHash(val: [Swift.UInt8]) - public func getWitnesses() -> [[Swift.UInt8]] - public func setWitnesses(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") + public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) + public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.SocketAddress?)] + public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public func processEvents() + public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) + public func disconnectByNodeId(nodeId: [Swift.UInt8]) + public func disconnectAllPeers() + public func timerTickOccurred() + public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.SocketAddress]) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf +public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned +public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeSatoshis() -> Swift.UInt64 - public func setFeeSatoshis(val: Swift.UInt64) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? - public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) - public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) - public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public enum NetworkUpdateType { + case ChannelUpdateMessage + case ChannelFailure + case NodeFailure + public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType + public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? + public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? + public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getShortChannelId() -> Swift.UInt64 + public func isPermanent() -> Swift.Bool + @objc deinit + } + @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func isPermanent() -> Swift.Bool + @objc deinit + } } } -public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets +public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func getMinSeenSecret() -> Swift.UInt64 - public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func getTlvFieldnum() -> Swift.UInt64 + public func setTlvFieldnum(val: Swift.UInt64) + public func getSuggestedValue() -> [Swift.UInt8]? + public func setSuggestedValue(val: [Swift.UInt8]?) + public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Path = LightningDevKit.Bindings.Path +public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.RouteHop] - public func setHops(val: [LightningDevKit.Bindings.RouteHop]) - public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? - public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) - public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool - public func feeMsat() -> Swift.UInt64 - public func finalValueMsat() -> Swift.UInt64 - public func finalCltvExpiryDelta() -> Swift.UInt32? + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getOurToSelfDelay() -> Swift.UInt16 + public func setOurToSelfDelay(val: Swift.UInt16) + public func getOurHtlcMinimumMsat() -> Swift.UInt64 + public func setOurHtlcMinimumMsat(val: Swift.UInt64) + public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 + public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) + public func getNegotiateScidPrivacy() -> Swift.Bool + public func setNegotiateScidPrivacy(val: Swift.Bool) + public func getAnnouncedChannel() -> Swift.Bool + public func setAnnouncedChannel(val: Swift.Bool) + public func getCommitUpfrontShutdownPubkey() -> Swift.Bool + public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) + public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 + public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) + public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) + public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 + public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) + public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ +public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? + public func getValue() -> LightningDevKit.Bindings.ClosureReason? @objc deinit } } -public typealias Utxo = LightningDevKit.Bindings.Utxo +public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool - public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo - public func isOwned() -> Swift.Bool + public init() + open func broadcastTransactions(txs: [[Swift.UInt8]]) @objc deinit } } -public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason +public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey extension LightningDevKit.Bindings { - public enum PaymentFailureReason { - case RecipientRejected - case UserAbandoned - case RetriesExhausted - case PaymentExpired - case RouteNotFound - case UnexpectedError - public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(keyMaterial: [Swift.UInt8]) + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias PathFailure = LightningDevKit.Bindings.PathFailure +public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PathFailureType { - case InitialSend - case OnPath - public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType - public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure - public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure - public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFullInformation() -> Swift.Bool + public func setFullInformation(val: Swift.Bool) + public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? - public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> LightningDevKit.Bindings.APIError - @objc deinit - } - @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? - @objc deinit - } } } -@_hasMissingDesignatedInitializers public class LDKExampleClass { - public class func printSomething() - public func printInstance() - @objc deinit -} -public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction +public typealias Result_ReceiveTlvsDecodeErrorZ = LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReceiveTlvsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool - public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) - public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction - public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public func toHolderValueSat() -> Swift.UInt64 - public func toCounterpartyValueSat() -> Swift.UInt64 - public func toHolderScript() -> [Swift.UInt8] - public func toCounterpartyScript() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReceiveTlvs) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReceiveTlvs? @objc deinit } } -public typealias Recipient = LightningDevKit.Bindings.Recipient +public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures extension LightningDevKit.Bindings { - public enum Recipient { - case Node - case PhantomNode - public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setInitialRoutingSyncOptional() + public func setInitialRoutingSyncRequired() + public func initialRoutingSync() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner +public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) - open func write() -> [Swift.UInt8] - public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt - open func disconnectSocket() - open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool - open func hash() -> Swift.UInt64 + public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? @objc deinit } } -public typealias RouteHop = LightningDevKit.Bindings.RouteHop +public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkey() -> [Swift.UInt8] - public func setPubkey(val: [Swift.UInt8]) - public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getFeeMsat() -> Swift.UInt64 - public func setFeeMsat(val: Swift.UInt64) - public func getCltvExpiryDelta() -> Swift.UInt32 - public func setCltvExpiryDelta(val: Swift.UInt32) - public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) + public func getForwardingFeeBaseMsat() -> Swift.UInt32 + public func setForwardingFeeBaseMsat(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure + public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) + public func getAcceptUnderpayingHtlcs() -> Swift.Bool + public func setAcceptUnderpayingHtlcs(val: Swift.Bool) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool + public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_CVec_ECDSASignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_ECDSASignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? + @objc deinit + } +} public typealias BackgroundProcessor = LightningDevKit.Bindings.BackgroundProcessor extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class BackgroundProcessor : LightningDevKit.NativeTypeWrapper { @@ -3664,573 +4499,654 @@ extension LightningDevKit.Bindings { @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `gossipSync`.") public class func start(persister: LightningDevKit.Bindings.Persister, eventHandler: LightningDevKit.Bindings.EventHandler, chainMonitor: LightningDevKit.Bindings.ChainMonitor, channelManager: LightningDevKit.Bindings.ChannelManager, gossipSync: LightningDevKit.Bindings.GossipSync, peerManager: LightningDevKit.Bindings.PeerManager, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.WriteableScore?) -> LightningDevKit.Bindings.BackgroundProcessor @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func join() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func join() -> LightningDevKit.Bindings.Result_NoneIOErrorZ @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func stop() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func stop() -> LightningDevKit.Bindings.Result_NoneIOErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned +public typealias PrintableString = LightningDevKit.Bindings.PrintableString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getSkimmedFeeMsat() -> Swift.UInt64? + public func setSkimmedFeeMsat(val: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey +public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public enum Secp256k1Error { + case IncorrectSignature + case InvalidMessage + case InvalidPublicKey + case InvalidSignature + case InvalidSecretKey + case InvalidSharedSecret + case InvalidRecoveryId + case InvalidTweak + case NotEnoughMemory + case InvalidPublicKeySum + case InvalidParityValue + public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget +extension LightningDevKit.Bindings { + public enum ConfirmationTarget { + case MempoolMinimum + case Background + case Normal + case HighPriority + public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(keyMaterial: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias Offer = LightningDevKit.Bindings.Offer +public typealias Refund = LightningDevKit.Bindings.Refund extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func chains() -> [[Swift.UInt8]] - public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool - public func metadata() -> [Swift.UInt8]? - public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString - public func features() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func supportedQuantity() -> LightningDevKit.Bindings.Quantity - public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool - public func expectsQuantity() -> Swift.Bool - public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +public typealias CreationError = LightningDevKit.Bindings.CreationError +extension LightningDevKit.Bindings { + public enum CreationError { + case DescriptionTooLong + case RouteTooLong + case TimestampOutOfBounds + case InvalidAmount + case MissingRouteHints + case MinFinalCltvExpiryDeltaTooShort + public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum RecentPaymentDetailsType { + case AwaitingInvoice + case Pending + case Fulfilled + case Abandoned + public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType + public class func initWithAwaitingInvoice(paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithPending(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithFulfilled(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithAbandoned(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public func getValueAsAwaitingInvoice() -> LightningDevKit.Bindings.RecentPaymentDetails.AwaitingInvoice? + public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? + public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? + public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + @objc deinit + @_hasMissingDesignatedInitializers public class AwaitingInvoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getTotalMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_PayeePubKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PayeePubKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + @objc deinit + } +} +public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentParameters? + @objc deinit + } +} +public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHop? + public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func contestDelay() -> Swift.UInt16 + public func isOutbound() -> Swift.Bool + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ +public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? + public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp + public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) + public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Payee = LightningDevKit.Bindings.Payee +public typealias Destination = LightningDevKit.Bindings.Destination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PayeeType { - case Blinded - case Clear - public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public enum DestinationType { + case Node + case BlindedPath + public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType - public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee - public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool - public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? - public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? + public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType + public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination + public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination + public func getValueAsNode() -> [Swift.UInt8]? + public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? @objc deinit - @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] - public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] - public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures - public func getFinalCltvExpiryDelta() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish +public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextLocalCommitmentNumber() -> Swift.UInt64 - public func setNextLocalCommitmentNumber(val: Swift.UInt64) - public func getNextRemoteCommitmentNumber() -> Swift.UInt64 - public func setNextRemoteCommitmentNumber(val: Swift.UInt64) - public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? - public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) - public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] - public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) - public func getNextFundingTxid() -> [Swift.UInt8]? - public func setNextFundingTxid(val: [Swift.UInt8]?) - public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? @objc deinit } } -public typealias Sha256 = LightningDevKit.Bindings.Sha256 +public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 + public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool - public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 + public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler +public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) - open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) - open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) - open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) - open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) - open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) - open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) - open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) - open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) - open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) - open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) - open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) - open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) - open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) - open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) - open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) - open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) - open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) - open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) - open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) - open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) - open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) - open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) - open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) - open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) - open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) - open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) - open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - open func getGenesisHashes() -> [[Swift.UInt8]]? - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - @objc deinit + public enum ChannelShutdownState { + case NotShuttingDown + case ShutdownInitiated + case ResolvingHTLCs + case NegotiatingClosingFee + case ShutdownComplete + public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent +public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum BumpTransactionEventType { - case ChannelClose - case HTLCResolution - public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public enum UtxoResultType { + case Sync + case Async + public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType - public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool - public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? - public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? + public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType + public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult + public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult + public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? + public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + @objc deinit + } +} +public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + @objc deinit + } +} +public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getCommitmentTx() -> [Swift.UInt8] - public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 - public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor - public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] - public func getTxLockTime() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor +public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getLatestUpdateId() -> Swift.UInt64 - public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) - public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] - public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) - public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] - public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) - public func getCounterpartyNodeId() -> [Swift.UInt8]? - public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] - public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] + public func txid() -> [Swift.UInt8] + public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction + public func keys() -> LightningDevKit.Bindings.TxCreationKeys + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func revokeableOutputIndex() -> Swift.UInt? + public func buildToLocalJusticeTx(feeratePerKw: Swift.UInt64, destinationScript: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo +public typealias Result_ChannelMonitorUpdateStatusNoneZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateStatusNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures - public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus? @objc deinit } } -public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys +public typealias Result_SocketAddressSocketAddressParseErrorZ = LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressSocketAddressParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getRevocationKey() -> [Swift.UInt8] - public func setRevocationKey(val: [Swift.UInt8]) - public func getBroadcasterHtlcKey() -> [Swift.UInt8] - public func setBroadcasterHtlcKey(val: [Swift.UInt8]) - public func getCountersignatoryHtlcKey() -> [Swift.UInt8] - public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) - public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] - public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) - public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SocketAddressParseError) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SocketAddressParseError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias BindingsError = LightningDevKit.Bindings.BindingsError +public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getDummy() -> Swift.UInt8 + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias Pong = LightningDevKit.Bindings.Pong +public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeSignature() -> [Swift.UInt8] + public func setNodeSignature(val: [Swift.UInt8]) + public func getBitcoinSignature() -> [Swift.UInt8] + public func setBitcoinSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Persist = LightningDevKit.Bindings.Persist +public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ @objc deinit } } -public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? @objc deinit } } -public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime +public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool - public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public func asSeconds() -> Swift.UInt64 - public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAbort = LightningDevKit.Bindings.TxAbort +public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> [Swift.UInt8] - public func setData(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ +public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? @objc deinit } } -public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement +public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeId1() -> LightningDevKit.Bindings.NodeId - public func setNodeId1(val: LightningDevKit.Bindings.NodeId) - public func getNodeId2() -> LightningDevKit.Bindings.NodeId - public func setNodeId2(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func getMinFundingSatoshis() -> Swift.UInt64 + public func setMinFundingSatoshis(val: Swift.UInt64) + public func getMaxFundingSatoshis() -> Swift.UInt64 + public func setMaxFundingSatoshis(val: Swift.UInt64) + public func getMaxHtlcMinimumMsat() -> Swift.UInt64 + public func setMaxHtlcMinimumMsat(val: Swift.UInt64) + public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getMaxChannelReserveSatoshis() -> Swift.UInt64 + public func setMaxChannelReserveSatoshis(val: Swift.UInt64) + public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) + public func getMaxMinimumDepth() -> Swift.UInt32 + public func setMaxMinimumDepth(val: Swift.UInt32) + public func getTrustOwnFunding0conf() -> Swift.Bool + public func setTrustOwnFunding0conf(val: Swift.Bool) + public func getForceAnnouncedChannelPreference() -> Swift.Bool + public func setForceAnnouncedChannelPreference(val: Swift.Bool) + public func getTheirToSelfDelay() -> Swift.UInt16 + public func setTheirToSelfDelay(val: Swift.UInt16) + public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +public typealias MonitorUpdatingPersister = LightningDevKit.Bindings.MonitorUpdatingPersister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdatingPersister : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(kvStore: LightningDevKit.Bindings.KVStore, logger: LightningDevKit.Bindings.Logger, maximumPendingUpdates: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) + public func readAllChannelMonitorsWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public func readChannelMonitorWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, monitorKey: Swift.String) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public func cleanupStaleUpdates(lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func asPersist() -> LightningDevKit.Bindings.Persist + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey +public typealias Persist = LightningDevKit.Bindings.Persist extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8] - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init() + open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus @objc deinit } } -public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig +public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) - public func getForwardingFeeBaseMsat() -> Swift.UInt32 - public func setForwardingFeeBaseMsat(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure - public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) - public func getAcceptUnderpayingHtlcs() -> Swift.Bool - public func setAcceptUnderpayingHtlcs(val: Swift.Bool) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool - public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingCreated? @objc deinit } } -public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath +public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getIntermediateNodes() -> [[Swift.UInt8]] - public func setIntermediateNodes(val: [[Swift.UInt8]]) - public func getDestination() -> LightningDevKit.Bindings.Destination - public func setDestination(val: LightningDevKit.Bindings.Destination) - public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTransaction() -> [Swift.UInt8] + public func setTransaction(val: [Swift.UInt8]) + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ +public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedTail? + public func getValue() -> LightningDevKit.Bindings.TxSignatures? @objc deinit } } -public typealias Description = LightningDevKit.Bindings.Description +public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getRevocationPubkey() -> [Swift.UInt8] + public func setRevocationPubkey(val: [Swift.UInt8]) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool - public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public func intoInner() -> Swift.String + public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage +public typealias KVStore = LightningDevKit.Bindings.KVStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class KVStore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + open func write(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, buf: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func remove(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func list(primaryNamespace: Swift.String, secondaryNamespace: Swift.String) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ @objc deinit } } @@ -4246,1979 +5162,1797 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? - @objc deinit - } -} -public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits +public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFundingSatoshis() -> Swift.UInt64 - public func setMinFundingSatoshis(val: Swift.UInt64) - public func getMaxFundingSatoshis() -> Swift.UInt64 - public func setMaxFundingSatoshis(val: Swift.UInt64) - public func getMaxHtlcMinimumMsat() -> Swift.UInt64 - public func setMaxHtlcMinimumMsat(val: Swift.UInt64) - public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getMaxChannelReserveSatoshis() -> Swift.UInt64 - public func setMaxChannelReserveSatoshis(val: Swift.UInt64) - public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) - public func getMaxMinimumDepth() -> Swift.UInt32 - public func setMaxMinimumDepth(val: Swift.UInt32) - public func getTrustOwnFunding0conf() -> Swift.Bool - public func setTrustOwnFunding0conf(val: Swift.Bool) - public func getForceAnnouncedChannelPreference() -> Swift.Bool - public func setForceAnnouncedChannelPreference(val: Swift.Bool) - public func getTheirToSelfDelay() -> Swift.UInt16 - public func setTheirToSelfDelay(val: Swift.UInt16) - public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func isOwned() -> Swift.Bool + public init() + open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] + open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + open func getDestinationScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ @objc deinit } } -public typealias Confirm = LightningDevKit.Bindings.Confirm +public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func transactionUnconfirmed(txid: [Swift.UInt8]?) - open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) - open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public enum BumpTransactionEventType { + case ChannelClose + case HTLCResolution + public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType + public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool + public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? + public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getCommitmentTx() -> [Swift.UInt8] + public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 + public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor + public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] + public func getTxLockTime() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ +public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger +public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) - public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler - public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider - public func isOwned() -> Swift.Bool - @objc deinit + public enum UtxoLookupError { + case UnknownChain + case UnknownTx + public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures +public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setInitialRoutingSyncOptional() - public func setInitialRoutingSyncRequired() - public func initialRoutingSync() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool + public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public func asSeconds() -> Swift.UInt64 + public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) - public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig - public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] - public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] - public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseAllChannelsBroadcastingLatestTxn() - public func forceCloseAllChannelsWithoutBroadcastingTxn() - public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ - public func abandonPayment(paymentId: [Swift.UInt8]) - public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func processPendingHtlcForwards() - public func timerTickOccurred() - public func failHtlcBackwards(paymentHash: [Swift.UInt8]) - public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) - public func claimFunds(paymentPreimage: [Swift.UInt8]) - public func getOurNodeId() -> [Swift.UInt8] - public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func getPhantomScid() -> Swift.UInt64 - public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints - public func getInterceptScid() -> Swift.UInt64 - public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func getPersistableUpdateFuture() -> LightningDevKit.Bindings.Future - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func initFeatures() -> LightningDevKit.Bindings.InitFeatures - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFee? @objc deinit } } -public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters +public typealias MultiThreadedScoreLockWrite = LightningDevKit.Bindings.MultiThreadedScoreLockWrite extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockWrite : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getValueSatoshis() -> Swift.UInt64 - public func setValueSatoshis(val: Swift.UInt64) - public func getKeysId() -> [Swift.UInt8]? - public func setKeysId(val: [Swift.UInt8]) - public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) - public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) - public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Hostname = LightningDevKit.Bindings.Hostname +public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool - public func len() -> Swift.UInt8 + public func getChannels() -> [Swift.UInt64] + public func setChannels(val: [Swift.UInt64]) + public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) + public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) + public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult +public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UtxoResultType { - case Sync - case Async - public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType - public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult - public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult - public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? - public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannel? @objc deinit } } -public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ +public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Hostname? + public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? @objc deinit } } -public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement +public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeSignature1() -> [Swift.UInt8] - public func setNodeSignature1(val: [Swift.UInt8]) - public func getNodeSignature2() -> [Swift.UInt8] - public func setNodeSignature2(val: [Swift.UInt8]) - public func getBitcoinSignature1() -> [Swift.UInt8] - public func setBitcoinSignature1(val: [Swift.UInt8]) - public func getBitcoinSignature2() -> [Swift.UInt8] - public func setBitcoinSignature2(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] + open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + open func signBolt12InvoiceRequest(invoiceRequest: LightningDevKit.Bindings.UnsignedInvoiceRequest) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signBolt12Invoice(invoice: LightningDevKit.Bindings.UnsignedBolt12Invoice) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ @objc deinit } } -public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ +public typealias Fallback = LightningDevKit.Bindings.Fallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public enum FallbackType { + case SegWitProgram + case PubKeyHash + case ScriptHash + public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType + public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool + public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? + public func getValueAsPubKeyHash() -> [Swift.UInt8]? + public func getValueAsScriptHash() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getVersion() -> Swift.UInt8 + public func getProgram() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHop? + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> Swift.Bool? @objc deinit } } -public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter +public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias +public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8]? - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ @objc deinit } } -public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ +public typealias Result_RecipientOnionFieldsNoneZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> Swift.Bool? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool + public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public func intoInner() -> LightningDevKit.Bindings.RouteHint + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error +public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bech32ErrorType { - case MissingSeparator - case InvalidChecksum - case InvalidLength - case InvalidChar - case InvalidData - case InvalidPadding - case MixedCase - public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType - public func getValueAsInvalidChar() -> Swift.UInt32? - public func getValueAsInvalidData() -> Swift.UInt8? + public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.GraphSyncError? + public func getValue() -> Swift.UInt32? @objc deinit } } -public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate +public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) - public func getForwardingFeeBaseMsat() -> Swift.UInt32? - public func setForwardingFeeBaseMsat(val: Swift.UInt32?) - public func getCltvExpiryDelta() -> Swift.UInt16? - public func setCltvExpiryDelta(val: Swift.UInt16?) - public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? - public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func getValueSatoshis() -> Swift.UInt64 + public func setValueSatoshis(val: Swift.UInt64) + public func getKeysId() -> [Swift.UInt8]? + public func setKeysId(val: [Swift.UInt8]) + public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters + public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit +public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getNetworks() -> [[Swift.UInt8]]? - public func setNetworks(val: [[Swift.UInt8]]?) - public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.NetAddress? - public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.NetAddress?) - public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.NetAddress?) - public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) + public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice + public func signableHash() -> [Swift.UInt8]? + public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature + public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func checkSignature() -> Swift.Bool + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func toStr() -> Swift.String public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus +public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ extension LightningDevKit.Bindings { - public enum ChannelMonitorUpdateStatus { - case Completed - case InProgress - case PermanentFailure - public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + @objc deinit } } -public typealias CreationError = LightningDevKit.Bindings.CreationError +public typealias Wallet = LightningDevKit.Bindings.Wallet extension LightningDevKit.Bindings { - public enum CreationError { - case DescriptionTooLong - case RouteTooLong - case TimestampOutOfBounds - case InvalidAmount - case MissingRouteHints - case MinFinalCltvExpiryDeltaTooShort - public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) + public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor +public typealias Router = LightningDevKit.Bindings.Router extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ @objc deinit } } -public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SignOrCreationError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public func getError() -> LightningDevKit.Bindings.ProbeSendFailure? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? @objc deinit } } -public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ +public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHint? + public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? @objc deinit } } -public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate +public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetworkUpdateType { - case ChannelUpdateMessage - case ChannelFailure - case NodeFailure - public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public enum ErrorActionType { + case DisconnectPeer + case DisconnectPeerWithWarning + case IgnoreError + case IgnoreAndLog + case IgnoreDuplicateGossip + case SendErrorMessage + case SendWarningMessage + public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType - public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? - public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? - public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? + public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType + public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? + public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? + public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? + public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? + public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getShortChannelId() -> Swift.UInt64 - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.WarningMessage @objc deinit } - @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - } -} -public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentSendFailureType { - case ParameterError - case PathParameterError - case AllFailedResendSafe - case DuplicatePayment - case PartialFailure - public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType - public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure - public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? - public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? - public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? - public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? - @objc deinit - @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] - public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters - public func getPaymentId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.WarningMessage + public func getLogLevel() -> LightningDevKit.Bindings.Level @objc deinit } } } -public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? - @objc deinit - } -} -public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ +public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? - @objc deinit - } -} -public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ -extension LightningDevKit.Bindings { - public enum Option_NoneZ { - case Some - case None - public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ +public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? + public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? @objc deinit } } -public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ +public typealias GossipSync = LightningDevKit.Bindings.GossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCDestination? + public enum GossipSyncType { + case P2P + case Rapid + case None + public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType + public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func none() -> LightningDevKit.Bindings.GossipSync + public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? + public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? @objc deinit } } -public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ +public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum HTLCClaim { + case OfferedTimeout + case OfferedPreimage + case AcceptedTimeout + case AcceptedPreimage + case Revocation + public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingCreated? + public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? @objc deinit } } -public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited +public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool - public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public func intoTransaction() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ +public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PathFailure? + public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? @objc deinit } } -public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ +public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + public func getValue() -> LightningDevKit.Bindings.TxAddInput? @objc deinit } } -public typealias WalletSource = LightningDevKit.Bindings.WalletSource +public typealias Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - open func getChangeScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)? @objc deinit } } -public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getData() -> LightningDevKit.Bindings.RawDataPart - public func setData(val: LightningDevKit.Bindings.RawDataPart) - public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func getSrcNodeId() -> [Swift.UInt8] + public func setSrcNodeId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64? + public func setHtlcMinimumMsat(val: Swift.UInt64?) + public func getHtlcMaximumMsat() -> Swift.UInt64? + public func setHtlcMaximumMsat(val: Swift.UInt64?) + public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func paymentHash() -> LightningDevKit.Bindings.Sha256? - public func description() -> LightningDevKit.Bindings.Description? - public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? - public func descriptionHash() -> LightningDevKit.Bindings.Sha256? - public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? - public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func amountPicoBtc() -> Swift.UInt64? - public func currency() -> LightningDevKit.Bindings.Currency + public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate +public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateId() -> Swift.UInt64 - public func setUpdateId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) + public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool + public func addresses() -> [LightningDevKit.Bindings.SocketAddress] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput +public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) public func getSerialId() -> Swift.UInt64 public func setSerialId(val: Swift.UInt64) - public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited - public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) - public func getPrevtxOut() -> Swift.UInt32 - public func setPrevtxOut(val: Swift.UInt32) - public func getSequence() -> Swift.UInt32 - public func setSequence(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func getSats() -> Swift.UInt64 + public func setSats(val: Swift.UInt64) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func call() - @objc deinit - } -} -public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getOurToSelfDelay() -> Swift.UInt16 - public func setOurToSelfDelay(val: Swift.UInt16) - public func getOurHtlcMinimumMsat() -> Swift.UInt64 - public func setOurHtlcMinimumMsat(val: Swift.UInt64) - public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 - public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) - public func getNegotiateScidPrivacy() -> Swift.Bool - public func setNegotiateScidPrivacy(val: Swift.Bool) - public func getAnnouncedChannel() -> Swift.Bool - public func setAnnouncedChannel(val: Swift.Bool) - public func getCommitUpfrontShutdownPubkey() -> Swift.Bool - public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) - public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 - public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) - public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) - public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 - public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) - public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias RouteHint = LightningDevKit.Bindings.RouteHint +public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [LightningDevKit.Bindings.RouteHintHop] - public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) - public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? @objc deinit } } -public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ +public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? + public func getError() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Result_PaymentHashPaymentSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ +public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> [Swift.UInt8]? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents +public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OnionMessageContentsType { - case Offers - case Custom - public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType - public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents - public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents - public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? - public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func call() @objc deinit } } -public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ +public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsType? + public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? @objc deinit } } -public typealias Wallet = LightningDevKit.Bindings.Wallet +public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) - public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource - public func isOwned() -> Swift.Bool + public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) + open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] + open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] + open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func channelKeysId() -> [Swift.UInt8] + open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys @objc deinit } } -public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ +public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? + public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ +public typealias Path = LightningDevKit.Bindings.Path extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func getHops() -> [LightningDevKit.Bindings.RouteHop] + public func setHops(val: [LightningDevKit.Bindings.RouteHop]) + public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? + public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) + public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool + public func feeMsat() -> Swift.UInt64 + public func finalValueMsat() -> Swift.UInt64 + public func finalCltvExpiryDelta() -> Swift.UInt32? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ +public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? @objc deinit } } -public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo +public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [Swift.UInt64] - public func setChannels(val: [Swift.UInt64]) - public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? - public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) - public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) - public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ +public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ +public typealias Description = LightningDevKit.Bindings.Description extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool + public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public func intoInner() -> Swift.String + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor +public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getPerCommitmentNumber() -> Swift.UInt64 - public func setPerCommitmentNumber(val: Swift.UInt64) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment - public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) - public func getPreimage() -> [Swift.UInt8]? - public func setPreimage(val: [Swift.UInt8]?) - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool - public func outpoint() -> LightningDevKit.Bindings.OutPoint - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func txOutput() -> LightningDevKit.Bindings.TxOut - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getIntroductionNodeId() -> [Swift.UInt8] + public func setIntroductionNodeId(val: [Swift.UInt8]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getBlindedHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setBlindedHops(val: [LightningDevKit.Bindings.BlindedHop]) + public init(introductionNodeIdArg: [Swift.UInt8], blindingPointArg: [Swift.UInt8], blindedHopsArg: [LightningDevKit.Bindings.BlindedHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool + public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func oneHopForPayment(payeeNodeId: [Swift.UInt8], payeeTlvs: LightningDevKit.Bindings.ReceiveTlvs, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ +public typealias Route = LightningDevKit.Bindings.Route extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getPaths() -> [LightningDevKit.Bindings.Path] + public func setPaths(val: [LightningDevKit.Bindings.Path]) + public func getRouteParams() -> LightningDevKit.Bindings.RouteParameters? + public func setRouteParams(val: LightningDevKit.Bindings.RouteParameters) + public init(pathsArg: [LightningDevKit.Bindings.Path], routeParamsArg: LightningDevKit.Bindings.RouteParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool + public func getTotalFees() -> Swift.UInt64 + public func getTotalAmount() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getPushMsat() -> Swift.UInt64 - public func setPushMsat(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool +public typealias Shutdown = LightningDevKit.Bindings.Shutdown +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getScriptpubkey() -> [Swift.UInt8] + public func setScriptpubkey(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ +public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.CoinSelection? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedTail? @objc deinit } } -public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> [Swift.UInt8]? + public init(scorer: LightningDevKit.Bindings.ScoreLookUp, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_KeyPairZNoneZ = LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_KeyPairZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ +public typealias EntropySource = LightningDevKit.Bindings.EntropySource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public init() + open func getSecureRandomBytes() -> [Swift.UInt8] @objc deinit } } -public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript +public typealias TxIn = LightningDevKit.Bindings.TxIn extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func intoInner() -> [Swift.UInt8] - public func asLegacyPubkey() -> [Swift.UInt8]? - public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) + public func getWitness() -> [Swift.UInt8] + public func getScriptSig() -> [Swift.UInt8] + public func getSequence() -> Swift.UInt32 + public func getPreviousTxid() -> [Swift.UInt8] + public func getPreviousVout() -> Swift.UInt32 @objc deinit } } -public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ +public typealias ScoreLookUp = LightningDevKit.Bindings.ScoreLookUp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreLookUp : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 @objc deinit } } -public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ +public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? + public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ +public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isInitialSyncComplete() -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OutPoint = LightningDevKit.Bindings.OutPoint +public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public func getIndex() -> Swift.UInt16 - public func setIndex(val: Swift.UInt16) - public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func toChannelId() -> [Swift.UInt8] + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]?) + public func getPaymentMetadata() -> [Swift.UInt8]? + public func setPaymentMetadata(val: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields + public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public func withCustomTlvs(customTlvs: [(Swift.UInt64, [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public func customTlvs() -> [(Swift.UInt64, [Swift.UInt8])] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SignatureNoneZ = LightningDevKit.Bindings.Result_SignatureNoneZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SignatureNoneZ + public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? @objc deinit } } -public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ +public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? + public init() + public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOffered() -> Swift.Bool - public func setOffered(val: Swift.Bool) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getTransactionOutputIndex() -> Swift.UInt32? - public func setTransactionOutputIndex(val: Swift.UInt32?) - public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) - public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getChannelTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func setChannelTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64, channelTransactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool + public func witnessScript() -> [Swift.UInt8]? + public func maxWitnessLength() -> Swift.UInt public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Refund = LightningDevKit.Bindings.Refund +public typealias Logger = LightningDevKit.Bindings.Logger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func log(record: LightningDevKit.Bindings.Record) + @objc deinit + } +} +public typealias Network = LightningDevKit.Bindings.Network +extension LightningDevKit.Bindings { + public enum Network { + case Bitcoin + case Testnet + case Regtest + case Signet + public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } +} +public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? - public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func metadata() -> [Swift.UInt8] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures public func quantity() -> Swift.UInt64? public func payerId() -> [Swift.UInt8] public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer +public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func debugLogLiquidityStats() - public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? - public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? - public func asScore() -> LightningDevKit.Bindings.Score + public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? + public func listChannels() -> [Swift.UInt64] + public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? + public func listNodes() -> [LightningDevKit.Bindings.NodeId] + public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.SocketAddress]? + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) + public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig + public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] + public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] + public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseAllChannelsBroadcastingLatestTxn() + public func forceCloseAllChannelsWithoutBroadcastingTxn() + public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ + public func abandonPayment(paymentId: [Swift.UInt8]) + public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public func sendSpontaneousPreflightProbes(nodeId: [Swift.UInt8], amountMsat: Swift.UInt64, finalCltvExpiryDelta: Swift.UInt32, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func sendPreflightProbes(routeParams: LightningDevKit.Bindings.RouteParameters, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func batchFundingTransactionGenerated(temporaryChannels: [([Swift.UInt8], [Swift.UInt8])], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func processPendingHtlcForwards() + public func timerTickOccurred() + public func failHtlcBackwards(paymentHash: [Swift.UInt8]) + public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) + public func claimFunds(paymentPreimage: [Swift.UInt8]) + public func claimFundsWithKnownCustomTlvs(paymentPreimage: [Swift.UInt8]) + public func getOurNodeId() -> [Swift.UInt8] + public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func getPhantomScid() -> Swift.UInt64 + public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints + public func getInterceptScid() -> Swift.UInt64 + public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func getEventOrPersistenceNeededFuture() -> LightningDevKit.Bindings.Future + public func getAndClearNeedsPersistence() -> Swift.Bool + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func initFeatures() -> LightningDevKit.Bindings.InitFeatures + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ +public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? + public init() + open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? + open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ @objc deinit } } -public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys +public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func asUnixTimestamp() -> Swift.UInt64 + public func asDurationSinceEpoch() -> Swift.UInt64 + public func asTime() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Watch = LightningDevKit.Bindings.Watch +public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] - @objc deinit + public enum Bolt11SemanticError { + case NoPaymentHash + case MultiplePaymentHashes + case NoDescription + case MultipleDescriptions + case NoPaymentSecret + case MultiplePaymentSecrets + case InvalidFeatures + case InvalidRecoveryId + case InvalidSignature + case ImpreciseAmount + public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler +public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) - open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? @objc deinit } } -public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +public typealias Utxo = LightningDevKit.Bindings.Utxo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool + public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias LightningError = LightningDevKit.Bindings.LightningError +public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func setErr(val: Swift.String) - public func getAction() -> LightningDevKit.Bindings.ErrorAction - public func setAction(val: LightningDevKit.Bindings.ErrorAction) - public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ +public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RoutingFees? + public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? @objc deinit } } -public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ +public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeFeatures? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getPaymentPreimage() -> [Swift.UInt8]? + public func setPaymentPreimage(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler +public typealias Ping = LightningDevKit.Bindings.Ping extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? - open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public func getPonglen() -> Swift.UInt16 + public func setPonglen(val: Swift.UInt16) + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlockHash() -> [Swift.UInt8]? - public func setBlockHash(val: [Swift.UInt8]?) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getScriptPubkey() -> [Swift.UInt8] - public func setScriptPubkey(val: [Swift.UInt8]) - public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] + public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) + public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] + public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) + public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] + public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) + public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] + public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) + public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? + public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) + public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned + public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) + public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) + public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Event? @objc deinit } } -public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ +public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxSignatures? + public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) + open func write() -> [Swift.UInt8] + public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner @objc deinit } } -public typealias Result_CVec_SignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ +public typealias DecodeError = LightningDevKit.Bindings.DecodeError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_SignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? + public enum DecodeErrorType { + case UnknownVersion + case UnknownRequiredFeature + case InvalidValue + case ShortRead + case BadLengthDescriptor + case Io + case UnsupportedCompression + public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType + public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError + public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError + public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError + public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError + public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError + public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError + public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError + public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool + public func getValueAsIo() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ +public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getPushMsat() -> Swift.UInt64 + public func setPushMsat(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ +public typealias PaymentError = LightningDevKit.Bindings.PaymentError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? + public enum PaymentErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError + public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError + public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? @objc deinit } } -public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ +public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? + public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? @objc deinit } } -public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters +public typealias Packet = LightningDevKit.Bindings.Packet extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Packet : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNetwork() -> LightningDevKit.Bindings.Network - public func setNetwork(val: LightningDevKit.Bindings.Network) - public func getBestBlock() -> LightningDevKit.Bindings.BestBlock - public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) - public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) + public func getVersion() -> Swift.UInt8 + public func setVersion(val: Swift.UInt8) + public func getPublicKey() -> [Swift.UInt8] + public func setPublicKey(val: [Swift.UInt8]) + public func getHopData() -> [Swift.UInt8] + public func setHopData(val: [Swift.UInt8]) + public func getHmac() -> [Swift.UInt8]? + public func setHmac(val: [Swift.UInt8]) + public init(versionArg: Swift.UInt8, publicKeyArg: [Swift.UInt8], hopDataArg: [Swift.UInt8], hmacArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Packet, b: LightningDevKit.Bindings.Packet) -> Swift.Bool + public func write() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - @objc deinit - } + public class func getLDKSwiftBindingsSerializationHash() -> Swift.String + public class func getLDKSwiftBindingsVersion() -> Swift.String + public class func getLDKSwiftBindingsCommitHash() -> Swift.String } -public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor +public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) - public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getBaseMsat() -> Swift.UInt32 + public func setBaseMsat(val: Swift.UInt32) + public func getProportionalMillionths() -> Swift.UInt32 + public func setProportionalMillionths(val: Swift.UInt32) + public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider +public typealias Listen = LightningDevKit.Bindings.Listen extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage + open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) + open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) @objc deinit } } -public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ +public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PrivateRoute? @objc deinit } } -public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ +public typealias FilesystemStore = LightningDevKit.Bindings.FilesystemStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FilesystemStore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + public init(dataDir: Swift.String) + public func getDataDir() -> Swift.String + public func asKVStore() -> LightningDevKit.Bindings.KVStore + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph +public typealias EventHandler = LightningDevKit.Bindings.EventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? - public func listChannels() -> [Swift.UInt64] - public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? - public func listNodes() -> [LightningDevKit.Bindings.NodeId] - public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.NetAddress]? - public func isOwned() -> Swift.Bool + public init() + open func handleEvent(event: LightningDevKit.Bindings.Event) @objc deinit } } -public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner +public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingKey() -> [Swift.UInt8]? - public func setFundingKey(val: [Swift.UInt8]) - public func getRevocationBaseKey() -> [Swift.UInt8]? - public func setRevocationBaseKey(val: [Swift.UInt8]) - public func getPaymentKey() -> [Swift.UInt8]? - public func setPaymentKey(val: [Swift.UInt8]) - public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? - public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) - public func getHtlcBaseKey() -> [Swift.UInt8]? - public func setHtlcBaseKey(val: [Swift.UInt8]) - public func getCommitmentSeed() -> [Swift.UInt8]? - public func setCommitmentSeed(val: [Swift.UInt8]) - public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) - public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func counterpartySelectedContestDelay() -> Swift.UInt16 - public func holderSelectedContestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner - public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner - public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) - public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice - public func signableHash() -> [Swift.UInt8]? - public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature - public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public func checkSignature() -> Swift.Bool - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func toStr() -> Swift.String + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice +public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func description() -> LightningDevKit.Bindings.PrintableString - public func createdAt() -> Swift.UInt64 - public func relativeExpiry() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func paymentHash() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func signingPubkey() -> [Swift.UInt8] - public func signableHash() -> [Swift.UInt8] - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> Swift.Bool - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? @objc deinit } } -public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ +public typealias MultiThreadedScoreLockRead = LightningDevKit.Bindings.MultiThreadedScoreLockRead extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockRead : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OnionMessage? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Event = LightningDevKit.Bindings.Event +public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EventType { - case FundingGenerationReady - case PaymentClaimable - case PaymentClaimed - case PaymentSent - case PaymentFailed - case PaymentPathSuccessful - case PaymentPathFailed - case ProbeSuccessful - case ProbeFailed - case PendingHTLCsForwardable - case HTLCIntercepted - case SpendableOutputs - case PaymentForwarded - case ChannelPending - case ChannelReady - case ChannelClosed - case DiscardFunding - case OpenChannelRequest - case HTLCHandlingFailed - case BumpTransaction - public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Event.EventType - public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8], viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Event - public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8], nextChannelId: [Swift.UInt8], feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event - public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason) -> LightningDevKit.Bindings.Event - public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event - public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event - public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? - public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? - public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? - public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? - public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? - public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? - public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? - public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? - public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? - public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? - public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? - public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? - public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? - public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? - public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? - public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? - public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? - public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? - public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? - public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) + public func getForwardingFeeBaseMsat() -> Swift.UInt32? + public func setForwardingFeeBaseMsat(val: Swift.UInt32?) + public func getCltvExpiryDelta() -> Swift.UInt16? + public func setCltvExpiryDelta(val: Swift.UInt16?) + public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + @objc deinit + } +} +public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OutPoint? + @objc deinit + } +} +public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + @objc deinit + } +} +public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? + @objc deinit + } +} +public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SendError? + @objc deinit + } +} +public typealias TxAbort = LightningDevKit.Bindings.TxAbort +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> [Swift.UInt8] + public func setData(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelValueSatoshis() -> Swift.UInt64 - public func getOutputScript() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields - public func getAmountMsat() -> Swift.UInt64 - public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - public func getViaChannelId() -> [Swift.UInt8] - public func getViaUserChannelId() -> [Swift.UInt8]? - public func getClaimDeadline() -> Swift.UInt32? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getAmountMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentPreimage() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getFeePaidMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8]? - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentFailedPermanently() -> Swift.Bool - public func getFailure() -> LightningDevKit.Bindings.PathFailure - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTimeForwardable() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getInterceptId() -> [Swift.UInt8] - public func getRequestedNextHopScid() -> Swift.UInt64 - public func getPaymentHash() -> [Swift.UInt8] - public func getInboundAmountMsat() -> Swift.UInt64 - public func getExpectedOutboundAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getNextChannelId() -> [Swift.UInt8] - public func getFeeEarnedMsat() -> Swift.UInt64? - public func getClaimFromOnchainTx() -> Swift.Bool - public func getOutboundAmountForwardedMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getFormerTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.ClosureReason - @objc deinit - } - @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getTransaction() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingSatoshis() -> Swift.UInt64 - public func getPushMsat() -> Swift.UInt64 - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination - @objc deinit - } } } public typealias InvoiceRequestFeatures = LightningDevKit.Bindings.InvoiceRequestFeatures @@ -6226,880 +6960,1033 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class InvoiceRequestFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + @objc deinit + } +} +public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getData() -> LightningDevKit.Bindings.RawDataPart + public func setData(val: LightningDevKit.Bindings.RawDataPart) + public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func paymentHash() -> LightningDevKit.Bindings.Sha256? + public func description() -> LightningDevKit.Bindings.Description? + public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? + public func descriptionHash() -> LightningDevKit.Bindings.Sha256? + public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? + public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func amountPicoBtc() -> Swift.UInt64? + public func currency() -> LightningDevKit.Bindings.Currency + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getEnabled() -> Swift.Bool + public func setEnabled(val: Swift.Bool) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? + public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) + public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func setKeysendOptional() + public func setKeysendRequired() + public func supportsKeysend() -> Swift.Bool + public func requiresKeysend() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteParameters? @objc deinit } } -public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Offer? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHop? @objc deinit } } -public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage +public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func getTxHash() -> [Swift.UInt8]? + public func setTxHash(val: [Swift.UInt8]) + public func getWitnesses() -> [[Swift.UInt8]] + public func setWitnesses(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ +public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func getIntermediateNodes() -> [[Swift.UInt8]] + public func setIntermediateNodes(val: [[Swift.UInt8]]) + public func getDestination() -> LightningDevKit.Bindings.Destination + public func setDestination(val: LightningDevKit.Bindings.Destination) + public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [LightningDevKit.Bindings.Utxo]? + @objc deinit + } +} +@_hasMissingDesignatedInitializers public class LDKExampleClass { + public class func printSomething() + public func printInstance() + @objc deinit +} +public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + @objc deinit + } +} +public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeInfo? + public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? @objc deinit } } -public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction +public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ErrorActionType { - case DisconnectPeer - case DisconnectPeerWithWarning - case IgnoreError - case IgnoreAndLog - case IgnoreDuplicateGossip - case SendErrorMessage - case SendWarningMessage - public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType - public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? - public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? - public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? - public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? - public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeSatoshis() -> Swift.UInt64 + public func setFeeSatoshis(val: Swift.UInt64) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) + public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) + public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - public func getLogLevel() -> LightningDevKit.Bindings.Level - @objc deinit - } } } -public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer +public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer - public func asScore() -> LightningDevKit.Bindings.Score + public func getA() -> [Swift.UInt8]? + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPreimageAPIErrorZ = LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ +public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPreimageAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? + public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters + public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public func getMaxTotalRoutingFeeMsat() -> Swift.UInt64? + public func setMaxTotalRoutingFeeMsat(val: Swift.UInt64?) + public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64, maxTotalRoutingFeeMsatArg: Swift.UInt64?) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public class func initWithPaymentParamsAndValue(paymentParams: LightningDevKit.Bindings.PaymentParameters, finalValueMsat: Swift.UInt64) -> LightningDevKit.Bindings.RouteParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ +public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? + public enum SignOrCreationErrorType { + case SignError + case CreationError + public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType + public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError + public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError + public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? @objc deinit } } -public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingSigned? + public init() + open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult @objc deinit } } -public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints +public enum NetworkGraphArgument { + case serialized([Swift.UInt8]) + case instance(LightningDevKit.NetworkGraph) +} +public struct ChannelManagerConstructionParameters { + public var config: LightningDevKit.UserConfig + public var entropySource: LightningDevKit.EntropySource + public var nodeSigner: LightningDevKit.NodeSigner + public var signerProvider: LightningDevKit.SignerProvider + public var feeEstimator: LightningDevKit.FeeEstimator + public var chainMonitor: LightningDevKit.ChainMonitor + public var txBroadcaster: LightningDevKit.BroadcasterInterface + public var enableP2PGossip: Swift.Bool + public var scorer: LightningDevKit.MultiThreadedLockableScore? + public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? + public var payerRetries: LightningDevKit.Bindings.Retry + public var logger: LightningDevKit.Logger + public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt32(3))) +} +@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { + final public let channelManager: LightningDevKit.ChannelManager + final public let channel_manager_latest_block_hash: [Swift.UInt8]? + public var netGraph: LightningDevKit.NetworkGraph? { + get + } + final public let peerManager: LightningDevKit.PeerManager + public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { + get + } + public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws + public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) + public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) + public func interrupt() + public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler + @objc deinit +} +public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { + func handleEvent(event: LightningDevKit.Event) +} +@_hasMissingDesignatedInitializers public class TCPPeerHandler { + public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool + public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool + @objc deinit +} +public typealias KeysManager = LightningDevKit.Bindings.KeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) - public func getPhantomScid() -> Swift.UInt64 - public func setPhantomScid(val: Swift.UInt64) - public func getRealNodePubkey() -> [Swift.UInt8] - public func setRealNodePubkey(val: [Swift.UInt8]) - public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) + public func getNodeSecretKey() -> [Swift.UInt8] + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ +public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias UserConfig = LightningDevKit.Bindings.UserConfig +public typealias Filter = LightningDevKit.Bindings.Filter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig - public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) - public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) - public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig - public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) - public func getAcceptForwardsToPrivChannels() -> Swift.Bool - public func setAcceptForwardsToPrivChannels(val: Swift.Bool) - public func getAcceptInboundChannels() -> Swift.Bool - public func setAcceptInboundChannels(val: Swift.Bool) - public func getManuallyAcceptInboundChannels() -> Swift.Bool - public func setManuallyAcceptInboundChannels(val: Swift.Bool) - public func getAcceptInterceptHtlcs() -> Swift.Bool - public func setAcceptInterceptHtlcs(val: Swift.Bool) - public func getAcceptMppKeysend() -> Swift.Bool - public func setAcceptMppKeysend(val: Swift.Bool) - public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) - public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig - public func isOwned() -> Swift.Bool + public init() + open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) + open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) @objc deinit } } -public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ +public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.Description? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? @objc deinit } } -public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 +public typealias Sha256 = LightningDevKit.Bindings.Sha256 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool + public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ +public typealias BindingsError = LightningDevKit.Bindings.BindingsError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + public func getDummy() -> Swift.UInt8 @objc deinit } } -public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure -extension LightningDevKit.Bindings { - public enum RetryableSendFailure { - case PaymentExpired - case RouteNotFound - case DuplicatePayment - public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange +public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public func getSyncComplete() -> Swift.Bool - public func setSyncComplete(val: Swift.Bool) - public func getShortChannelIds() -> [Swift.UInt64] - public func setShortChannelIds(val: [Swift.UInt64]) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) - public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDetails? @objc deinit } } -public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +public typealias APIError = LightningDevKit.Bindings.APIError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RecentPaymentDetailsType { - case Pending - case Fulfilled - case Abandoned - public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public enum APIErrorType { + case APIMisuseError + case FeeRateTooHigh + case InvalidRoute + case ChannelUnavailable + case MonitorUpdateInProgress + case IncompatibleShutdownScript + public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType - public class func initWithPending(paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithFulfilled(paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithAbandoned(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails - public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? - public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? - public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType + public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError + public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError + public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError + public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? + public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? + public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? + public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? + public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? @objc deinit - @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] - public func getTotalMsat() -> Swift.UInt64 + public func getErr() -> Swift.String @objc deinit } - @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8]? + public func getErr() -> Swift.String + public func getFeerate() -> Swift.UInt32 @objc deinit } - @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getScript() -> LightningDevKit.Bindings.ShutdownScript @objc deinit } } } -public typealias Record = LightningDevKit.Bindings.Record +public typealias TxComplete = LightningDevKit.Bindings.TxComplete extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLevel() -> LightningDevKit.Bindings.Level - public func setLevel(val: LightningDevKit.Bindings.Level) - public func getArgs() -> Swift.String - public func setArgs(val: Swift.String) - public func getModulePath() -> Swift.String - public func setModulePath(val: Swift.String) - public func getFile() -> Swift.String - public func setFile(val: Swift.String) - public func getLine() -> Swift.UInt32 - public func setLine(val: Swift.UInt32) + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ +public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getBasePenaltyMsat() -> Swift.UInt64 + public func setBasePenaltyMsat(val: Swift.UInt64) + public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getAntiProbingPenaltyMsat() -> Swift.UInt64 + public func setAntiProbingPenaltyMsat(val: Swift.UInt64) + public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 + public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) + public func getLinearSuccessProbability() -> Swift.Bool + public func setLinearSuccessProbability(val: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters + public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) + public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) + public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) + public func clearManualPenalties() + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler +public typealias Result_C2Tuple_CVec_u8ZusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_CVec_u8ZusizeZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? - public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) - public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? - public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) - public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? - public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) - public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? - public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) - public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], Swift.UInt)? @objc deinit } } -public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields +public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentSecret() -> [Swift.UInt8]? - public func setPaymentSecret(val: [Swift.UInt8]?) - public func getPaymentMetadata() -> [Swift.UInt8]? - public func setPaymentMetadata(val: [Swift.UInt8]?) - public init(paymentSecretArg: [Swift.UInt8]?, paymentMetadataArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields - public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity +public typealias ForwardTlvs = LightningDevKit.Bindings.ForwardTlvs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ForwardTlvs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EffectiveCapacityType { - case ExactLiquidity - case AdvertisedMaxHTLC - case Total - case Infinite - case HintMaxHTLC - case Unknown - public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType - public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity - public func asMsat() -> Swift.UInt64 - public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? - public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? - public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? - public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getPaymentRelay() -> LightningDevKit.Bindings.PaymentRelay + public func setPaymentRelay(val: LightningDevKit.Bindings.PaymentRelay) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(shortChannelIdArg: Swift.UInt64, paymentRelayArg: LightningDevKit.Bindings.PaymentRelay, paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getLiquidityMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getCapacityMsat() -> Swift.UInt64 - public func getHtlcMaximumMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } } } -public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager +public typealias OutPoint = LightningDevKit.Bindings.OutPoint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func getNodeSecretKey() -> [Swift.UInt8] - public func getPhantomNodeSecretKey() -> [Swift.UInt8] + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public func getIndex() -> Swift.UInt16 + public func setIndex(val: Swift.UInt16) + public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func toChannelId() -> [Swift.UInt8] + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ +public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? + public func getValue() -> LightningDevKit.Bindings.TxAbort? @objc deinit } } -public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ +public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPath? + public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? @objc deinit } } -public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ +public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? + public func getUpdateId() -> Swift.UInt64 + public func setUpdateId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ +public typealias Persister = LightningDevKit.Bindings.Persister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosureReason? + public init() + open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneIOErrorZ @objc deinit } } -public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFeeSatoshis() -> Swift.UInt64 - public func setMinFeeSatoshis(val: Swift.UInt64) - public func getMaxFeeSatoshis() -> Swift.UInt64 - public func setMaxFeeSatoshis(val: Swift.UInt64) - public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public func getSyncComplete() -> Swift.Bool + public func setSyncComplete(val: Swift.Bool) + public func getShortChannelIds() -> [Swift.UInt64] + public func setShortChannelIds(val: [Swift.UInt64]) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) + public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction +public typealias Score = LightningDevKit.Bindings.Score +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(scoreLookUp: LightningDevKit.Bindings.ScoreLookUp, scoreUpdate: LightningDevKit.Bindings.ScoreUpdate) + open func write() -> [Swift.UInt8] + public func getScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func getScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + @objc deinit + } +} +public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + @objc deinit + } +} +public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func tlvType() -> Swift.UInt64 + open func write() -> [Swift.UInt8] + @objc deinit + } +} +public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTransaction() -> [Swift.UInt8] - public func setTransaction(val: [Swift.UInt8]) - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? @objc deinit } } -public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError +public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] + public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) + public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? + public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) + public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters +public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getSelectedContestDelay() -> Swift.UInt16 - public func setSelectedContestDelay(val: Swift.UInt16) - public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ +public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Event? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) + public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) + public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ +public typealias VerifiedInvoiceRequest = LightningDevKit.Bindings.VerifiedInvoiceRequest extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class VerifiedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? + public func getKeys() -> [Swift.UInt8]? + public func setKeys(val: [Swift.UInt8]?) + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ +public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValue() -> LightningDevKit.Bindings.Hostname? @objc deinit } } -public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated +public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingTxid() -> [Swift.UInt8]? - public func setFundingTxid(val: [Swift.UInt8]) - public func getFundingOutputIndex() -> Swift.UInt16 - public func setFundingOutputIndex(val: Swift.UInt16) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeInfo? @objc deinit } } -public enum NetworkGraphArgument { - case serialized([Swift.UInt8]) - case instance(LightningDevKit.NetworkGraph) -} -public struct ChannelManagerConstructionParameters { - public var config: LightningDevKit.UserConfig - public var entropySource: LightningDevKit.EntropySource - public var nodeSigner: LightningDevKit.NodeSigner - public var signerProvider: LightningDevKit.SignerProvider - public var feeEstimator: LightningDevKit.FeeEstimator - public var chainMonitor: LightningDevKit.ChainMonitor - public var txBroadcaster: LightningDevKit.BroadcasterInterface - public var enableP2PGossip: Swift.Bool - public var scorer: LightningDevKit.MultiThreadedLockableScore? - public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? - public var payerRetries: LightningDevKit.Bindings.Retry - public var logger: LightningDevKit.Logger - public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt(3))) -} -@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { - final public let channelManager: LightningDevKit.ChannelManager - final public let channel_manager_latest_block_hash: [Swift.UInt8]? - public var netGraph: LightningDevKit.NetworkGraph? { - get - } - final public let peerManager: LightningDevKit.PeerManager - public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { - get - } - public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws - public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) - public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) - public func interrupt() - public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler - @objc deinit -} -public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { - func handleEvent(event: LightningDevKit.Event) -} -@_hasMissingDesignatedInitializers public class TCPPeerHandler { - public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool - public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool - @objc deinit -} -public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC +public typealias Result_NoneIOErrorZ = LightningDevKit.Bindings.Result_NoneIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getPaymentPreimage() -> [Swift.UInt8]? - public func setPaymentPreimage(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias IOError = LightningDevKit.Bindings.IOError +public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ extension LightningDevKit.Bindings { - public enum IOError { - case NotFound - case PermissionDenied - case ConnectionRefused - case ConnectionReset - case ConnectionAborted - case NotConnected - case AddrInUse - case AddrNotAvailable - case BrokenPipe - case AlreadyExists - case WouldBlock - case InvalidInput - case InvalidData - case TimedOut - case WriteZero - case Interrupted - case Other - case UnexpectedEof - public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.CoinSelection? + @objc deinit } } -public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ +public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Ping? + public func getFundingKey() -> [Swift.UInt8]? + public func setFundingKey(val: [Swift.UInt8]) + public func getRevocationBaseKey() -> [Swift.UInt8]? + public func setRevocationBaseKey(val: [Swift.UInt8]) + public func getPaymentKey() -> [Swift.UInt8]? + public func setPaymentKey(val: [Swift.UInt8]) + public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? + public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) + public func getHtlcBaseKey() -> [Swift.UInt8]? + public func setHtlcBaseKey(val: [Swift.UInt8]) + public func getCommitmentSeed() -> [Swift.UInt8]? + public func setCommitmentSeed(val: [Swift.UInt8]) + public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) + public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys? + public func counterpartySelectedContestDelay() -> Swift.UInt16? + public func holderSelectedContestDelay() -> Swift.UInt16? + public func isOutbound() -> Swift.Bool? + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getSkimmedFeeMsat() -> Swift.UInt64? - public func setSkimmedFeeMsat(val: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public func getShortChannelIdAlias() -> Swift.UInt64? + public func setShortChannelIdAlias(val: Swift.UInt64?) + public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MonitorEventType { - case HTLCEvent - case CommitmentTxConfirmed - case Completed - case UpdateFailed - public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType - public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCommitmentTxConfirmed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithUpdateFailed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? - public func getValueAsCommitmentTxConfirmed() -> LightningDevKit.Bindings.OutPoint? - public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? - public func getValueAsUpdateFailed() -> LightningDevKit.Bindings.OutPoint? + public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxInitRbf? @objc deinit - @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - public func getMonitorUpdateId() -> Swift.UInt64 - @objc deinit - } } } -public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + public func getValue() -> LightningDevKit.Bindings.HTLCDestination? @objc deinit } } @@ -7120,373 +8007,189 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) - public func getGenesisHash() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) - public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph - public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? - public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) - public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func channelFailedPermanent(shortChannelId: Swift.UInt64) - public func nodeFailedPermanent(nodeId: [Swift.UInt8]) - public func removeStaleChannelsAndTracking() - public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) - public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Quantity = LightningDevKit.Bindings.Quantity +public typealias Result_ThirtyTwoBytesPaymentErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Shutdown = LightningDevKit.Bindings.Shutdown +public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getScriptpubkey() -> [Swift.UInt8] - public func setScriptpubkey(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? @objc deinit } } -public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo +public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getNodeOne() -> LightningDevKit.Bindings.NodeId - public func setNodeOne(val: LightningDevKit.Bindings.NodeId) - public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getNodeTwo() -> LightningDevKit.Bindings.NodeId - public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) - public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getCapacitySats() -> Swift.UInt64? - public func setCapacitySats(val: Swift.UInt64?) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool - public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? @objc deinit } } -public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError +public typealias TxOut = LightningDevKit.Bindings.TxOut extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ParseOrSemanticErrorType { - case ParseError - case SemanticError - public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType - public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) + public func getScriptPubkey() -> [Swift.UInt8] + public func getValue() -> Swift.UInt64 @objc deinit } } -@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { - public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - @objc deinit - open var hashValue: Swift.Int { - get - } -} -@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { - public func activate() -> Self - public func activateOnce() -> Self - @objc deinit -} -@_hasMissingDesignatedInitializers public class Bindings { - public enum PrintSeverity : Swift.UInt { - case DEBUG - case WARNING - case ERROR - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { - get - } - } - public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) - public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) - public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer - public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper - public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String - public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func ldkGetCompiledVersion() -> Swift.String - public class func ldkCBindingsGetCompiledVersion() -> Swift.String - public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool - public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] - public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures - public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] - public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] - public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] - public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] - public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] - public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 - public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.Score, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") - public class func readBlockHashChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func readBlockHashChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - @objc deinit -} -@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { - public init() - public func getPointer() -> Swift.UnsafeMutableRawPointer - @objc deinit -} -public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo +public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) - public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool - public func addresses() -> [LightningDevKit.Bindings.NetAddress] + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsInit? + public func getValue() -> LightningDevKit.Bindings.PathFailure? @objc deinit } } -public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop +public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) + open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader @objc deinit } } -public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice +public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func signingPubkey() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOk() -> Swift.Bool @objc deinit } } -public typealias APIError = LightningDevKit.Bindings.APIError +public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum APIErrorType { - case APIMisuseError - case FeeRateTooHigh - case InvalidRoute - case ChannelUnavailable - case MonitorUpdateInProgress - case IncompatibleShutdownScript - public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType - public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError - public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError - public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError - public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? - public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? - public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? - public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? - public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? + public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) + open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider @objc deinit - @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func getFeerate() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getScript() -> LightningDevKit.Bindings.ShutdownScript - @objc deinit - } } } -public typealias Result_NoneErrorZ = LightningDevKit.Bindings.Result_NoneErrorZ +public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? @objc deinit } } -public typealias NetAddress = LightningDevKit.Bindings.NetAddress +public typealias SocketAddress = LightningDevKit.Bindings.SocketAddress extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetAddress : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SocketAddress : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetAddressType { - case IPv4 - case IPv6 + public enum SocketAddressType { + case TcpIpV4 + case TcpIpV6 case OnionV2 case OnionV3 case Hostname - public static func == (a: LightningDevKit.Bindings.NetAddress.NetAddressType, b: LightningDevKit.Bindings.NetAddress.NetAddressType) -> Swift.Bool + public static func == (a: LightningDevKit.Bindings.SocketAddress.SocketAddressType, b: LightningDevKit.Bindings.SocketAddress.SocketAddressType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetAddress.NetAddressType - public class func initWithIpv4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithIpv6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func eq(a: LightningDevKit.Bindings.NetAddress, b: LightningDevKit.Bindings.NetAddress) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func getValueAsIPv4() -> LightningDevKit.Bindings.NetAddress.IPv4? - public func getValueAsIPv6() -> LightningDevKit.Bindings.NetAddress.IPv6? + public func getValueType() -> LightningDevKit.Bindings.SocketAddress.SocketAddressType + public class func initWithTcpIpV4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithTcpIpV6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func eq(a: LightningDevKit.Bindings.SocketAddress, b: LightningDevKit.Bindings.SocketAddress) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func getValueAsTcpIpV4() -> LightningDevKit.Bindings.SocketAddress.TcpIpV4? + public func getValueAsTcpIpV6() -> LightningDevKit.Bindings.SocketAddress.TcpIpV6? public func getValueAsOnionV2() -> [Swift.UInt8]? - public func getValueAsOnionV3() -> LightningDevKit.Bindings.NetAddress.OnionV3? - public func getValueAsHostname() -> LightningDevKit.Bindings.NetAddress.Hostname? + public func getValueAsOnionV3() -> LightningDevKit.Bindings.SocketAddress.OnionV3? + public func getValueAsHostname() -> LightningDevKit.Bindings.SocketAddress.Hostname? @objc deinit - @_hasMissingDesignatedInitializers public class IPv4 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV4 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] public func getPort() -> Swift.UInt16 @objc deinit } - @_hasMissingDesignatedInitializers public class IPv6 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV6 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] @@ -7511,1396 +8214,1367 @@ extension LightningDevKit.Bindings { } } } -public typealias NodeId = LightningDevKit.Bindings.NodeId +public typealias RouteHop = LightningDevKit.Bindings.RouteHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId - public func asSlice() -> [Swift.UInt8] - public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public func getPubkey() -> [Swift.UInt8] + public func setPubkey(val: [Swift.UInt8]) + public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getFeeMsat() -> Swift.UInt64 + public func setFeeMsat(val: Swift.UInt64) + public func getCltvExpiryDelta() -> Swift.UInt32 + public func setCltvExpiryDelta(val: Swift.UInt32) + public func getMaybeAnnouncedChannel() -> Swift.Bool + public func setMaybeAnnouncedChannel(val: Swift.Bool) + public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32, maybeAnnouncedChannelArg: Swift.Bool) public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ +public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) + public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] + public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] + public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] + public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func getUpdateFuture() -> LightningDevKit.Bindings.Future + public func rebroadcastPendingClaims() + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func asWatch() -> LightningDevKit.Bindings.Watch + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstTimestamp() -> Swift.UInt32 + public func setFirstTimestamp(val: Swift.UInt32) + public func getTimestampRange() -> Swift.UInt32 + public func setTimestampRange(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + @objc deinit + } +} +public typealias Result_RetryDecodeErrorZ = LightningDevKit.Bindings.Result_RetryDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RetryDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddInput? + public func getValue() -> LightningDevKit.Bindings.Retry? @objc deinit } } -public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate +public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] - public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) - public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] - public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) - public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] - public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) - public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] - public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) - public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? - public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) - public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned - public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) - public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) - public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> Swift.Bool? + @objc deinit + } +} +public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_SignatureCVec_SignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ +public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_SignatureCVec_SignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? + public init() + public func getMinSeenSecret() -> Swift.UInt64 + public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState -extension LightningDevKit.Bindings { - public enum ChannelShutdownState { - case NotShuttingDown - case ShutdownInitiated - case ResolvingHTLCs - case NegotiatingClosingFee - case ShutdownComplete - public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ +public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? @objc deinit } } -public typealias DecodeError = LightningDevKit.Bindings.DecodeError +public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DecodeErrorType { - case UnknownVersion - case UnknownRequiredFeature - case InvalidValue - case ShortRead - case BadLengthDescriptor - case Io - case UnsupportedCompression - public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType - public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError - public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError - public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError - public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError - public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError - public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError - public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError - public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool - public func getValueAsIo() -> LightningDevKit.Bindings.IOError? + public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WarningMessage? @objc deinit } } -public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider +public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ +public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReady? + public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? @objc deinit } } -public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +public typealias PaymentConstraints = LightningDevKit.Bindings.PaymentConstraints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentConstraints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + public func getMaxCltvExpiry() -> Swift.UInt32 + public func setMaxCltvExpiry(val: Swift.UInt32) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public init(maxCltvExpiryArg: Swift.UInt32, htlcMinimumMsatArg: Swift.UInt64) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ +public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannel? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? @objc deinit } } -public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate +public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? @objc deinit } } -public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor +public typealias Future = LightningDevKit.Bindings.Future extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) - public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] - public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] - public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] - public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func getUpdateFuture() -> LightningDevKit.Bindings.Future - public func rebroadcastPendingClaims() - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func asWatch() -> LightningDevKit.Bindings.Watch - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError +public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ClosingSigned? @objc deinit } } -public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner +public typealias RouteHint = LightningDevKit.Bindings.RouteHint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] - open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_SignatureNoneZ + public func getA() -> [LightningDevKit.Bindings.RouteHintHop] + public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) + public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures +public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } -public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection +public typealias Result_CVec_u8ZIOErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] - public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) - public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? - public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) - public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias FilesystemPersister = LightningDevKit.Bindings.FilesystemPersister +public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FilesystemPersister : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(pathToChannelData: Swift.String) - public func getDataDir() -> Swift.String - public func readChannelmonitors(entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ + public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func debugLogLiquidityStats() + public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? + public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? + public func historicalEstimatedPaymentSuccessProbability(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId, amountMsat: Swift.UInt64, params: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.Double? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func asScore() -> LightningDevKit.Bindings.Score + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool +public typealias NodeId = LightningDevKit.Bindings.NodeId +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId + public func asSlice() -> [Swift.UInt8] + public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner +public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) - open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func getNodeSignature1() -> [Swift.UInt8] + public func setNodeSignature1(val: [Swift.UInt8]) + public func getNodeSignature2() -> [Swift.UInt8] + public func setNodeSignature2(val: [Swift.UInt8]) + public func getBitcoinSignature1() -> [Swift.UInt8] + public func setBitcoinSignature1(val: [Swift.UInt8]) + public func getBitcoinSignature2() -> [Swift.UInt8] + public func setBitcoinSignature2(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ +public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum ChannelMonitorUpdateStatus { + case Completed + case InProgress + case UnrecoverableError + public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAckRbf? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters +public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func contestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func isOwned() -> Swift.Bool + public enum HTLCDestinationType { + case NextHopChannel + case UnknownNextHop + case InvalidForward + case FailedPayment + public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType + public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? + public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? + public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? + public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? @objc deinit + @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } } } -public typealias Result_PaymentSecretNoneZ = LightningDevKit.Bindings.Result_PaymentSecretNoneZ +public typealias Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ = LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.SendError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)? @objc deinit } } -public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty - public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? - public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getShortChannelId() -> Swift.UInt64? - public func setShortChannelId(val: Swift.UInt64?) - public func getOutboundScidAlias() -> Swift.UInt64? - public func setOutboundScidAlias(val: Swift.UInt64?) - public func getInboundScidAlias() -> Swift.UInt64? - public func setInboundScidAlias(val: Swift.UInt64?) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public func getUnspendablePunishmentReserve() -> Swift.UInt64? - public func setUnspendablePunishmentReserve(val: Swift.UInt64?) - public func getUserChannelId() -> [Swift.UInt8] - public func setUserChannelId(val: [Swift.UInt8]) - public func getFeerateSatPer1000Weight() -> Swift.UInt32? - public func setFeerateSatPer1000Weight(val: Swift.UInt32?) - public func getBalanceMsat() -> Swift.UInt64 - public func setBalanceMsat(val: Swift.UInt64) - public func getOutboundCapacityMsat() -> Swift.UInt64 - public func setOutboundCapacityMsat(val: Swift.UInt64) - public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 - public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) - public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 - public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) - public func getInboundCapacityMsat() -> Swift.UInt64 - public func setInboundCapacityMsat(val: Swift.UInt64) - public func getConfirmationsRequired() -> Swift.UInt32? - public func setConfirmationsRequired(val: Swift.UInt32?) - public func getConfirmations() -> Swift.UInt32? - public func setConfirmations(val: Swift.UInt32?) - public func getForceCloseSpendDelay() -> Swift.UInt16? - public func setForceCloseSpendDelay(val: Swift.UInt16?) - public func getIsOutbound() -> Swift.Bool - public func setIsOutbound(val: Swift.Bool) - public func getIsChannelReady() -> Swift.Bool - public func setIsChannelReady(val: Swift.Bool) - public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? - public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) - public func getIsUsable() -> Swift.Bool - public func setIsUsable(val: Swift.Bool) - public func getIsPublic() -> Swift.Bool - public func setIsPublic(val: Swift.Bool) - public func getInboundHtlcMinimumMsat() -> Swift.UInt64? - public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getInboundHtlcMaximumMsat() -> Swift.UInt64? - public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) - public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? - public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) - public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) - public func getInboundPaymentScid() -> Swift.UInt64? - public func getOutboundPaymentScid() -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias Result_PublicKeyErrorZ = LightningDevKit.Bindings.Result_PublicKeyErrorZ +public typealias Result_PaymentRelayDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentRelayDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentRelay) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentRelay? @objc deinit } } -public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId +public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool - public func isOwned() -> Swift.Bool + public enum ParseOrSemanticErrorType { + case ParseError + case SemanticError + public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType + public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? @objc deinit } } -public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentError = LightningDevKit.Bindings.PaymentError +public typealias SendError = LightningDevKit.Bindings.SendError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PaymentErrorType { - case Invoice - case Sending - public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public enum SendErrorType { + case Secp256k1 + case TooBigPacket + case TooFewBlindedHops + case InvalidFirstHop + case InvalidMessage + case BufferFull + case GetNodeIdFailed + case BlindedPathAdvanceFailed + public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType - public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError - public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError - public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool - public func getValueAsInvoice() -> Swift.String? - public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType + public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError + public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError + public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError + public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError + public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError + public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError + public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool + public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? @objc deinit } } -public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHint? @objc deinit } } -public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ +public typealias Result_VerifiedInvoiceRequestNoneZ = LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_VerifiedInvoiceRequestNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.VerifiedInvoiceRequest) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAlias? + public func getValue() -> LightningDevKit.Bindings.VerifiedInvoiceRequest? @objc deinit } } -public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? @objc deinit } } -public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ +public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BigSize? + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingTxid() -> [Swift.UInt8]? + public func setFundingTxid(val: [Swift.UInt8]) + public func getFundingOutputIndex() -> Swift.UInt16 + public func setFundingOutputIndex(val: Swift.UInt16) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ +public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Refund? @objc deinit } } -public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ +public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? @objc deinit } } -public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ +public typealias FailureCode = LightningDevKit.Bindings.FailureCode extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FailureCode : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UntrustedString? + public enum FailureCodeType { + case TemporaryNodeFailure + case RequiredNodeFeatureMissing + case IncorrectOrUnknownPaymentDetails + case InvalidOnionPayload + public static func == (a: LightningDevKit.Bindings.FailureCode.FailureCodeType, b: LightningDevKit.Bindings.FailureCode.FailureCodeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.FailureCode.FailureCodeType + public class func initWithTemporaryNodeFailure() -> LightningDevKit.Bindings.FailureCode + public class func initWithRequiredNodeFeatureMissing() -> LightningDevKit.Bindings.FailureCode + public class func initWithIncorrectOrUnknownPaymentDetails() -> LightningDevKit.Bindings.FailureCode + public class func initWithInvalidOnionPayload(a: (Swift.UInt64, Swift.UInt16)?) -> LightningDevKit.Bindings.FailureCode + public func getValueAsInvalidOnionPayload() -> (Swift.UInt64, Swift.UInt16)?? @objc deinit } } -public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ +public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] + public func signature() -> [Swift.UInt8] + public func signableHash() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ +public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool + public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) + public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction + public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public func toHolderValueSat() -> Swift.UInt64 + public func toCounterpartyValueSat() -> Swift.UInt64 + public func toHolderScript() -> [Swift.UInt8] + public func toCounterpartyScript() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PartiallySignedTransactionNoneZ = LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ +public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PartiallySignedTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? @objc deinit } } -public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters +public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getUnspendablePunishmentReserve() -> Swift.UInt64 + public func setUnspendablePunishmentReserve(val: Swift.UInt64) + public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) + public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? + public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? + public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) + public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters +public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPayee() -> LightningDevKit.Bindings.Payee - public func setPayee(val: LightningDevKit.Bindings.Payee) - public func getExpiryTime() -> Swift.UInt64? - public func setExpiryTime(val: Swift.UInt64?) - public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 - public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) - public func getMaxPathCount() -> Swift.UInt8 - public func setMaxPathCount(val: Swift.UInt8) - public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 - public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) - public func getPreviouslyFailedChannels() -> [Swift.UInt64] - public func setPreviouslyFailedChannels(val: [Swift.UInt64]) - public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters - public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters - public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ +public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? + public func getValue() -> LightningDevKit.Bindings.OnionMessage? @objc deinit } } -public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +public typealias Result_CVec_StrZIOErrorZ = LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_StrZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithOk(o: [Swift.String]) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? - @objc deinit - } -} -public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func channel() -> LightningDevKit.Bindings.ChannelInfo - public func htlcMaximumMsat() -> Swift.UInt64 - public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.String]? @objc deinit } } -public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler +public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) - open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider + public func getBlindedNodeId() -> [Swift.UInt8] + public func setBlindedNodeId(val: [Swift.UInt8]) + public func getEncryptedPayload() -> [Swift.UInt8] + public func setEncryptedPayload(val: [Swift.UInt8]) + public init(blindedNodeIdArg: [Swift.UInt8], encryptedPayloadArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxIn = LightningDevKit.Bindings.TxIn +public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) - public func getWitness() -> [Swift.UInt8] - public func getScriptSig() -> [Swift.UInt8] - public func getSequence() -> Swift.UInt32 - public func getPreviousTxid() -> [Swift.UInt8] - public func getPreviousVout() -> Swift.UInt32 + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? @objc deinit } } -public typealias Retry = LightningDevKit.Bindings.Retry +public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RetryType { - case Attempts - case Timeout - public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public enum GraphSyncErrorType { + case DecodeError + case LightningError + public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType - public class func initWithAttempts(a: Swift.UInt) -> LightningDevKit.Bindings.Retry - public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry - public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func getValueAsAttempts() -> Swift.UInt? - public func getValueAsTimeout() -> Swift.UInt64? - @objc deinit - } -} -public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getBaseMsat() -> Swift.UInt32 - public func setBaseMsat(val: Swift.UInt32) - public func getProportionalMillionths() -> Swift.UInt32 - public func setProportionalMillionths(val: Swift.UInt32) - public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType + public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError + public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError + public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? + public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop +public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSrcNodeId() -> [Swift.UInt8] - public func setSrcNodeId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64? - public func setHtlcMinimumMsat(val: Swift.UInt64?) - public func getHtlcMaximumMsat() -> Swift.UInt64? - public func setHtlcMaximumMsat(val: Swift.UInt64?) - public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) + public enum SpendableOutputDescriptorType { + case StaticOutput + case DelayedPaymentOutput + case StaticPaymentOutput + public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType + public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? + public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit + @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func getOutput() -> LightningDevKit.Bindings.TxOut + @objc deinit + } } } -public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ +public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? + public enum OnionMessageContentsType { + case Offers + case Custom + public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType + public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents + public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents + public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? + public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +public typealias Result_ThirtyTwoBytesAPIErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OutPoint? + public func getError() -> LightningDevKit.Bindings.APIError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange +public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool - public func endBlocknum() -> Swift.UInt32 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func getNodeSecretKey() -> [Swift.UInt8] + public func getPhantomNodeSecretKey() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SendError? - @objc deinit - } -} -public typealias LockableScore = LightningDevKit.Bindings.LockableScore +public typealias LightningError = LightningDevKit.Bindings.LightningError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func lock() -> LightningDevKit.Bindings.Score + public func getErr() -> Swift.String + public func setErr(val: Swift.String) + public func getAction() -> LightningDevKit.Bindings.ErrorAction + public func setAction(val: LightningDevKit.Bindings.ErrorAction) + public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +public typealias Quantity = LightningDevKit.Bindings.Quantity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool - public func setKeysendOptional() - public func setKeysendRequired() - public func supportsKeysend() -> Swift.Bool - public func requiresKeysend() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getFlags() -> Swift.UInt8 - public func setFlags(val: Swift.UInt8) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getExcessData() -> [Swift.UInt8] - public func setExcessData(val: [Swift.UInt8]) - public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getRevocationKey() -> [Swift.UInt8] + public func setRevocationKey(val: [Swift.UInt8]) + public func getBroadcasterHtlcKey() -> [Swift.UInt8] + public func setBroadcasterHtlcKey(val: [Swift.UInt8]) + public func getCountersignatoryHtlcKey() -> [Swift.UInt8] + public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) + public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] + public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) + public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ +public typealias Result_StrSecp256k1ErrorZ = LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StrSecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> Swift.String? @objc deinit } } -public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +public typealias ProbingError = LightningDevKit.Bindings.ProbingError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ProbingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + public enum ProbingErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.ProbingError.ProbingErrorType, b: LightningDevKit.Bindings.ProbingError.ProbingErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbingError.ProbingErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.ProbingError + public class func initWithSending(a: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.ProbingError + public class func eq(a: LightningDevKit.Bindings.ProbingError, b: LightningDevKit.Bindings.ProbingError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.ProbeSendFailure? @objc deinit } } -public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ +public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] + public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_PaymentHashPaymentSecretZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ +public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? @objc deinit } } -public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public enum PaymentSendFailureType { + case ParameterError + case PathParameterError + case AllFailedResendSafe + case DuplicatePayment + case PartialFailure + public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType + public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func eq(a: LightningDevKit.Bindings.PaymentSendFailure, b: LightningDevKit.Bindings.PaymentSendFailure) -> Swift.Bool + public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? + public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? + public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? + public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? @objc deinit + @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] + public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } } } -public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) + public func asRouter() -> LightningDevKit.Bindings.Router public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ +public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Pong? + public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? @objc deinit } } -public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError +public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SignOrCreationErrorType { - case SignError - case CreationError - public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType - public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError - public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError - public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? + public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelConfig? @objc deinit } } -public typealias Balance = LightningDevKit.Bindings.Balance +public typealias IOError = LightningDevKit.Bindings.IOError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum BalanceType { - case ClaimableOnChannelClose - case ClaimableAwaitingConfirmations - case ContentiousClaimable - case MaybeTimeoutClaimableHTLC - case MaybePreimageClaimableHTLC - case CounterpartyRevokedOutputClaimable - public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType - public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance - public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool - public func claimableAmountSatoshis() -> Swift.UInt64 - public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? - public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? - public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? - public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? - public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? - public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? - @objc deinit - @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getConfirmationHeight() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getTimeoutHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentPreimage() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getClaimableHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getExpiryHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit + public enum IOError { + case NotFound + case PermissionDenied + case ConnectionRefused + case ConnectionReset + case ConnectionAborted + case NotConnected + case AddrInUse + case AddrNotAvailable + case BrokenPipe + case AlreadyExists + case WouldBlock + case InvalidInput + case InvalidData + case TimedOut + case WriteZero + case Interrupted + case Other + case UnexpectedEof + public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get } } } -public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ +public typealias Result_ClaimedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClaimedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClaimedHTLC) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WarningMessage? + public func getValue() -> LightningDevKit.Bindings.ClaimedHTLC? @objc deinit } } -public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ +public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxInitRbf? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_StringErrorZ = LightningDevKit.Bindings.Result_StringErrorZ +public typealias Result_PublicKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StringErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PublicKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StringErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> Swift.String? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel +public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + @objc deinit + } +} +public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMinFeeSatoshis() -> Swift.UInt64 + public func setMinFeeSatoshis(val: Swift.UInt64) + public func getMaxFeeSatoshis() -> Swift.UInt64 + public func setMaxFeeSatoshis(val: Swift.UInt64) + public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} extension LightningDevKit.Bindings.Currency : Swift.Equatable {} extension LightningDevKit.Bindings.Currency : Swift.Hashable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Equatable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Equatable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} -extension LightningDevKit.Bindings.Network : Swift.Equatable {} -extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Hashable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} extension LightningDevKit.Bindings.Level : Swift.Equatable {} extension LightningDevKit.Bindings.Level : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Hashable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} extension LightningDevKit.Bindings.Recipient : Swift.Equatable {} extension LightningDevKit.Bindings.Recipient : Swift.Hashable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} -extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} -extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Equatable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} +extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} +extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Equatable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Hashable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} -extension LightningDevKit.Bindings.IOError : Swift.Equatable {} -extension LightningDevKit.Bindings.IOError : Swift.Hashable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Equatable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Equatable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} +extension LightningDevKit.Bindings.Network : Swift.Equatable {} +extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Equatable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Hashable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.IOError : Swift.Equatable {} +extension LightningDevKit.Bindings.IOError : Swift.Hashable {} diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit b/lib/ios/LightningDevKit.xcframework/ios-arm64/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit index 868b0499..db129268 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit and b/lib/ios/LightningDevKit.xcframework/ios-arm64/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_rust_types.h b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_rust_types.h index 5e75a71c..a8f431a8 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_rust_types.h +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_rust_types.h @@ -57,8 +57,10 @@ struct nativeRouteHintHopOpaque; typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop; struct nativeMultiThreadedLockableScoreOpaque; typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore; -struct nativeMultiThreadedScoreLockOpaque; -typedef struct nativeMultiThreadedScoreLockOpaque LDKnativeMultiThreadedScoreLock; +struct nativeMultiThreadedScoreLockReadOpaque; +typedef struct nativeMultiThreadedScoreLockReadOpaque LDKnativeMultiThreadedScoreLockRead; +struct nativeMultiThreadedScoreLockWriteOpaque; +typedef struct nativeMultiThreadedScoreLockWriteOpaque LDKnativeMultiThreadedScoreLockWrite; struct nativeChannelUsageOpaque; typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage; struct nativeFixedPenaltyScorerOpaque; @@ -159,6 +161,8 @@ struct nativeChannelConfigUpdateOpaque; typedef struct nativeChannelConfigUpdateOpaque LDKnativeChannelConfigUpdate; struct nativeUserConfigOpaque; typedef struct nativeUserConfigOpaque LDKnativeUserConfig; +struct nativeTaggedHashOpaque; +typedef struct nativeTaggedHashOpaque LDKnativeTaggedHash; struct nativeChannelMonitorUpdateOpaque; typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate; struct nativeHTLCUpdateOpaque; @@ -179,10 +183,14 @@ struct nativePeerManagerOpaque; typedef struct nativePeerManagerOpaque LDKnativePeerManager; struct nativeRapidGossipSyncOpaque; typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync; +struct nativeMonitorUpdatingPersisterOpaque; +typedef struct nativeMonitorUpdatingPersisterOpaque LDKnativeMonitorUpdatingPersister; struct nativeUnsignedInvoiceRequestOpaque; typedef struct nativeUnsignedInvoiceRequestOpaque LDKnativeUnsignedInvoiceRequest; struct nativeInvoiceRequestOpaque; typedef struct nativeInvoiceRequestOpaque LDKnativeInvoiceRequest; +struct nativeVerifiedInvoiceRequestOpaque; +typedef struct nativeVerifiedInvoiceRequestOpaque LDKnativeVerifiedInvoiceRequest; struct nativeInitOpaque; typedef struct nativeInitOpaque LDKnativeInit; struct nativeErrorMessageOpaque; @@ -315,8 +323,10 @@ struct nativeInvalidShutdownScriptOpaque; typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript; struct nativeBolt12ParseErrorOpaque; typedef struct nativeBolt12ParseErrorOpaque LDKnativeBolt12ParseError; -struct nativeFilesystemPersisterOpaque; -typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister; +struct nativePacketOpaque; +typedef struct nativePacketOpaque LDKnativePacket; +struct nativeClaimedHTLCOpaque; +typedef struct nativeClaimedHTLCOpaque LDKnativeClaimedHTLC; struct nativeBolt11InvoiceOpaque; typedef struct nativeBolt11InvoiceOpaque LDKnativeBolt11Invoice; struct nativeSignedRawBolt11InvoiceOpaque; @@ -353,6 +363,16 @@ struct nativeUntrustedStringOpaque; typedef struct nativeUntrustedStringOpaque LDKnativeUntrustedString; struct nativePrintableStringOpaque; typedef struct nativePrintableStringOpaque LDKnativePrintableString; +struct nativeForwardNodeOpaque; +typedef struct nativeForwardNodeOpaque LDKnativeForwardNode; +struct nativeForwardTlvsOpaque; +typedef struct nativeForwardTlvsOpaque LDKnativeForwardTlvs; +struct nativeReceiveTlvsOpaque; +typedef struct nativeReceiveTlvsOpaque LDKnativeReceiveTlvs; +struct nativePaymentRelayOpaque; +typedef struct nativePaymentRelayOpaque LDKnativePaymentRelay; +struct nativePaymentConstraintsOpaque; +typedef struct nativePaymentConstraintsOpaque LDKnativePaymentConstraints; struct nativeUtxoFutureOpaque; typedef struct nativeUtxoFutureOpaque LDKnativeUtxoFuture; struct nativeOnionMessengerOpaque; @@ -361,6 +381,8 @@ struct nativeDefaultMessageRouterOpaque; typedef struct nativeDefaultMessageRouterOpaque LDKnativeDefaultMessageRouter; struct nativeOnionMessagePathOpaque; typedef struct nativeOnionMessagePathOpaque LDKnativeOnionMessagePath; +struct nativeFilesystemStoreOpaque; +typedef struct nativeFilesystemStoreOpaque LDKnativeFilesystemStore; struct nativeBlindedPathOpaque; typedef struct nativeBlindedPathOpaque LDKnativeBlindedPath; struct nativeBlindedHopOpaque; diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_ver.h b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_ver.h index f1b62b3c..32eaa4c0 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_ver.h +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/ldk_ver.h @@ -8,8 +8,8 @@ static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) { return 0; } -#define _LDK_HEADER_VER "v0.0.116-18-g42de5b818613b331" -#define _LDK_C_BINDINGS_HEADER_VER "v0.0.116.0" +#define _LDK_HEADER_VER "v0.0.117-rc1-44-g4b81eb2c308e657b" +#define _LDK_C_BINDINGS_HEADER_VER "v0.0.117.0" static inline const char* check_get_ldk_version() { LDKStr bin_ver = _ldk_get_compiled_version(); if (_ldk_strncmp(_LDK_HEADER_VER, (const char*)bin_ver.chars, bin_ver.len) != 0) { diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/lightning.h b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/lightning.h index 8dbf7732..7c9183c3 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/lightning.h +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Headers/lightning.h @@ -196,6 +196,25 @@ typedef enum LDKCOption_NoneZ { /** * An enum representing the status of a channel monitor update persistence. + * + * These are generally used as the return value for an implementation of [`Persist`] which is used + * as the storage layer for a [`ChainMonitor`]. See the docs on [`Persist`] for a high-level + * explanation of how to handle different cases. + * + * While `UnrecoverableError` is provided as a failure variant, it is not truly \"handled\" on the + * calling side, and generally results in an immediate panic. For those who prefer to avoid + * panics, `InProgress` can be used and you can retry the update operation in the background or + * shut down cleanly. + * + * Note that channels should generally *not* be force-closed after a persistence failure. + * Force-closing with the latest [`ChannelMonitorUpdate`] applied may result in a transaction + * being broadcast which can only be spent by the latest [`ChannelMonitor`]! Thus, if the + * latest [`ChannelMonitor`] is not durably persisted anywhere and exists only in memory, naively + * calling [`ChannelManager::force_close_broadcasting_latest_txn`] *may result in loss of funds*! + * + * [`Persist`]: chainmonitor::Persist + * [`ChainMonitor`]: chainmonitor::ChainMonitor + * [`ChannelManager::force_close_broadcasting_latest_txn`]: crate::ln::channelmanager::ChannelManager::force_close_broadcasting_latest_txn */ typedef enum LDKChannelMonitorUpdateStatus { /** @@ -207,17 +226,13 @@ typedef enum LDKChannelMonitorUpdateStatus { */ LDKChannelMonitorUpdateStatus_Completed, /** - * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of - * our state failed, but is expected to succeed at some point in the future). - * - * Such a failure will \"freeze\" a channel, preventing us from revoking old states or - * submitting new commitment transactions to the counterparty. Once the update(s) which failed - * have been successfully applied, a [`MonitorEvent::Completed`] can be used to restore the - * channel to an operational state. + * Indicates that the update will happen asynchronously in the background or that a transient + * failure occurred which is being retried in the background and will eventually complete. * - * Note that a given [`ChannelManager`] will *never* re-generate a [`ChannelMonitorUpdate`]. - * If you return this error you must ensure that it is written to disk safely before writing - * the latest [`ChannelManager`] state, or you should return [`PermanentFailure`] instead. + * This will \"freeze\" a channel, preventing us from revoking old states or submitting a new + * commitment transaction to the counterparty. Once the update(s) which are `InProgress` have + * been completed, a [`MonitorEvent::Completed`] can be used to restore the channel to an + * operational state. * * Even when a channel has been \"frozen\", updates to the [`ChannelMonitor`] can continue to * occur (e.g. if an inbound HTLC which we forwarded was claimed upstream, resulting in us @@ -227,56 +242,31 @@ typedef enum LDKChannelMonitorUpdateStatus { * until a [`MonitorEvent::Completed`] is provided, even if you return no error on a later * monitor update for the same channel. * - * For deployments where a copy of ChannelMonitors and other local state are backed up in a - * remote location (with local copies persisted immediately), it is anticipated that all + * For deployments where a copy of [`ChannelMonitor`]s and other local state are backed up in + * a remote location (with local copies persisted immediately), it is anticipated that all * updates will return [`InProgress`] until the remote copies could be updated. * - * [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure + * Note that while fully asynchronous persistence of [`ChannelMonitor`] data is generally + * reliable, this feature is considered beta, and a handful of edge-cases remain. Until the + * remaining cases are fixed, in rare cases, *using this feature may lead to funds loss*. + * * [`InProgress`]: ChannelMonitorUpdateStatus::InProgress - * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ LDKChannelMonitorUpdateStatus_InProgress, /** - * Used to indicate no further channel monitor updates will be allowed (likely a disk failure - * or a remote copy of this [`ChannelMonitor`] is no longer reachable and thus not updatable). - * - * When this is returned, [`ChannelManager`] will force-close the channel but *not* broadcast - * our current commitment transaction. This avoids a dangerous case where a local disk failure - * (e.g. the Linux-default remounting of the disk as read-only) causes [`PermanentFailure`]s - * for all monitor updates. If we were to broadcast our latest commitment transaction and then - * restart, we could end up reading a previous [`ChannelMonitor`] and [`ChannelManager`], - * revoking our now-broadcasted state before seeing it confirm and losing all our funds. - * - * Note that this is somewhat of a tradeoff - if the disk is really gone and we may have lost - * the data permanently, we really should broadcast immediately. If the data can be recovered - * with manual intervention, we'd rather close the channel, rejecting future updates to it, - * and broadcast the latest state only if we have HTLCs to claim which are timing out (which - * we do as long as blocks are connected). - * - * In order to broadcast the latest local commitment transaction, you'll need to call - * [`ChannelMonitor::get_latest_holder_commitment_txn`] and broadcast the resulting - * transactions once you've safely ensured no further channel updates can be generated by your - * [`ChannelManager`]. - * - * Note that at least one final [`ChannelMonitorUpdate`] may still be provided, which must - * still be processed by a running [`ChannelMonitor`]. This final update will mark the - * [`ChannelMonitor`] as finalized, ensuring no further updates (e.g. revocation of the latest - * commitment transaction) are allowed. - * - * Note that even if you return a [`PermanentFailure`] due to unavailability of secondary - * [`ChannelMonitor`] copies, you should still make an attempt to store the update where - * possible to ensure you can claim HTLC outputs on the latest commitment transaction - * broadcasted later. - * - * In case of distributed watchtowers deployment, the new version must be written to disk, as - * state may have been stored but rejected due to a block forcing a commitment broadcast. This - * storage is used to claim outputs of rejected state confirmed onchain by another watchtower, - * lagging behind on block processing. - * - * [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure - * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager + * Indicates that an update has failed and will not complete at any point in the future. + * + * Currently returning this variant will cause LDK to immediately panic to encourage immediate + * shutdown. In the future this may be updated to disconnect peers and refuse to continue + * normal operation without a panic. + * + * Applications which wish to perform an orderly shutdown after failure should consider + * returning [`InProgress`] instead and simply shut down without ever marking the update + * complete. + * + * [`InProgress`]: ChannelMonitorUpdateStatus::InProgress */ - LDKChannelMonitorUpdateStatus_PermanentFailure, + LDKChannelMonitorUpdateStatus_UnrecoverableError, /** * Must be last for serialization purposes */ @@ -423,36 +413,6 @@ typedef enum LDKCurrency { LDKCurrency_Sentinel, } LDKCurrency; -/** - * This enum is used to specify which error data to send to peers when failing back an HTLC - * using [`ChannelManager::fail_htlc_backwards_with_reason`]. - * - * For more info on failure codes, see . - */ -typedef enum LDKFailureCode { - /** - * We had a temporary error processing the payment. Useful if no other error codes fit - * and you want to indicate that the payer may want to retry. - */ - LDKFailureCode_TemporaryNodeFailure, - /** - * We have a required feature which was not in this onion. For example, you may require - * some additional metadata that was not provided with this payment. - */ - LDKFailureCode_RequiredNodeFeatureMissing, - /** - * You may wish to use this when a `payment_preimage` is unknown, or the CLTV expiry of - * the HTLC is too close to the current block height for safe handling. - * Using this failure code in [`ChannelManager::fail_htlc_backwards_with_reason`] is - * equivalent to calling [`ChannelManager::fail_htlc_backwards`]. - */ - LDKFailureCode_IncorrectOrUnknownPaymentDetails, - /** - * Must be last for serialization purposes - */ - LDKFailureCode_Sentinel, -} LDKFailureCode; - /** * Describes the type of HTLC claim as determined by analyzing the witness. */ @@ -755,6 +715,32 @@ typedef enum LDKSiPrefix { LDKSiPrefix_Sentinel, } LDKSiPrefix; +/** + * [`SocketAddress`] error variants + */ +typedef enum LDKSocketAddressParseError { + /** + * Socket address (IPv4/IPv6) parsing error + */ + LDKSocketAddressParseError_SocketAddrParse, + /** + * Invalid input format + */ + LDKSocketAddressParseError_InvalidInput, + /** + * Invalid port + */ + LDKSocketAddressParseError_InvalidPort, + /** + * Invalid onion v3 address + */ + LDKSocketAddressParseError_InvalidOnionV3, + /** + * Must be last for serialization purposes + */ + LDKSocketAddressParseError_Sentinel, +} LDKSocketAddressParseError; + /** * An error when accessing the chain via [`UtxoLookup`]. */ @@ -1002,29 +988,29 @@ typedef struct LDKTxOut { /** * An enum which can either contain a u64 or not */ -typedef enum LDKCOption_DurationZ_Tag { +typedef enum LDKCOption_u64Z_Tag { /** - * When we're in this state, this COption_DurationZ contains a u64 + * When we're in this state, this COption_u64Z contains a u64 */ - LDKCOption_DurationZ_Some, + LDKCOption_u64Z_Some, /** - * When we're in this state, this COption_DurationZ contains nothing + * When we're in this state, this COption_u64Z contains nothing */ - LDKCOption_DurationZ_None, + LDKCOption_u64Z_None, /** * Must be last for serialization purposes */ - LDKCOption_DurationZ_Sentinel, -} LDKCOption_DurationZ_Tag; + LDKCOption_u64Z_Sentinel, +} LDKCOption_u64Z_Tag; -typedef struct LDKCOption_DurationZ { - LDKCOption_DurationZ_Tag tag; +typedef struct LDKCOption_u64Z { + LDKCOption_u64Z_Tag tag; union { struct { uint64_t some; }; }; -} LDKCOption_DurationZ; +} LDKCOption_u64Z; @@ -1063,33 +1049,6 @@ typedef struct LDKCVec_BlindedPathZ { uintptr_t datalen; } LDKCVec_BlindedPathZ; -/** - * An enum which can either contain a u64 or not - */ -typedef enum LDKCOption_u64Z_Tag { - /** - * When we're in this state, this COption_u64Z contains a u64 - */ - LDKCOption_u64Z_Some, - /** - * When we're in this state, this COption_u64Z contains nothing - */ - LDKCOption_u64Z_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_u64Z_Sentinel, -} LDKCOption_u64Z_Tag; - -typedef struct LDKCOption_u64Z { - LDKCOption_u64Z_Tag tag; - union { - struct { - uint64_t some; - }; - }; -} LDKCOption_u64Z; - /** @@ -1170,6 +1129,129 @@ typedef struct LDKCResult_RefundBolt12ParseErrorZ { bool result_ok; } LDKCResult_RefundBolt12ParseErrorZ; +/** + * Strategies available to retry payment path failures. + */ +typedef enum LDKRetry_Tag { + /** + * Max number of attempts to retry payment. + * + * Each attempt may be multiple HTLCs along multiple paths if the router decides to split up a + * retry, and may retry multiple failed HTLCs at once if they failed around the same time and + * were retried along a route from a single call to [`Router::find_route_with_id`]. + */ + LDKRetry_Attempts, + /** + * Time elapsed before abandoning retries for a payment. At least one attempt at payment is made; + * see [`PaymentParameters::expiry_time`] to avoid any attempt at payment after a specific time. + * + * [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time + */ + LDKRetry_Timeout, + /** + * Must be last for serialization purposes + */ + LDKRetry_Sentinel, +} LDKRetry_Tag; + +typedef struct MUST_USE_STRUCT LDKRetry { + LDKRetry_Tag tag; + union { + struct { + uint32_t attempts; + }; + struct { + uint64_t timeout; + }; + }; +} LDKRetry; + +/** + * An error in decoding a message or struct. + */ +typedef enum LDKDecodeError_Tag { + /** + * A version byte specified something we don't know how to handle. + * + * Includes unknown realm byte in an onion hop data packet. + */ + LDKDecodeError_UnknownVersion, + /** + * Unknown feature mandating we fail to parse message (e.g., TLV with an even, unknown type) + */ + LDKDecodeError_UnknownRequiredFeature, + /** + * Value was invalid. + * + * For example, a byte which was supposed to be a bool was something other than a 0 + * or 1, a public key/private key/signature was invalid, text wasn't UTF-8, TLV was + * syntactically incorrect, etc. + */ + LDKDecodeError_InvalidValue, + /** + * The buffer to be read was too short. + */ + LDKDecodeError_ShortRead, + /** + * A length descriptor in the packet didn't describe the later data correctly. + */ + LDKDecodeError_BadLengthDescriptor, + /** + * Error from [`std::io`]. + */ + LDKDecodeError_Io, + /** + * The message included zlib-compressed values, which we don't support. + */ + LDKDecodeError_UnsupportedCompression, + /** + * Must be last for serialization purposes + */ + LDKDecodeError_Sentinel, +} LDKDecodeError_Tag; + +typedef struct MUST_USE_STRUCT LDKDecodeError { + LDKDecodeError_Tag tag; + union { + struct { + enum LDKIOError io; + }; + }; +} LDKDecodeError; + +/** + * The contents of CResult_RetryDecodeErrorZ + */ +typedef union LDKCResult_RetryDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKRetry *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_RetryDecodeErrorZPtr; + +/** + * A CResult_RetryDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::outbound_payment::Retry on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_RetryDecodeErrorZ { + /** + * The contents of this CResult_RetryDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_RetryDecodeErrorZPtr contents; + /** + * Whether this CResult_RetryDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_RetryDecodeErrorZ; + /** @@ -1364,29 +1446,29 @@ typedef struct LDKCVec_APIErrorZ { /** * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not */ -typedef enum LDKCOption_PaymentSecretZ_Tag { +typedef enum LDKCOption_ThirtyTwoBytesZ_Tag { /** - * When we're in this state, this COption_PaymentSecretZ contains a crate::c_types::ThirtyTwoBytes + * When we're in this state, this COption_ThirtyTwoBytesZ contains a crate::c_types::ThirtyTwoBytes */ - LDKCOption_PaymentSecretZ_Some, + LDKCOption_ThirtyTwoBytesZ_Some, /** - * When we're in this state, this COption_PaymentSecretZ contains nothing + * When we're in this state, this COption_ThirtyTwoBytesZ contains nothing */ - LDKCOption_PaymentSecretZ_None, + LDKCOption_ThirtyTwoBytesZ_None, /** * Must be last for serialization purposes */ - LDKCOption_PaymentSecretZ_Sentinel, -} LDKCOption_PaymentSecretZ_Tag; + LDKCOption_ThirtyTwoBytesZ_Sentinel, +} LDKCOption_ThirtyTwoBytesZ_Tag; -typedef struct LDKCOption_PaymentSecretZ { - LDKCOption_PaymentSecretZ_Tag tag; +typedef struct LDKCOption_ThirtyTwoBytesZ { + LDKCOption_ThirtyTwoBytesZ_Tag tag; union { struct { struct LDKThirtyTwoBytes some; }; }; -} LDKCOption_PaymentSecretZ; +} LDKCOption_ThirtyTwoBytesZ; /** * An enum which can either contain a crate::c_types::derived::CVec_u8Z or not @@ -1439,90 +1521,174 @@ typedef struct MUST_USE_STRUCT LDKRecipientOnionFields { } LDKRecipientOnionFields; /** - * An error in decoding a message or struct. + * The contents of CResult_RecipientOnionFieldsDecodeErrorZ */ -typedef enum LDKDecodeError_Tag { +typedef union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr { /** - * A version byte specified something we don't know how to handle. - * - * Includes unknown realm byte in an onion hop data packet. + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - LDKDecodeError_UnknownVersion, + struct LDKRecipientOnionFields *result; /** - * Unknown feature mandating we fail to parse message (e.g., TLV with an even, unknown type) + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - LDKDecodeError_UnknownRequiredFeature, + struct LDKDecodeError *err; +} LDKCResult_RecipientOnionFieldsDecodeErrorZPtr; + +/** + * A CResult_RecipientOnionFieldsDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::outbound_payment::RecipientOnionFields on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_RecipientOnionFieldsDecodeErrorZ { /** - * Value was invalid. - * - * For example, a byte which was supposed to be a bool was something other than a 0 - * or 1, a public key/private key/signature was invalid, text wasn't UTF-8, TLV was - * syntactically incorrect, etc. + * The contents of this CResult_RecipientOnionFieldsDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKDecodeError_InvalidValue, + union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr contents; /** - * The buffer to be read was too short. + * Whether this CResult_RecipientOnionFieldsDecodeErrorZ represents a success state. */ - LDKDecodeError_ShortRead, + bool result_ok; +} LDKCResult_RecipientOnionFieldsDecodeErrorZ; + +/** + * A tuple of 2 elements. See the individual fields for the types contained. + */ +typedef struct LDKC2Tuple_u64CVec_u8ZZ { /** - * A length descriptor in the packet didn't describe the later data correctly. + * The element at position 0 */ - LDKDecodeError_BadLengthDescriptor, + uint64_t a; /** - * Error from [`std::io`]. + * The element at position 1 */ - LDKDecodeError_Io, + struct LDKCVec_u8Z b; +} LDKC2Tuple_u64CVec_u8ZZ; + +/** + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_u64CVec_u8ZZs of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_C2Tuple_u64CVec_u8ZZZ { /** - * The message included zlib-compressed values, which we don't support. + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - LDKDecodeError_UnsupportedCompression, + struct LDKC2Tuple_u64CVec_u8ZZ *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_C2Tuple_u64CVec_u8ZZZ; + +/** + * The contents of CResult_RecipientOnionFieldsNoneZ + */ +typedef union LDKCResult_RecipientOnionFieldsNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKRecipientOnionFields *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_RecipientOnionFieldsNoneZPtr; + +/** + * A CResult_RecipientOnionFieldsNoneZ represents the result of a fallible operation, + * containing a crate::lightning::ln::outbound_payment::RecipientOnionFields on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_RecipientOnionFieldsNoneZ { + /** + * The contents of this CResult_RecipientOnionFieldsNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_RecipientOnionFieldsNoneZPtr contents; + /** + * Whether this CResult_RecipientOnionFieldsNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_RecipientOnionFieldsNoneZ; + +/** + * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_ThirtyTwoBytesZ { + /** + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). + */ + struct LDKThirtyTwoBytes *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_ThirtyTwoBytesZ; + +/** + * An enum which can either contain a crate::c_types::derived::CVec_ThirtyTwoBytesZ or not + */ +typedef enum LDKCOption_CVec_ThirtyTwoBytesZZ_Tag { + /** + * When we're in this state, this COption_CVec_ThirtyTwoBytesZZ contains a crate::c_types::derived::CVec_ThirtyTwoBytesZ + */ + LDKCOption_CVec_ThirtyTwoBytesZZ_Some, + /** + * When we're in this state, this COption_CVec_ThirtyTwoBytesZZ contains nothing + */ + LDKCOption_CVec_ThirtyTwoBytesZZ_None, /** * Must be last for serialization purposes */ - LDKDecodeError_Sentinel, -} LDKDecodeError_Tag; + LDKCOption_CVec_ThirtyTwoBytesZZ_Sentinel, +} LDKCOption_CVec_ThirtyTwoBytesZZ_Tag; -typedef struct MUST_USE_STRUCT LDKDecodeError { - LDKDecodeError_Tag tag; +typedef struct LDKCOption_CVec_ThirtyTwoBytesZZ { + LDKCOption_CVec_ThirtyTwoBytesZZ_Tag tag; union { struct { - enum LDKIOError io; + struct LDKCVec_ThirtyTwoBytesZ some; }; }; -} LDKDecodeError; +} LDKCOption_CVec_ThirtyTwoBytesZZ; /** - * The contents of CResult_RecipientOnionFieldsDecodeErrorZ + * The contents of CResult_ThirtyTwoBytesNoneZ */ -typedef union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr { +typedef union LDKCResult_ThirtyTwoBytesNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKRecipientOnionFields *result; + struct LDKThirtyTwoBytes *result; /** - * A pointer to the contents in the error state. - * Reading from this pointer when `result_ok` is set is undefined. + * Note that this value is always NULL, as there are no contents in the Err variant */ - struct LDKDecodeError *err; -} LDKCResult_RecipientOnionFieldsDecodeErrorZPtr; + void *err; +} LDKCResult_ThirtyTwoBytesNoneZPtr; /** - * A CResult_RecipientOnionFieldsDecodeErrorZ represents the result of a fallible operation, - * containing a crate::lightning::ln::outbound_payment::RecipientOnionFields on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_ThirtyTwoBytesNoneZ represents the result of a fallible operation, + * containing a crate::c_types::ThirtyTwoBytes on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_RecipientOnionFieldsDecodeErrorZ { +typedef struct LDKCResult_ThirtyTwoBytesNoneZ { /** - * The contents of this CResult_RecipientOnionFieldsDecodeErrorZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_RecipientOnionFieldsDecodeErrorZPtr contents; + union LDKCResult_ThirtyTwoBytesNoneZPtr contents; /** - * Whether this CResult_RecipientOnionFieldsDecodeErrorZ represents a success state. + * Whether this CResult_ThirtyTwoBytesNoneZ represents a success state. */ bool result_ok; -} LDKCResult_RecipientOnionFieldsDecodeErrorZ; +} LDKCResult_ThirtyTwoBytesNoneZ; @@ -1775,15 +1941,23 @@ typedef enum LDKSpendableOutputDescriptor_Tag { */ LDKSpendableOutputDescriptor_DelayedPaymentOutput, /** - * An output to a P2WPKH, spendable exclusively by our payment key (i.e., the private key - * which corresponds to the `payment_point` in [`ChannelSigner::pubkeys`]). The witness - * in the spending input is, thus, simply: + * An output spendable exclusively by our payment key (i.e., the private key that corresponds + * to the `payment_point` in [`ChannelSigner::pubkeys`]). The output type depends on the + * channel type negotiated. + * + * On an anchor outputs channel, the witness in the spending input is: + * ```bitcoin + * + * ``` + * + * Otherwise, it is: * ```bitcoin * * ``` * * These are generally the result of our counterparty having broadcast the current state, - * allowing us to claim the non-HTLC-encumbered outputs immediately. + * allowing us to claim the non-HTLC-encumbered outputs immediately, or after one confirmation + * in the case of anchor outputs channels. */ LDKSpendableOutputDescriptor_StaticPaymentOutput, /** @@ -1884,34 +2058,34 @@ typedef struct LDKCVec_TxOutZ { /** * An enum which can either contain a u32 or not */ -typedef enum LDKCOption_PackedLockTimeZ_Tag { +typedef enum LDKCOption_u32Z_Tag { /** - * When we're in this state, this COption_PackedLockTimeZ contains a u32 + * When we're in this state, this COption_u32Z contains a u32 */ - LDKCOption_PackedLockTimeZ_Some, + LDKCOption_u32Z_Some, /** - * When we're in this state, this COption_PackedLockTimeZ contains nothing + * When we're in this state, this COption_u32Z contains nothing */ - LDKCOption_PackedLockTimeZ_None, + LDKCOption_u32Z_None, /** * Must be last for serialization purposes */ - LDKCOption_PackedLockTimeZ_Sentinel, -} LDKCOption_PackedLockTimeZ_Tag; + LDKCOption_u32Z_Sentinel, +} LDKCOption_u32Z_Tag; -typedef struct LDKCOption_PackedLockTimeZ { - LDKCOption_PackedLockTimeZ_Tag tag; +typedef struct LDKCOption_u32Z { + LDKCOption_u32Z_Tag tag; union { struct { uint32_t some; }; }; -} LDKCOption_PackedLockTimeZ; +} LDKCOption_u32Z; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_PartiallySignedTransactionusizeZ { +typedef struct LDKC2Tuple_CVec_u8ZusizeZ { /** * The element at position 0 */ @@ -1920,55 +2094,39 @@ typedef struct LDKC2Tuple_PartiallySignedTransactionusizeZ { * The element at position 1 */ uintptr_t b; -} LDKC2Tuple_PartiallySignedTransactionusizeZ; +} LDKC2Tuple_CVec_u8ZusizeZ; /** - * The contents of CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ + * The contents of CResult_C2Tuple_CVec_u8ZusizeZNoneZ */ -typedef union LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZPtr { +typedef union LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_PartiallySignedTransactionusizeZ *result; + struct LDKC2Tuple_CVec_u8ZusizeZ *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZPtr; +} LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZPtr; /** - * A CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_PartiallySignedTransactionusizeZ on success and a () on failure. + * A CResult_C2Tuple_CVec_u8ZusizeZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_CVec_u8ZusizeZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ { +typedef struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ { /** - * The contents of this CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ, accessible via either + * The contents of this CResult_C2Tuple_CVec_u8ZusizeZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZPtr contents; + union LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZPtr contents; /** - * Whether this CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ represents a success state. + * Whether this CResult_C2Tuple_CVec_u8ZusizeZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ; - -/** - * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_PaymentPreimageZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKThirtyTwoBytes *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_PaymentPreimageZ; +} LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ; /** * The contents of CResult_NoneNoneZ @@ -2002,108 +2160,108 @@ typedef struct LDKCResult_NoneNoneZ { } LDKCResult_NoneNoneZ; /** - * Represents a secp256k1 signature serialized as two 32-byte numbers + * Represents a secp256k1 ECDSA signature serialized as two 32-byte numbers */ -typedef struct LDKSignature { +typedef struct LDKECDSASignature { /** * The bytes of the signature in "compact" form */ uint8_t compact_form[64]; -} LDKSignature; +} LDKECDSASignature; /** - * A dynamically-allocated array of crate::c_types::Signatures of arbitrary size. + * A dynamically-allocated array of crate::c_types::ECDSASignatures of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_SignatureZ { +typedef struct LDKCVec_ECDSASignatureZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKSignature *data; + struct LDKECDSASignature *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_SignatureZ; +} LDKCVec_ECDSASignatureZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_SignatureCVec_SignatureZZ { +typedef struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ { /** * The element at position 0 */ - struct LDKSignature a; + struct LDKECDSASignature a; /** * The element at position 1 */ - struct LDKCVec_SignatureZ b; -} LDKC2Tuple_SignatureCVec_SignatureZZ; + struct LDKCVec_ECDSASignatureZ b; +} LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ; /** - * The contents of CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ + * The contents of CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ */ -typedef union LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr { +typedef union LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_SignatureCVec_SignatureZZ *result; + struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr; +} LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZPtr; /** - * A CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_SignatureCVec_SignatureZZ on success and a () on failure. + * A CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ { +typedef struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ { /** - * The contents of this CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ, accessible via either + * The contents of this CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZPtr contents; + union LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZPtr contents; /** - * Whether this CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ represents a success state. + * Whether this CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ; +} LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ; /** - * The contents of CResult_SignatureNoneZ + * The contents of CResult_ECDSASignatureNoneZ */ -typedef union LDKCResult_SignatureNoneZPtr { +typedef union LDKCResult_ECDSASignatureNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKSignature *result; + struct LDKECDSASignature *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_SignatureNoneZPtr; +} LDKCResult_ECDSASignatureNoneZPtr; /** - * A CResult_SignatureNoneZ represents the result of a fallible operation, - * containing a crate::c_types::Signature on success and a () on failure. + * A CResult_ECDSASignatureNoneZ represents the result of a fallible operation, + * containing a crate::c_types::ECDSASignature on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_SignatureNoneZ { +typedef struct LDKCResult_ECDSASignatureNoneZ { /** - * The contents of this CResult_SignatureNoneZ, accessible via either + * The contents of this CResult_ECDSASignatureNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_SignatureNoneZPtr contents; + union LDKCResult_ECDSASignatureNoneZPtr contents; /** - * Whether this CResult_SignatureNoneZ represents a success state. + * Whether this CResult_ECDSASignatureNoneZ represents a success state. */ bool result_ok; -} LDKCResult_SignatureNoneZ; +} LDKCResult_ECDSASignatureNoneZ; /** * Represents a valid secp256k1 public key serialized in "compressed form" as a 33 byte array. @@ -2150,61 +2308,29 @@ typedef struct LDKCResult_PublicKeyNoneZ { /** * An enum which can either contain a crate::c_types::BigEndianScalar or not */ -typedef enum LDKCOption_ScalarZ_Tag { +typedef enum LDKCOption_BigEndianScalarZ_Tag { /** - * When we're in this state, this COption_ScalarZ contains a crate::c_types::BigEndianScalar + * When we're in this state, this COption_BigEndianScalarZ contains a crate::c_types::BigEndianScalar */ - LDKCOption_ScalarZ_Some, + LDKCOption_BigEndianScalarZ_Some, /** - * When we're in this state, this COption_ScalarZ contains nothing + * When we're in this state, this COption_BigEndianScalarZ contains nothing */ - LDKCOption_ScalarZ_None, + LDKCOption_BigEndianScalarZ_None, /** * Must be last for serialization purposes */ - LDKCOption_ScalarZ_Sentinel, -} LDKCOption_ScalarZ_Tag; + LDKCOption_BigEndianScalarZ_Sentinel, +} LDKCOption_BigEndianScalarZ_Tag; -typedef struct LDKCOption_ScalarZ { - LDKCOption_ScalarZ_Tag tag; +typedef struct LDKCOption_BigEndianScalarZ { + LDKCOption_BigEndianScalarZ_Tag tag; union { struct { struct LDKBigEndianScalar some; }; }; -} LDKCOption_ScalarZ; - -/** - * The contents of CResult_SharedSecretNoneZ - */ -typedef union LDKCResult_SharedSecretNoneZPtr { - /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. - */ - struct LDKThirtyTwoBytes *result; - /** - * Note that this value is always NULL, as there are no contents in the Err variant - */ - void *err; -} LDKCResult_SharedSecretNoneZPtr; - -/** - * A CResult_SharedSecretNoneZ represents the result of a fallible operation, - * containing a crate::c_types::ThirtyTwoBytes on success and a () on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. - */ -typedef struct LDKCResult_SharedSecretNoneZ { - /** - * The contents of this CResult_SharedSecretNoneZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. - */ - union LDKCResult_SharedSecretNoneZPtr contents; - /** - * Whether this CResult_SharedSecretNoneZ represents a success state. - */ - bool result_ok; -} LDKCResult_SharedSecretNoneZ; +} LDKCOption_BigEndianScalarZ; /** * Integer in the range `0..32` @@ -2273,6 +2399,48 @@ typedef struct LDKCResult_RecoverableSignatureNoneZ { bool result_ok; } LDKCResult_RecoverableSignatureNoneZ; +/** + * Represents a secp256k1 Schnorr signature serialized as two 32-byte numbers + */ +typedef struct LDKSchnorrSignature { + /** + * The bytes of the signature as two 32-byte numbers + */ + uint8_t compact_form[64]; +} LDKSchnorrSignature; + +/** + * The contents of CResult_SchnorrSignatureNoneZ + */ +typedef union LDKCResult_SchnorrSignatureNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKSchnorrSignature *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_SchnorrSignatureNoneZPtr; + +/** + * A CResult_SchnorrSignatureNoneZ represents the result of a fallible operation, + * containing a crate::c_types::SchnorrSignature on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_SchnorrSignatureNoneZ { + /** + * The contents of this CResult_SchnorrSignatureNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_SchnorrSignatureNoneZPtr contents; + /** + * Whether this CResult_SchnorrSignatureNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_SchnorrSignatureNoneZ; + /** @@ -2492,7 +2660,7 @@ typedef struct LDKChannelSigner { * Note that all the relevant preimages will be provided, but there may also be additional * irrelevant or duplicate preimages. */ - struct LDKCResult_NoneNoneZ (*validate_holder_commitment)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages); + struct LDKCResult_NoneNoneZ (*validate_holder_commitment)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_ThirtyTwoBytesZ preimages); /** * Returns the holder's channel public keys and basepoints. */ @@ -2558,7 +2726,7 @@ typedef struct LDKEcdsaChannelSigner { * Note that all the relevant preimages will be provided, but there may also be additional * irrelevant or duplicate preimages. */ - struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ (*sign_counterparty_commitment)(const void *this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages); + struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ (*sign_counterparty_commitment)(const void *this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_ThirtyTwoBytesZ preimages); /** * Validate the counterparty's revocation. * @@ -2583,7 +2751,7 @@ typedef struct LDKEcdsaChannelSigner { * * [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor */ - struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ (*sign_holder_commitment_and_htlcs)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx); + struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ (*sign_holder_commitment_and_htlcs)(const void *this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx); /** * Create a signature for the given input in a transaction spending an HTLC transaction output * or a commitment transaction `to_local` output when our counterparty broadcasts an old state. @@ -2600,7 +2768,7 @@ typedef struct LDKEcdsaChannelSigner { * not allow the spending of any funds by itself (you need our holder `revocation_secret` to do * so). */ - struct LDKCResult_SignatureNoneZ (*sign_justice_revoked_output)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]); + struct LDKCResult_ECDSASignatureNoneZ (*sign_justice_revoked_output)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]); /** * Create a signature for the given input in a transaction spending a commitment transaction * HTLC output when our counterparty broadcasts an old state. @@ -2621,7 +2789,7 @@ typedef struct LDKEcdsaChannelSigner { * `htlc` holds HTLC elements (hash, timelock), thus changing the format of the witness script * (which is committed to in the BIP 143 signatures). */ - struct LDKCResult_SignatureNoneZ (*sign_justice_revoked_htlc)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); + struct LDKCResult_ECDSASignatureNoneZ (*sign_justice_revoked_htlc)(const void *this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); /** * Computes the signature for a commitment transaction's HTLC output used as an input within * `htlc_tx`, which spends the commitment transaction at index `input`. The signature returned @@ -2631,7 +2799,7 @@ typedef struct LDKEcdsaChannelSigner { * * [`EcdsaSighashType::All`]: bitcoin::blockdata::transaction::EcdsaSighashType::All */ - struct LDKCResult_SignatureNoneZ (*sign_holder_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor); + struct LDKCResult_ECDSASignatureNoneZ (*sign_holder_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, const struct LDKHTLCDescriptor *NONNULL_PTR htlc_descriptor); /** * Create a signature for a claiming transaction for a HTLC output on a counterparty's commitment * transaction, either offered or received. @@ -2651,19 +2819,19 @@ typedef struct LDKEcdsaChannelSigner { * channel state keys, which are then included in the witness script and committed to in the * BIP 143 signature. */ - struct LDKCResult_SignatureNoneZ (*sign_counterparty_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); + struct LDKCResult_ECDSASignatureNoneZ (*sign_counterparty_htlc_transaction)(const void *this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc); /** * Create a signature for a (proposed) closing transaction. * * Note that, due to rounding, there may be one \"missing\" satoshi, and either party may have * chosen to forgo their output as dust. */ - struct LDKCResult_SignatureNoneZ (*sign_closing_transaction)(const void *this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx); + struct LDKCResult_ECDSASignatureNoneZ (*sign_closing_transaction)(const void *this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx); /** * Computes the signature for a commitment transaction's anchor output used as an * input within `anchor_tx`, which spends the commitment transaction, at index `input`. */ - struct LDKCResult_SignatureNoneZ (*sign_holder_anchor_input)(const void *this_arg, struct LDKTransaction anchor_tx, uintptr_t input); + struct LDKCResult_ECDSASignatureNoneZ (*sign_holder_anchor_input)(const void *this_arg, struct LDKTransaction anchor_tx, uintptr_t input); /** * Signs a channel announcement message with our funding key proving it comes from one of the * channel participants. @@ -2675,7 +2843,7 @@ typedef struct LDKEcdsaChannelSigner { * our counterparty may (though likely will not) close the channel on us for violating the * protocol. */ - struct LDKCResult_SignatureNoneZ (*sign_channel_announcement_with_funding_key)(const void *this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg); + struct LDKCResult_ECDSASignatureNoneZ (*sign_channel_announcement_with_funding_key)(const void *this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg); /** * Implementation of ChannelSigner for this object. */ @@ -2757,9 +2925,9 @@ typedef struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ { } LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ; /** - * The contents of CResult_ScriptNoneZ + * The contents of CResult_CVec_u8ZNoneZ */ -typedef union LDKCResult_ScriptNoneZPtr { +typedef union LDKCResult_CVec_u8ZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -2769,24 +2937,24 @@ typedef union LDKCResult_ScriptNoneZPtr { * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_ScriptNoneZPtr; +} LDKCResult_CVec_u8ZNoneZPtr; /** - * A CResult_ScriptNoneZ represents the result of a fallible operation, + * A CResult_CVec_u8ZNoneZ represents the result of a fallible operation, * containing a crate::c_types::derived::CVec_u8Z on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_ScriptNoneZ { +typedef struct LDKCResult_CVec_u8ZNoneZ { /** - * The contents of this CResult_ScriptNoneZ, accessible via either + * The contents of this CResult_CVec_u8ZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_ScriptNoneZPtr contents; + union LDKCResult_CVec_u8ZNoneZPtr contents; /** - * Whether this CResult_ScriptNoneZ represents a success state. + * Whether this CResult_CVec_u8ZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_ScriptNoneZ; +} LDKCResult_CVec_u8ZNoneZ; /** * The contents of CResult_ShutdownScriptNoneZ @@ -2820,6 +2988,60 @@ typedef struct LDKCResult_ShutdownScriptNoneZ { bool result_ok; } LDKCResult_ShutdownScriptNoneZ; +/** + * An enum which can either contain a u16 or not + */ +typedef enum LDKCOption_u16Z_Tag { + /** + * When we're in this state, this COption_u16Z contains a u16 + */ + LDKCOption_u16Z_Some, + /** + * When we're in this state, this COption_u16Z contains nothing + */ + LDKCOption_u16Z_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_u16Z_Sentinel, +} LDKCOption_u16Z_Tag; + +typedef struct LDKCOption_u16Z { + LDKCOption_u16Z_Tag tag; + union { + struct { + uint16_t some; + }; + }; +} LDKCOption_u16Z; + +/** + * An enum which can either contain a bool or not + */ +typedef enum LDKCOption_boolZ_Tag { + /** + * When we're in this state, this COption_boolZ contains a bool + */ + LDKCOption_boolZ_Some, + /** + * When we're in this state, this COption_boolZ contains nothing + */ + LDKCOption_boolZ_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_boolZ_Sentinel, +} LDKCOption_boolZ_Tag; + +typedef struct LDKCOption_boolZ { + LDKCOption_boolZ_Tag tag; + union { + struct { + bool some; + }; + }; +} LDKCOption_boolZ; + /** * A dynamically-allocated array of crate::c_types::derived::CVec_u8Zs of arbitrary size. * This corresponds to std::vector in C++ @@ -2924,38 +3146,6 @@ typedef struct LDKCResult_InMemorySignerDecodeErrorZ { bool result_ok; } LDKCResult_InMemorySignerDecodeErrorZ; -/** - * The contents of CResult_PartiallySignedTransactionNoneZ - */ -typedef union LDKCResult_PartiallySignedTransactionNoneZPtr { - /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. - */ - struct LDKCVec_u8Z *result; - /** - * Note that this value is always NULL, as there are no contents in the Err variant - */ - void *err; -} LDKCResult_PartiallySignedTransactionNoneZPtr; - -/** - * A CResult_PartiallySignedTransactionNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::CVec_u8Z on success and a () on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. - */ -typedef struct LDKCResult_PartiallySignedTransactionNoneZ { - /** - * The contents of this CResult_PartiallySignedTransactionNoneZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. - */ - union LDKCResult_PartiallySignedTransactionNoneZPtr contents; - /** - * Whether this CResult_PartiallySignedTransactionNoneZ represents a success state. - */ - bool result_ok; -} LDKCResult_PartiallySignedTransactionNoneZ; - /** * The contents of CResult_TransactionNoneZ */ @@ -3011,7 +3201,7 @@ typedef struct MUST_USE_STRUCT LDKNodeId { /** - * Proposed use of a channel passed as a parameter to [`Score::channel_penalty_msat`]. + * Proposed use of a channel passed as a parameter to [`ScoreLookUp::channel_penalty_msat`]. */ typedef struct MUST_USE_STRUCT LDKChannelUsage { /** @@ -3054,6 +3244,37 @@ typedef struct MUST_USE_STRUCT LDKProbabilisticScoringFeeParameters { bool is_owned; } LDKProbabilisticScoringFeeParameters; +/** + * An interface used to score payment channels for path finding. + * + * `ScoreLookUp` is used to determine the penalty for a given channel. + * + * Scoring is in terms of fees willing to be paid in order to avoid routing through a channel. + */ +typedef struct LDKScoreLookUp { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the + * given channel in the direction from `source` to `target`. + * + * The channel's capacity (less any other MPP parts that are also being considered for use in + * the same payment) is given by `capacity_msat`. It may be determined from various sources + * such as a chain data, network gossip, or invoice hints. For invoice hints, a capacity near + * [`u64::max_value`] is given to indicate sufficient capacity for the invoice's full amount. + * Thus, implementations should be overflow-safe. + */ + uint64_t (*channel_penalty_msat)(const void *this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKScoreLookUp; + /** @@ -3076,27 +3297,14 @@ typedef struct MUST_USE_STRUCT LDKPath { } LDKPath; /** - * An interface used to score payment channels for path finding. - * - *\tScoring is in terms of fees willing to be paid in order to avoid routing through a channel. + * `ScoreUpdate` is used to update the scorer's internal state after a payment attempt. */ -typedef struct LDKScore { +typedef struct LDKScoreUpdate { /** * An opaque pointer which is passed to your function implementations as an argument. * This has no meaning in the LDK, and can be NULL or any other value. */ void *this_arg; - /** - * Returns the fee in msats willing to be paid to avoid routing `send_amt_msat` through the - * given channel in the direction from `source` to `target`. - * - * The channel's capacity (less any other MPP parts that are also being considered for use in - * the same payment) is given by `capacity_msat`. It may be determined from various sources - * such as a chain data, network gossip, or invoice hints. For invoice hints, a capacity near - * [`u64::max_value`] is given to indicate sufficient capacity for the invoice's full amount. - * Thus, implementations should be overflow-safe. - */ - uint64_t (*channel_penalty_msat)(const void *this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params); /** * Handles updating channel penalties after failing to route through a channel. */ @@ -3113,24 +3321,20 @@ typedef struct LDKScore { * Handles updating channel penalties after a probe over the given path succeeded. */ void (*probe_successful)(void *this_arg, const struct LDKPath *NONNULL_PTR path); - /** - * Serialize the object into a byte array - */ - struct LDKCVec_u8Z (*write)(const void *this_arg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. */ void (*free)(void *this_arg); -} LDKScore; +} LDKScoreUpdate; /** * A scorer that is accessed under a lock. * - * Needed so that calls to [`Score::channel_penalty_msat`] in [`find_route`] can be made while - * having shared ownership of a scorer but without requiring internal locking in [`Score`] + * Needed so that calls to [`ScoreLookUp::channel_penalty_msat`] in [`find_route`] can be made while + * having shared ownership of a scorer but without requiring internal locking in [`ScoreUpdate`] * implementations. Internal locking would be detrimental to route finding performance and could - * result in [`Score::channel_penalty_msat`] returning a different value for the same channel. + * result in [`ScoreLookUp::channel_penalty_msat`] returning a different value for the same channel. * * [`find_route`]: crate::routing::router::find_route */ @@ -3141,9 +3345,13 @@ typedef struct LDKLockableScore { */ void *this_arg; /** - * Returns the locked scorer. + * Returns read locked scorer. */ - struct LDKScore (*lock)(const void *this_arg); + struct LDKScoreLookUp (*read_lock)(const void *this_arg); + /** + * Returns write locked scorer. + */ + struct LDKScoreUpdate (*write_lock)(const void *this_arg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -3206,9 +3414,9 @@ typedef struct LDKCOption_WriteableScoreZ { } LDKCOption_WriteableScoreZ; /** - * The contents of CResult_NoneErrorZ + * The contents of CResult_NoneIOErrorZ */ -typedef union LDKCResult_NoneErrorZPtr { +typedef union LDKCResult_NoneIOErrorZPtr { /** * Note that this value is always NULL, as there are no contents in the OK variant */ @@ -3218,24 +3426,24 @@ typedef union LDKCResult_NoneErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKIOError *err; -} LDKCResult_NoneErrorZPtr; +} LDKCResult_NoneIOErrorZPtr; /** - * A CResult_NoneErrorZ represents the result of a fallible operation, + * A CResult_NoneIOErrorZ represents the result of a fallible operation, * containing a () on success and a crate::c_types::IOError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_NoneErrorZ { +typedef struct LDKCResult_NoneIOErrorZ { /** - * The contents of this CResult_NoneErrorZ, accessible via either + * The contents of this CResult_NoneIOErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_NoneErrorZPtr contents; + union LDKCResult_NoneIOErrorZPtr contents; /** - * Whether this CResult_NoneErrorZ represents a success state. + * Whether this CResult_NoneIOErrorZ represents a success state. */ bool result_ok; -} LDKCResult_NoneErrorZ; +} LDKCResult_NoneIOErrorZ; @@ -3458,8 +3666,9 @@ typedef struct LDKCResult_RouteHopDecodeErrorZ { /** - * Used to construct the blinded hops portion of a blinded path. These hops cannot be identified - * by outside observers and thus can be used to hide the identity of the recipient. + * An encrypted payload and node id corresponding to a hop in a payment or onion message path, to + * be encoded in the sender's onion packet. These hops cannot be identified by outside observers + * and thus can be used to hide the identity of the recipient. */ typedef struct MUST_USE_STRUCT LDKBlindedHop { /** @@ -3564,33 +3773,6 @@ typedef struct LDKCVec_RouteHopZ { uintptr_t datalen; } LDKCVec_RouteHopZ; -/** - * An enum which can either contain a u32 or not - */ -typedef enum LDKCOption_u32Z_Tag { - /** - * When we're in this state, this COption_u32Z contains a u32 - */ - LDKCOption_u32Z_Some, - /** - * When we're in this state, this COption_u32Z contains nothing - */ - LDKCOption_u32Z_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_u32Z_Sentinel, -} LDKCOption_u32Z_Tag; - -typedef struct LDKCOption_u32Z { - LDKCOption_u32Z_Tag tag; - union { - struct { - uint32_t some; - }; - }; -} LDKCOption_u32Z; - /** * A dynamically-allocated array of crate::lightning::routing::router::Paths of arbitrary size. * This corresponds to std::vector in C++ @@ -3951,7 +4133,7 @@ typedef struct LDKCVec_PublicKeyZ { /** - * [`Score`] implementation that uses a fixed penalty. + * [`ScoreLookUp`] implementation that uses a fixed penalty. */ typedef struct MUST_USE_STRUCT LDKFixedPenaltyScorer { /** @@ -4059,14 +4241,14 @@ typedef struct LDKCOption_C2Tuple_u64u64ZZ { } LDKCOption_C2Tuple_u64u64ZZ; /** - * 8 u16s + * 32 u16s */ -typedef struct LDKEightU16s { +typedef struct LDKThirtyTwoU16s { /** - * The eight 16-bit integers + * The thirty-two 16-bit integers */ - uint16_t data[8]; -} LDKEightU16s; + uint16_t data[32]; +} LDKThirtyTwoU16s; /** * A tuple of 2 elements. See the individual fields for the types contained. @@ -4075,53 +4257,80 @@ typedef struct LDKC2Tuple_Z { /** * The element at position 0 */ - struct LDKEightU16s a; + struct LDKThirtyTwoU16s a; /** * The element at position 1 */ - struct LDKEightU16s b; + struct LDKThirtyTwoU16s b; } LDKC2Tuple_Z; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple__u168_u168Z { +typedef struct LDKC2Tuple__u1632_u1632Z { /** * The element at position 0 */ - struct LDKEightU16s a; + struct LDKThirtyTwoU16s a; /** * The element at position 1 */ - struct LDKEightU16s b; -} LDKC2Tuple__u168_u168Z; + struct LDKThirtyTwoU16s b; +} LDKC2Tuple__u1632_u1632Z; + +/** + * An enum which can either contain a crate::c_types::derived::C2Tuple__u1632_u1632Z or not + */ +typedef enum LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Tag { + /** + * When we're in this state, this COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ contains a crate::c_types::derived::C2Tuple__u1632_u1632Z + */ + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Some, + /** + * When we're in this state, this COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ contains nothing + */ + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Sentinel, +} LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Tag; + +typedef struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ { + LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_Tag tag; + union { + struct { + struct LDKC2Tuple__u1632_u1632Z some; + }; + }; +} LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ; /** - * An enum which can either contain a crate::c_types::derived::C2Tuple__u168_u168Z or not + * An enum which can either contain a f64 or not */ -typedef enum LDKCOption_C2Tuple_EightU16sEightU16sZZ_Tag { +typedef enum LDKCOption_f64Z_Tag { /** - * When we're in this state, this COption_C2Tuple_EightU16sEightU16sZZ contains a crate::c_types::derived::C2Tuple__u168_u168Z + * When we're in this state, this COption_f64Z contains a f64 */ - LDKCOption_C2Tuple_EightU16sEightU16sZZ_Some, + LDKCOption_f64Z_Some, /** - * When we're in this state, this COption_C2Tuple_EightU16sEightU16sZZ contains nothing + * When we're in this state, this COption_f64Z contains nothing */ - LDKCOption_C2Tuple_EightU16sEightU16sZZ_None, + LDKCOption_f64Z_None, /** * Must be last for serialization purposes */ - LDKCOption_C2Tuple_EightU16sEightU16sZZ_Sentinel, -} LDKCOption_C2Tuple_EightU16sEightU16sZZ_Tag; + LDKCOption_f64Z_Sentinel, +} LDKCOption_f64Z_Tag; -typedef struct LDKCOption_C2Tuple_EightU16sEightU16sZZ { - LDKCOption_C2Tuple_EightU16sEightU16sZZ_Tag tag; +typedef struct LDKCOption_f64Z { + LDKCOption_f64Z_Tag tag; union { struct { - struct LDKC2Tuple__u168_u168Z some; + double some; }; }; -} LDKCOption_C2Tuple_EightU16sEightU16sZZ; +} LDKCOption_f64Z; @@ -4187,7 +4396,7 @@ typedef struct MUST_USE_STRUCT LDKNetworkGraph { /** - * [`Score`] implementation using channel success probability distributions. + * [`ScoreLookUp`] implementation using channel success probability distributions. * * Channels are tracked with upper and lower liquidity bounds - when an HTLC fails at a channel, * we learn that the upper-bound on the available liquidity is lower than the amount of the HTLC. @@ -4197,7 +4406,7 @@ typedef struct MUST_USE_STRUCT LDKNetworkGraph { * These bounds are then used to determine a success probability using the formula from * *Optimally Reliable & Cheap Payment Flows on the Lightning Network* by Rene Pickhardt * and Stefan Richter [[1]] (i.e. `(upper_bound - payment_amount) / (upper_bound - lower_bound)`). - * + *6762, 1070 * This probability is combined with the [`liquidity_penalty_multiplier_msat`] and * [`liquidity_penalty_amount_multiplier_msat`] parameters to calculate a concrete penalty in * milli-satoshis. The penalties, when added across all hops, have the property of being linear in @@ -4302,37 +4511,10 @@ typedef struct LDKCVec_C2Tuple_usizeTransactionZZ { uintptr_t datalen; } LDKCVec_C2Tuple_usizeTransactionZZ; -/** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not - */ -typedef enum LDKCOption_BlockHashZ_Tag { - /** - * When we're in this state, this COption_BlockHashZ contains a crate::c_types::ThirtyTwoBytes - */ - LDKCOption_BlockHashZ_Some, - /** - * When we're in this state, this COption_BlockHashZ contains nothing - */ - LDKCOption_BlockHashZ_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_BlockHashZ_Sentinel, -} LDKCOption_BlockHashZ_Tag; - -typedef struct LDKCOption_BlockHashZ { - LDKCOption_BlockHashZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_BlockHashZ; - /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_TxidCOption_BlockHashZZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ { /** * The element at position 0 */ @@ -4340,24 +4522,56 @@ typedef struct LDKC2Tuple_TxidCOption_BlockHashZZ { /** * The element at position 1 */ - struct LDKCOption_BlockHashZ b; -} LDKC2Tuple_TxidCOption_BlockHashZZ; + struct LDKCOption_ThirtyTwoBytesZ b; +} LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_TxidCOption_BlockHashZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_TxidCOption_BlockHashZZ *data; + struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ; +} LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ; + +/** + * The contents of CResult_ChannelMonitorUpdateStatusNoneZ + */ +typedef union LDKCResult_ChannelMonitorUpdateStatusNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + enum LDKChannelMonitorUpdateStatus *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_ChannelMonitorUpdateStatusNoneZPtr; + +/** + * A CResult_ChannelMonitorUpdateStatusNoneZ represents the result of a fallible operation, + * containing a crate::lightning::chain::ChannelMonitorUpdateStatus on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ChannelMonitorUpdateStatusNoneZ { + /** + * The contents of this CResult_ChannelMonitorUpdateStatusNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ChannelMonitorUpdateStatusNoneZPtr contents; + /** + * Whether this CResult_ChannelMonitorUpdateStatusNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_ChannelMonitorUpdateStatusNoneZ; @@ -4392,7 +4606,7 @@ typedef enum LDKMonitorEvent_Tag { /** * A monitor event that the Channel's commitment transaction was confirmed. */ - LDKMonitorEvent_CommitmentTxConfirmed, + LDKMonitorEvent_HolderForceClosed, /** * Indicates a [`ChannelMonitor`] update has completed. See * [`ChannelMonitorUpdateStatus::InProgress`] for more information on how this is used. @@ -4400,13 +4614,6 @@ typedef enum LDKMonitorEvent_Tag { * [`ChannelMonitorUpdateStatus::InProgress`]: super::ChannelMonitorUpdateStatus::InProgress */ LDKMonitorEvent_Completed, - /** - * Indicates a [`ChannelMonitor`] update has failed. See - * [`ChannelMonitorUpdateStatus::PermanentFailure`] for more information on how this is used. - * - * [`ChannelMonitorUpdateStatus::PermanentFailure`]: super::ChannelMonitorUpdateStatus::PermanentFailure - */ - LDKMonitorEvent_UpdateFailed, /** * Must be last for serialization purposes */ @@ -4435,12 +4642,9 @@ typedef struct MUST_USE_STRUCT LDKMonitorEvent { struct LDKHTLCUpdate htlc_event; }; struct { - struct LDKOutPoint commitment_tx_confirmed; + struct LDKOutPoint holder_force_closed; }; LDKMonitorEvent_LDKCompleted_Body completed; - struct { - struct LDKOutPoint update_failed; - }; }; } LDKMonitorEvent; @@ -4874,22 +5078,6 @@ typedef struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ { bool result_ok; } LDKCResult_ChannelTypeFeaturesDecodeErrorZ; -/** - * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_ChainHashZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKThirtyTwoBytes *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_ChainHashZ; - /** @@ -4956,9 +5144,9 @@ typedef struct LDKCResult_OfferBolt12ParseErrorZ { } LDKCResult_OfferBolt12ParseErrorZ; /** - * The contents of CResult_PublicKeyErrorZ + * The contents of CResult_PublicKeySecp256k1ErrorZ */ -typedef union LDKCResult_PublicKeyErrorZPtr { +typedef union LDKCResult_PublicKeySecp256k1ErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -4969,24 +5157,24 @@ typedef union LDKCResult_PublicKeyErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKSecp256k1Error *err; -} LDKCResult_PublicKeyErrorZPtr; +} LDKCResult_PublicKeySecp256k1ErrorZPtr; /** - * A CResult_PublicKeyErrorZ represents the result of a fallible operation, + * A CResult_PublicKeySecp256k1ErrorZ represents the result of a fallible operation, * containing a crate::c_types::PublicKey on success and a crate::c_types::Secp256k1Error on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PublicKeyErrorZ { +typedef struct LDKCResult_PublicKeySecp256k1ErrorZ { /** - * The contents of this CResult_PublicKeyErrorZ, accessible via either + * The contents of this CResult_PublicKeySecp256k1ErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PublicKeyErrorZPtr contents; + union LDKCResult_PublicKeySecp256k1ErrorZPtr contents; /** - * Whether this CResult_PublicKeyErrorZ represents a success state. + * Whether this CResult_PublicKeySecp256k1ErrorZ represents a success state. */ bool result_ok; -} LDKCResult_PublicKeyErrorZ; +} LDKCResult_PublicKeySecp256k1ErrorZ; /** * The contents of CResult_NodeIdDecodeErrorZ @@ -5764,6 +5952,27 @@ typedef struct MUST_USE_STRUCT LDKTxAckRbf { +/** + * A tx_abort message which signals the cancellation of an in-progress transaction negotiation. + * + */ +typedef struct MUST_USE_STRUCT LDKTxAbort { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeTxAbort *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKTxAbort; + + + /** * A [`channel_ready`] message to be sent to or received from a peer. * @@ -6502,7 +6711,7 @@ typedef struct LDKMessageSendEvent_LDKSendTxAbort_Body { /** * The message which should be sent. */ - struct LDKTxAddInput msg; + struct LDKTxAbort msg; } LDKMessageSendEvent_LDKSendTxAbort_Body; typedef struct LDKMessageSendEvent_LDKSendChannelReady_Body { @@ -6953,40 +7162,40 @@ typedef struct MUST_USE_STRUCT LDKHostname { /** * An address which can be used to connect to a remote peer. */ -typedef enum LDKNetAddress_Tag { +typedef enum LDKSocketAddress_Tag { /** - * An IPv4 address/port on which the peer is listening. + * An IPv4 address and port on which the peer is listening. */ - LDKNetAddress_IPv4, + LDKSocketAddress_TcpIpV4, /** - * An IPv6 address/port on which the peer is listening. + * An IPv6 address and port on which the peer is listening. */ - LDKNetAddress_IPv6, + LDKSocketAddress_TcpIpV6, /** * An old-style Tor onion address/port on which the peer is listening. * * This field is deprecated and the Tor network generally no longer supports V2 Onion * addresses. Thus, the details are not parsed here. */ - LDKNetAddress_OnionV2, + LDKSocketAddress_OnionV2, /** * A new-style Tor onion address/port on which the peer is listening. * * To create the human-readable \"hostname\", concatenate the ED25519 pubkey, checksum, and version, * wrap as base32 and append \".onion\". */ - LDKNetAddress_OnionV3, + LDKSocketAddress_OnionV3, /** * A hostname/port on which the peer is listening. */ - LDKNetAddress_Hostname, + LDKSocketAddress_Hostname, /** * Must be last for serialization purposes */ - LDKNetAddress_Sentinel, -} LDKNetAddress_Tag; + LDKSocketAddress_Sentinel, +} LDKSocketAddress_Tag; -typedef struct LDKNetAddress_LDKIPv4_Body { +typedef struct LDKSocketAddress_LDKTcpIpV4_Body { /** * The 4-byte IPv4 address */ @@ -6995,9 +7204,9 @@ typedef struct LDKNetAddress_LDKIPv4_Body { * The port on which the node is listening */ uint16_t port; -} LDKNetAddress_LDKIPv4_Body; +} LDKSocketAddress_LDKTcpIpV4_Body; -typedef struct LDKNetAddress_LDKIPv6_Body { +typedef struct LDKSocketAddress_LDKTcpIpV6_Body { /** * The 16-byte IPv6 address */ @@ -7006,9 +7215,9 @@ typedef struct LDKNetAddress_LDKIPv6_Body { * The port on which the node is listening */ uint16_t port; -} LDKNetAddress_LDKIPv6_Body; +} LDKSocketAddress_LDKTcpIpV6_Body; -typedef struct LDKNetAddress_LDKOnionV3_Body { +typedef struct LDKSocketAddress_LDKOnionV3_Body { /** * The ed25519 long-term public key of the peer */ @@ -7025,9 +7234,9 @@ typedef struct LDKNetAddress_LDKOnionV3_Body { * The port on which the node is listening */ uint16_t port; -} LDKNetAddress_LDKOnionV3_Body; +} LDKSocketAddress_LDKOnionV3_Body; -typedef struct LDKNetAddress_LDKHostname_Body { +typedef struct LDKSocketAddress_LDKHostname_Body { /** * The hostname on which the node is listening. */ @@ -7036,36 +7245,36 @@ typedef struct LDKNetAddress_LDKHostname_Body { * The port on which the node is listening. */ uint16_t port; -} LDKNetAddress_LDKHostname_Body; +} LDKSocketAddress_LDKHostname_Body; -typedef struct MUST_USE_STRUCT LDKNetAddress { - LDKNetAddress_Tag tag; +typedef struct MUST_USE_STRUCT LDKSocketAddress { + LDKSocketAddress_Tag tag; union { - LDKNetAddress_LDKIPv4_Body i_pv4; - LDKNetAddress_LDKIPv6_Body i_pv6; + LDKSocketAddress_LDKTcpIpV4_Body tcp_ip_v4; + LDKSocketAddress_LDKTcpIpV6_Body tcp_ip_v6; struct { struct LDKTwelveBytes onion_v2; }; - LDKNetAddress_LDKOnionV3_Body onion_v3; - LDKNetAddress_LDKHostname_Body hostname; + LDKSocketAddress_LDKOnionV3_Body onion_v3; + LDKSocketAddress_LDKHostname_Body hostname; }; -} LDKNetAddress; +} LDKSocketAddress; /** - * A dynamically-allocated array of crate::lightning::ln::msgs::NetAddresss of arbitrary size. + * A dynamically-allocated array of crate::lightning::ln::msgs::SocketAddresss of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_NetAddressZ { +typedef struct LDKCVec_SocketAddressZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKNetAddress *data; + struct LDKSocketAddress *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_NetAddressZ; +} LDKCVec_SocketAddressZ; @@ -7263,58 +7472,117 @@ typedef struct LDKCResult_NetworkGraphDecodeErrorZ { } LDKCResult_NetworkGraphDecodeErrorZ; /** - * An enum which can either contain a crate::c_types::derived::CVec_NetAddressZ or not + * An enum which can either contain a crate::c_types::derived::CVec_SocketAddressZ or not */ -typedef enum LDKCOption_CVec_NetAddressZZ_Tag { +typedef enum LDKCOption_CVec_SocketAddressZZ_Tag { /** - * When we're in this state, this COption_CVec_NetAddressZZ contains a crate::c_types::derived::CVec_NetAddressZ + * When we're in this state, this COption_CVec_SocketAddressZZ contains a crate::c_types::derived::CVec_SocketAddressZ */ - LDKCOption_CVec_NetAddressZZ_Some, + LDKCOption_CVec_SocketAddressZZ_Some, /** - * When we're in this state, this COption_CVec_NetAddressZZ contains nothing + * When we're in this state, this COption_CVec_SocketAddressZZ contains nothing */ - LDKCOption_CVec_NetAddressZZ_None, + LDKCOption_CVec_SocketAddressZZ_None, /** * Must be last for serialization purposes */ - LDKCOption_CVec_NetAddressZZ_Sentinel, -} LDKCOption_CVec_NetAddressZZ_Tag; + LDKCOption_CVec_SocketAddressZZ_Sentinel, +} LDKCOption_CVec_SocketAddressZZ_Tag; -typedef struct LDKCOption_CVec_NetAddressZZ { - LDKCOption_CVec_NetAddressZZ_Tag tag; +typedef struct LDKCOption_CVec_SocketAddressZZ { + LDKCOption_CVec_SocketAddressZZ_Tag tag; union { struct { - struct LDKCVec_NetAddressZ some; + struct LDKCVec_SocketAddressZ some; }; }; -} LDKCOption_CVec_NetAddressZZ; +} LDKCOption_CVec_SocketAddressZZ; + + /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * The parameters required to derive a channel signer via [`SignerProvider`]. */ -typedef enum LDKCOption_PaymentPreimageZ_Tag { +typedef struct MUST_USE_STRUCT LDKChannelDerivationParameters { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeChannelDerivationParameters *inner; /** - * When we're in this state, this COption_PaymentPreimageZ contains a crate::c_types::ThirtyTwoBytes + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. */ - LDKCOption_PaymentPreimageZ_Some, + bool is_owned; +} LDKChannelDerivationParameters; + +/** + * The contents of CResult_ChannelDerivationParametersDecodeErrorZ + */ +typedef union LDKCResult_ChannelDerivationParametersDecodeErrorZPtr { /** - * When we're in this state, this COption_PaymentPreimageZ contains nothing + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - LDKCOption_PaymentPreimageZ_None, + struct LDKChannelDerivationParameters *result; /** - * Must be last for serialization purposes + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - LDKCOption_PaymentPreimageZ_Sentinel, -} LDKCOption_PaymentPreimageZ_Tag; + struct LDKDecodeError *err; +} LDKCResult_ChannelDerivationParametersDecodeErrorZPtr; -typedef struct LDKCOption_PaymentPreimageZ { - LDKCOption_PaymentPreimageZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_PaymentPreimageZ; +/** + * A CResult_ChannelDerivationParametersDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::events::bump_transaction::ChannelDerivationParameters on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ChannelDerivationParametersDecodeErrorZ { + /** + * The contents of this CResult_ChannelDerivationParametersDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ChannelDerivationParametersDecodeErrorZPtr contents; + /** + * Whether this CResult_ChannelDerivationParametersDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_ChannelDerivationParametersDecodeErrorZ; + +/** + * The contents of CResult_HTLCDescriptorDecodeErrorZ + */ +typedef union LDKCResult_HTLCDescriptorDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKHTLCDescriptor *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_HTLCDescriptorDecodeErrorZPtr; + +/** + * A CResult_HTLCDescriptorDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::events::bump_transaction::HTLCDescriptor on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_HTLCDescriptorDecodeErrorZ { + /** + * The contents of this CResult_HTLCDescriptorDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_HTLCDescriptorDecodeErrorZPtr contents; + /** + * Whether this CResult_HTLCDescriptorDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_HTLCDescriptorDecodeErrorZ; /** * A dynamically-allocated array of crate::lightning::ln::chan_utils::HTLCOutputInCommitments of arbitrary size. @@ -7536,31 +7804,45 @@ typedef struct LDKCResult_CVec_UtxoZNoneZ { } LDKCResult_CVec_UtxoZNoneZ; /** - * An enum which can either contain a u16 or not + * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef enum LDKCOption_u16Z_Tag { +typedef struct LDKC2Tuple_u64u16Z { /** - * When we're in this state, this COption_u16Z contains a u16 + * The element at position 0 */ - LDKCOption_u16Z_Some, + uint64_t a; /** - * When we're in this state, this COption_u16Z contains nothing + * The element at position 1 */ - LDKCOption_u16Z_None, + uint16_t b; +} LDKC2Tuple_u64u16Z; + +/** + * An enum which can either contain a crate::c_types::derived::C2Tuple_u64u16Z or not + */ +typedef enum LDKCOption_C2Tuple_u64u16ZZ_Tag { + /** + * When we're in this state, this COption_C2Tuple_u64u16ZZ contains a crate::c_types::derived::C2Tuple_u64u16Z + */ + LDKCOption_C2Tuple_u64u16ZZ_Some, + /** + * When we're in this state, this COption_C2Tuple_u64u16ZZ contains nothing + */ + LDKCOption_C2Tuple_u64u16ZZ_None, /** * Must be last for serialization purposes */ - LDKCOption_u16Z_Sentinel, -} LDKCOption_u16Z_Tag; + LDKCOption_C2Tuple_u64u16ZZ_Sentinel, +} LDKCOption_C2Tuple_u64u16ZZ_Tag; -typedef struct LDKCOption_u16Z { - LDKCOption_u16Z_Tag tag; +typedef struct LDKCOption_C2Tuple_u64u16ZZ { + LDKCOption_C2Tuple_u64u16ZZ_Tag tag; union { struct { - uint16_t some; + struct LDKC2Tuple_u64u16Z some; }; }; -} LDKCOption_u16Z; +} LDKCOption_C2Tuple_u64u16ZZ; /** * An enum which can either contain a crate::lightning::ln::channelmanager::ChannelShutdownState or not @@ -7590,36 +7872,9 @@ typedef struct LDKCOption_ChannelShutdownStateZ { } LDKCOption_ChannelShutdownStateZ; /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * The contents of CResult_ThirtyTwoBytesAPIErrorZ */ -typedef enum LDKCOption_PaymentHashZ_Tag { - /** - * When we're in this state, this COption_PaymentHashZ contains a crate::c_types::ThirtyTwoBytes - */ - LDKCOption_PaymentHashZ_Some, - /** - * When we're in this state, this COption_PaymentHashZ contains nothing - */ - LDKCOption_PaymentHashZ_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_PaymentHashZ_Sentinel, -} LDKCOption_PaymentHashZ_Tag; - -typedef struct LDKCOption_PaymentHashZ { - LDKCOption_PaymentHashZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_PaymentHashZ; - -/** - * The contents of CResult__u832APIErrorZ - */ -typedef union LDKCResult__u832APIErrorZPtr { +typedef union LDKCResult_ThirtyTwoBytesAPIErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -7630,30 +7885,34 @@ typedef union LDKCResult__u832APIErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKAPIError *err; -} LDKCResult__u832APIErrorZPtr; +} LDKCResult_ThirtyTwoBytesAPIErrorZPtr; /** - * A CResult__u832APIErrorZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesAPIErrorZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::util::errors::APIError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult__u832APIErrorZ { +typedef struct LDKCResult_ThirtyTwoBytesAPIErrorZ { /** - * The contents of this CResult__u832APIErrorZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesAPIErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult__u832APIErrorZPtr contents; + union LDKCResult_ThirtyTwoBytesAPIErrorZPtr contents; /** - * Whether this CResult__u832APIErrorZ represents a success state. + * Whether this CResult_ThirtyTwoBytesAPIErrorZ represents a success state. */ bool result_ok; -} LDKCResult__u832APIErrorZ; +} LDKCResult_ThirtyTwoBytesAPIErrorZ; /** * Used by [`ChannelManager::list_recent_payments`] to express the status of recent payments. * These include payments that have yet to find a successful path, or have unresolved HTLCs. */ typedef enum LDKRecentPaymentDetails_Tag { + /** + * When an invoice was requested and thus a payment has not yet been sent. + */ + LDKRecentPaymentDetails_AwaitingInvoice, /** * When a payment is still being sent and awaiting successful delivery. */ @@ -7676,7 +7935,20 @@ typedef enum LDKRecentPaymentDetails_Tag { LDKRecentPaymentDetails_Sentinel, } LDKRecentPaymentDetails_Tag; +typedef struct LDKRecentPaymentDetails_LDKAwaitingInvoice_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; +} LDKRecentPaymentDetails_LDKAwaitingInvoice_Body; + typedef struct LDKRecentPaymentDetails_LDKPending_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; /** * Hash of the payment that is currently being sent but has yet to be fulfilled or * abandoned. @@ -7690,14 +7962,24 @@ typedef struct LDKRecentPaymentDetails_LDKPending_Body { } LDKRecentPaymentDetails_LDKPending_Body; typedef struct LDKRecentPaymentDetails_LDKFulfilled_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; /** * Hash of the payment that was claimed. `None` for serializations of [`ChannelManager`] * made before LDK version 0.0.104. */ - struct LDKCOption_PaymentHashZ payment_hash; + struct LDKCOption_ThirtyTwoBytesZ payment_hash; } LDKRecentPaymentDetails_LDKFulfilled_Body; typedef struct LDKRecentPaymentDetails_LDKAbandoned_Body { + /** + * A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify + * a payment and ensure idempotency in LDK. + */ + struct LDKThirtyTwoBytes payment_id; /** * Hash of the payment that we have given up trying to send. */ @@ -7707,6 +7989,7 @@ typedef struct LDKRecentPaymentDetails_LDKAbandoned_Body { typedef struct MUST_USE_STRUCT LDKRecentPaymentDetails { LDKRecentPaymentDetails_Tag tag; union { + LDKRecentPaymentDetails_LDKAwaitingInvoice_Body awaiting_invoice; LDKRecentPaymentDetails_LDKPending_Body pending; LDKRecentPaymentDetails_LDKFulfilled_Body fulfilled; LDKRecentPaymentDetails_LDKAbandoned_Body abandoned; @@ -7905,9 +8188,9 @@ typedef struct LDKCResult_NoneRetryableSendFailureZ { } LDKCResult_NoneRetryableSendFailureZ; /** - * The contents of CResult_PaymentHashPaymentSendFailureZ + * The contents of CResult_ThirtyTwoBytesPaymentSendFailureZ */ -typedef union LDKCResult_PaymentHashPaymentSendFailureZPtr { +typedef union LDKCResult_ThirtyTwoBytesPaymentSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -7918,29 +8201,29 @@ typedef union LDKCResult_PaymentHashPaymentSendFailureZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKPaymentSendFailure *err; -} LDKCResult_PaymentHashPaymentSendFailureZPtr; +} LDKCResult_ThirtyTwoBytesPaymentSendFailureZPtr; /** - * A CResult_PaymentHashPaymentSendFailureZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesPaymentSendFailureZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::ln::outbound_payment::PaymentSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentHashPaymentSendFailureZ { +typedef struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ { /** - * The contents of this CResult_PaymentHashPaymentSendFailureZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesPaymentSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentHashPaymentSendFailureZPtr contents; + union LDKCResult_ThirtyTwoBytesPaymentSendFailureZPtr contents; /** - * Whether this CResult_PaymentHashPaymentSendFailureZ represents a success state. + * Whether this CResult_ThirtyTwoBytesPaymentSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentHashPaymentSendFailureZ; +} LDKCResult_ThirtyTwoBytesPaymentSendFailureZ; /** - * The contents of CResult_PaymentHashRetryableSendFailureZ + * The contents of CResult_ThirtyTwoBytesRetryableSendFailureZ */ -typedef union LDKCResult_PaymentHashRetryableSendFailureZPtr { +typedef union LDKCResult_ThirtyTwoBytesRetryableSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -7951,29 +8234,29 @@ typedef union LDKCResult_PaymentHashRetryableSendFailureZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKRetryableSendFailure *err; -} LDKCResult_PaymentHashRetryableSendFailureZPtr; +} LDKCResult_ThirtyTwoBytesRetryableSendFailureZPtr; /** - * A CResult_PaymentHashRetryableSendFailureZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesRetryableSendFailureZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::ln::outbound_payment::RetryableSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentHashRetryableSendFailureZ { +typedef struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ { /** - * The contents of this CResult_PaymentHashRetryableSendFailureZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesRetryableSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentHashRetryableSendFailureZPtr contents; + union LDKCResult_ThirtyTwoBytesRetryableSendFailureZPtr contents; /** - * Whether this CResult_PaymentHashRetryableSendFailureZ represents a success state. + * Whether this CResult_ThirtyTwoBytesRetryableSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentHashRetryableSendFailureZ; +} LDKCResult_ThirtyTwoBytesRetryableSendFailureZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_PaymentHashPaymentIdZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ { /** * The element at position 0 */ @@ -7982,194 +8265,181 @@ typedef struct LDKC2Tuple_PaymentHashPaymentIdZ { * The element at position 1 */ struct LDKThirtyTwoBytes b; -} LDKC2Tuple_PaymentHashPaymentIdZ; +} LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ; /** - * The contents of CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ */ -typedef union LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_PaymentHashPaymentIdZ *result; + struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKPaymentSendFailure *err; -} LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZPtr; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZPtr; /** - * A CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_PaymentHashPaymentIdZ on success and a crate::lightning::ln::outbound_payment::PaymentSendFailure on failure. + * A CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ on success and a crate::lightning::ln::outbound_payment::PaymentSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ { /** - * The contents of this CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZPtr contents; /** - * Whether this CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ; /** - * A dynamically-allocated array of crate::c_types::ThirtyTwoBytess of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesThirtyTwoBytesZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_ThirtyTwoBytesZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKThirtyTwoBytes *data; + struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_ThirtyTwoBytesZ; +} LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ; /** - * A tuple of 2 elements. See the individual fields for the types contained. + * Indicates that we failed to send a payment probe. Further errors may be surfaced later via + * [`Event::ProbeFailed`]. + * + * [`Event::ProbeFailed`]: crate::events::Event::ProbeFailed */ -typedef struct LDKC2Tuple_PaymentHashPaymentSecretZ { +typedef enum LDKProbeSendFailure_Tag { /** - * The element at position 0 + * We were unable to find a route to the destination. */ - struct LDKThirtyTwoBytes a; + LDKProbeSendFailure_RouteNotFound, /** - * The element at position 1 + * We failed to send the payment probes. */ - struct LDKThirtyTwoBytes b; -} LDKC2Tuple_PaymentHashPaymentSecretZ; + LDKProbeSendFailure_SendingFailed, + /** + * Must be last for serialization purposes + */ + LDKProbeSendFailure_Sentinel, +} LDKProbeSendFailure_Tag; + +typedef struct MUST_USE_STRUCT LDKProbeSendFailure { + LDKProbeSendFailure_Tag tag; + union { + struct { + struct LDKPaymentSendFailure sending_failed; + }; + }; +} LDKProbeSendFailure; /** - * The contents of CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ + * The contents of CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ */ -typedef union LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZPtr { +typedef union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_PaymentHashPaymentSecretZ *result; + struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ *result; /** - * Note that this value is always NULL, as there are no contents in the Err variant + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - void *err; -} LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZPtr; + struct LDKProbeSendFailure *err; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZPtr; /** - * A CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_PaymentHashPaymentSecretZ on success and a () on failure. + * A CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ on success and a crate::lightning::ln::outbound_payment::ProbeSendFailure on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ { +typedef struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ { /** - * The contents of this CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ, accessible via either + * The contents of this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZPtr contents; + union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZPtr contents; /** - * Whether this CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ represents a success state. + * Whether this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ; /** - * The contents of CResult_PaymentSecretNoneZ + * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef union LDKCResult_PaymentSecretNoneZPtr { +typedef struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ { /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. + * The element at position 0 */ - struct LDKThirtyTwoBytes *result; + struct LDKThirtyTwoBytes a; /** - * Note that this value is always NULL, as there are no contents in the Err variant + * The element at position 1 */ - void *err; -} LDKCResult_PaymentSecretNoneZPtr; + struct LDKPublicKey b; +} LDKC2Tuple_ThirtyTwoBytesPublicKeyZ; /** - * A CResult_PaymentSecretNoneZ represents the result of a fallible operation, - * containing a crate::c_types::ThirtyTwoBytes on success and a () on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesPublicKeyZs of arbitrary size. + * This corresponds to std::vector in C++ */ -typedef struct LDKCResult_PaymentSecretNoneZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ { /** - * The contents of this CResult_PaymentSecretNoneZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - union LDKCResult_PaymentSecretNoneZPtr contents; + struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *data; /** - * Whether this CResult_PaymentSecretNoneZ represents a success state. + * The number of elements pointed to by `data`. */ - bool result_ok; -} LDKCResult_PaymentSecretNoneZ; + uintptr_t datalen; +} LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ; /** - * The contents of CResult_PaymentPreimageAPIErrorZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ */ -typedef union LDKCResult_PaymentPreimageAPIErrorZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKThirtyTwoBytes *result; + struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *result; /** - * A pointer to the contents in the error state. - * Reading from this pointer when `result_ok` is set is undefined. + * Note that this value is always NULL, as there are no contents in the Err variant */ - struct LDKAPIError *err; -} LDKCResult_PaymentPreimageAPIErrorZPtr; + void *err; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZPtr; /** - * A CResult_PaymentPreimageAPIErrorZ represents the result of a fallible operation, - * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning::util::errors::APIError on failure. + * A CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentPreimageAPIErrorZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ { /** - * The contents of this CResult_PaymentPreimageAPIErrorZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentPreimageAPIErrorZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZPtr contents; /** - * Whether this CResult_PaymentPreimageAPIErrorZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentPreimageAPIErrorZ; - -/** - * An enum which can either contain a crate::c_types::derived::CVec_ChainHashZ or not - */ -typedef enum LDKCOption_CVec_ChainHashZZ_Tag { - /** - * When we're in this state, this COption_CVec_ChainHashZZ contains a crate::c_types::derived::CVec_ChainHashZ - */ - LDKCOption_CVec_ChainHashZZ_Some, - /** - * When we're in this state, this COption_CVec_ChainHashZZ contains nothing - */ - LDKCOption_CVec_ChainHashZZ_None, - /** - * Must be last for serialization purposes - */ - LDKCOption_CVec_ChainHashZZ_Sentinel, -} LDKCOption_CVec_ChainHashZZ_Tag; - -typedef struct LDKCOption_CVec_ChainHashZZ { - LDKCOption_CVec_ChainHashZZ_Tag tag; - union { - struct { - struct LDKCVec_ChainHashZ some; - }; - }; -} LDKCOption_CVec_ChainHashZZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ; @@ -8476,21 +8746,12 @@ typedef struct MUST_USE_STRUCT LDKChannelMonitorUpdate { * blocks are connected and disconnected. * * Each channel is associated with a [`ChannelMonitor`]. Implementations of this trait are - * responsible for maintaining a set of monitors such that they can be updated accordingly as - * channel state changes and HTLCs are resolved. See method documentation for specific - * requirements. - * - * Implementations **must** ensure that updates are successfully applied and persisted upon method - * completion. If an update fails with a [`PermanentFailure`], then it must immediately shut down - * without taking any further action such as persisting the current state. - * - * If an implementation maintains multiple instances of a channel's monitor (e.g., by storing - * backup copies), then it must ensure that updates are applied across all instances. Otherwise, it - * could result in a revoked transaction being broadcast, allowing the counterparty to claim all - * funds in the channel. See [`ChannelMonitorUpdateStatus`] for more details about how to handle - * multiple instances. + * responsible for maintaining a set of monitors such that they can be updated as channel state + * changes. On each update, *all copies* of a [`ChannelMonitor`] must be updated and the update + * persisted to disk to ensure that the latest [`ChannelMonitor`] state can be reloaded if the + * application crashes. * - * [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure + * See method documentation and [`ChannelMonitorUpdateStatus`] for specific requirements. */ typedef struct LDKWatch { /** @@ -8505,21 +8766,33 @@ typedef struct LDKWatch { * with any spends of outputs returned by [`get_outputs_to_watch`]. In practice, this means * calling [`block_connected`] and [`block_disconnected`] on the monitor. * - * Note: this interface MUST error with [`ChannelMonitorUpdateStatus::PermanentFailure`] if - * the given `funding_txo` has previously been registered via `watch_channel`. + * A return of `Err(())` indicates that the channel should immediately be force-closed without + * broadcasting the funding transaction. + * + * If the given `funding_txo` has previously been registered via `watch_channel`, `Err(())` + * must be returned. * * [`get_outputs_to_watch`]: channelmonitor::ChannelMonitor::get_outputs_to_watch * [`block_connected`]: channelmonitor::ChannelMonitor::block_connected * [`block_disconnected`]: channelmonitor::ChannelMonitor::block_disconnected */ - enum LDKChannelMonitorUpdateStatus (*watch_channel)(const void *this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor); + struct LDKCResult_ChannelMonitorUpdateStatusNoneZ (*watch_channel)(const void *this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor); /** * Updates a channel identified by `funding_txo` by applying `update` to its monitor. * - * Implementations must call [`update_monitor`] with the given update. See - * [`ChannelMonitorUpdateStatus`] for invariants around returning an error. + * Implementations must call [`ChannelMonitor::update_monitor`] with the given update. This + * may fail (returning an `Err(())`), in which case this should return + * [`ChannelMonitorUpdateStatus::InProgress`] (and the update should never complete). This + * generally implies the channel has been closed (either by the funding outpoint being spent + * on-chain or the [`ChannelMonitor`] having decided to do so and broadcasted a transaction), + * and the [`ChannelManager`] state will be updated once it sees the funding spend on-chain. + * + * In general, persistence failures should be retried after returning + * [`ChannelMonitorUpdateStatus::InProgress`] and eventually complete. If a failure truly + * cannot be retried, the node should shut down immediately after returning + * [`ChannelMonitorUpdateStatus::UnrecoverableError`], see its documentation for more info. * - * [`update_monitor`]: channelmonitor::ChannelMonitor::update_monitor + * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ enum LDKChannelMonitorUpdateStatus (*update_channel)(const void *this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); /** @@ -8627,6 +8900,56 @@ typedef struct LDKu8slice { +/** + * A semantically valid [`InvoiceRequest`] that hasn't been signed. + * + * # Serialization + * + * This is serialized as a TLV stream, which includes TLV records from the originating message. As + * such, it may include unknown, odd TLV records. + */ +typedef struct MUST_USE_STRUCT LDKUnsignedInvoiceRequest { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeUnsignedInvoiceRequest *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKUnsignedInvoiceRequest; + + + +/** + * A semantically valid [`Bolt12Invoice`] that hasn't been signed. + * + * # Serialization + * + * This is serialized as a TLV stream, which includes TLV records from the originating message. As + * such, it may include unknown, odd TLV records. + */ +typedef struct MUST_USE_STRUCT LDKUnsignedBolt12Invoice { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeUnsignedBolt12Invoice *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKUnsignedBolt12Invoice; + + + /** * The unsigned part of a [`channel_update`] message. * @@ -8746,7 +9069,7 @@ typedef struct LDKNodeSigner { * * Errors if the [`Recipient`] variant is not supported by the implementation. */ - struct LDKCResult_SharedSecretNoneZ (*ecdh)(const void *this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_ScalarZ tweak); + struct LDKCResult_ThirtyTwoBytesNoneZ (*ecdh)(const void *this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_BigEndianScalarZ tweak); /** * Sign an invoice. * @@ -8761,6 +9084,34 @@ typedef struct LDKNodeSigner { * Errors if the [`Recipient`] variant is not supported by the implementation. */ struct LDKCResult_RecoverableSignatureNoneZ (*sign_invoice)(const void *this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient); + /** + * Signs the [`TaggedHash`] of a BOLT 12 invoice request. + * + * May be called by a function passed to [`UnsignedInvoiceRequest::sign`] where + * `invoice_request` is the callee. + * + * Implementors may check that the `invoice_request` is expected rather than blindly signing + * the tagged hash. An `Ok` result should sign `invoice_request.tagged_hash().as_digest()` with + * the node's signing key or an ephemeral key to preserve privacy, whichever is associated with + * [`UnsignedInvoiceRequest::payer_id`]. + * + * [`TaggedHash`]: crate::offers::merkle::TaggedHash + */ + struct LDKCResult_SchnorrSignatureNoneZ (*sign_bolt12_invoice_request)(const void *this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR invoice_request); + /** + * Signs the [`TaggedHash`] of a BOLT 12 invoice. + * + * May be called by a function passed to [`UnsignedBolt12Invoice::sign`] where `invoice` is the + * callee. + * + * Implementors may check that the `invoice` is expected rather than blindly signing the tagged + * hash. An `Ok` result should sign `invoice.tagged_hash().as_digest()` with the node's signing + * key or an ephemeral key to preserve privacy, whichever is associated with + * [`UnsignedBolt12Invoice::signing_pubkey`]. + * + * [`TaggedHash`]: crate::offers::merkle::TaggedHash + */ + struct LDKCResult_SchnorrSignatureNoneZ (*sign_bolt12_invoice)(const void *this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR invoice); /** * Sign a gossip message. * @@ -8769,7 +9120,7 @@ typedef struct LDKNodeSigner { * message to be broadcast, as otherwise it may prevent one from receiving funds over the * corresponding channel. */ - struct LDKCResult_SignatureNoneZ (*sign_gossip_message)(const void *this_arg, struct LDKUnsignedGossipMessage msg); + struct LDKCResult_ECDSASignatureNoneZ (*sign_gossip_message)(const void *this_arg, struct LDKUnsignedGossipMessage msg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -8828,7 +9179,7 @@ typedef struct LDKSignerProvider { * This method should return a different value each time it is called, to avoid linking * on-chain funds across channels as controlled to the same user. */ - struct LDKCResult_ScriptNoneZ (*get_destination_script)(const void *this_arg); + struct LDKCResult_CVec_u8ZNoneZ (*get_destination_script)(const void *this_arg); /** * Get a script pubkey which we will send funds to when closing a channel. * @@ -8935,12 +9286,14 @@ typedef struct LDKRouter { * called [`funding_transaction_generated`] for outbound channels) being closed. * * Note that you can be a bit lazier about writing out `ChannelManager` than you can be with - * [`ChannelMonitor`]. With [`ChannelMonitor`] you MUST write each monitor update out to disk before - * returning from [`chain::Watch::watch_channel`]/[`update_channel`], with ChannelManagers, writing updates - * happens out-of-band (and will prevent any other `ChannelManager` operations from occurring during - * the serialization process). If the deserialized version is out-of-date compared to the - * [`ChannelMonitor`] passed by reference to [`read`], those channels will be force-closed based on the - * `ChannelMonitor` state and no funds will be lost (mod on-chain transaction fees). + * [`ChannelMonitor`]. With [`ChannelMonitor`] you MUST durably write each + * [`ChannelMonitorUpdate`] before returning from + * [`chain::Watch::watch_channel`]/[`update_channel`] or before completing async writes. With + * `ChannelManager`s, writing updates happens out-of-band (and will prevent any other + * `ChannelManager` operations from occurring during the serialization process). If the + * deserialized version is out-of-date compared to the [`ChannelMonitor`] passed by reference to + * [`read`], those channels will be force-closed based on the `ChannelMonitor` state and no funds + * will be lost (modulo on-chain transaction fees). * * Note that the deserializer is only implemented for `(`[`BlockHash`]`, `[`ChannelManager`]`)`, which * tells you the last block hash which was connected. You should get the best block tip before using the manager. @@ -8994,7 +9347,7 @@ typedef struct MUST_USE_STRUCT LDKChannelManager { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_BlockHashChannelManagerZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ { /** * The element at position 0 */ @@ -9003,40 +9356,40 @@ typedef struct LDKC2Tuple_BlockHashChannelManagerZ { * The element at position 1 */ struct LDKChannelManager b; -} LDKC2Tuple_BlockHashChannelManagerZ; +} LDKC2Tuple_ThirtyTwoBytesChannelManagerZ; /** - * The contents of CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ */ -typedef union LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_BlockHashChannelManagerZ *result; + struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKDecodeError *err; -} LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZPtr; /** - * A CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_BlockHashChannelManagerZ on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelManagerZ on success and a crate::lightning::ln::msgs::DecodeError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ { /** - * The contents of this CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZPtr contents; /** - * Whether this CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ; /** * Options for how to set the max dust HTLC exposure allowed on a channel. See @@ -9406,7 +9759,7 @@ typedef struct LDKCResult_HTLCUpdateDecodeErrorZ { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_OutPointScriptZ { +typedef struct LDKC2Tuple_OutPointCVec_u8ZZ { /** * The element at position 0 */ @@ -9415,12 +9768,12 @@ typedef struct LDKC2Tuple_OutPointScriptZ { * The element at position 1 */ struct LDKCVec_u8Z b; -} LDKC2Tuple_OutPointScriptZ; +} LDKC2Tuple_OutPointCVec_u8ZZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_u32ScriptZ { +typedef struct LDKC2Tuple_u32CVec_u8ZZ { /** * The element at position 0 */ @@ -9429,28 +9782,28 @@ typedef struct LDKC2Tuple_u32ScriptZ { * The element at position 1 */ struct LDKCVec_u8Z b; -} LDKC2Tuple_u32ScriptZ; +} LDKC2Tuple_u32CVec_u8ZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_u32ScriptZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_u32CVec_u8ZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_u32ScriptZZ { +typedef struct LDKCVec_C2Tuple_u32CVec_u8ZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_u32ScriptZ *data; + struct LDKC2Tuple_u32CVec_u8ZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_u32ScriptZZ; +} LDKCVec_C2Tuple_u32CVec_u8ZZZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ { /** * The element at position 0 */ @@ -9458,24 +9811,40 @@ typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ { /** * The element at position 1 */ - struct LDKCVec_C2Tuple_u32ScriptZZ b; -} LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ; + struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b; +} LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ { +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *data; + struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ; +} LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ; + +/** + * A dynamically-allocated array of crate::lightning::ln::chan_utils::CommitmentTransactions of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_CommitmentTransactionZ { + /** + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). + */ + struct LDKCommitmentTransaction *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_CommitmentTransactionZ; /** * A tuple of 2 elements. See the individual fields for the types contained. @@ -9510,7 +9879,7 @@ typedef struct LDKCVec_C2Tuple_u32TxOutZZ { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ { /** * The element at position 0 */ @@ -9519,10 +9888,10 @@ typedef struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ { * The element at position 1 */ struct LDKCVec_C2Tuple_u32TxOutZZ b; -} LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ; +} LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZs of arbitrary size. * This corresponds to std::vector in C++ */ typedef struct LDKCVec_TransactionOutputsZ { @@ -9530,7 +9899,7 @@ typedef struct LDKCVec_TransactionOutputsZ { * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *data; + struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *data; /** * The number of elements pointed to by `data`. */ @@ -9708,7 +10077,7 @@ typedef struct LDKCVec_BalanceZ { /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_BlockHashChannelMonitorZ { +typedef struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ { /** * The element at position 0 */ @@ -9717,40 +10086,40 @@ typedef struct LDKC2Tuple_BlockHashChannelMonitorZ { * The element at position 1 */ struct LDKChannelMonitor b; -} LDKC2Tuple_BlockHashChannelMonitorZ; +} LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ; /** - * The contents of CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + * The contents of CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ */ -typedef union LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr { +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKC2Tuple_BlockHashChannelMonitorZ *result; + struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKDecodeError *err; -} LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZPtr; /** - * A CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ represents the result of a fallible operation, - * containing a crate::c_types::derived::C2Tuple_BlockHashChannelMonitorZ on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelMonitorZ on success and a crate::lightning::ln::msgs::DecodeError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ { /** - * The contents of this CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ, accessible via either + * The contents of this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZPtr contents; + union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZPtr contents; /** - * Whether this CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ represents a success state. + * Whether this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ represents a success state. */ bool result_ok; -} LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ; /** * Defines a type identifier for sending messages over the wire. @@ -10115,36 +10484,36 @@ typedef struct LDKCResult_COption_TypeZDecodeErrorZ { } LDKCResult_COption_TypeZDecodeErrorZ; /** - * An enum which can either contain a crate::lightning::ln::msgs::NetAddress or not + * An enum which can either contain a crate::lightning::ln::msgs::SocketAddress or not */ -typedef enum LDKCOption_NetAddressZ_Tag { +typedef enum LDKCOption_SocketAddressZ_Tag { /** - * When we're in this state, this COption_NetAddressZ contains a crate::lightning::ln::msgs::NetAddress + * When we're in this state, this COption_SocketAddressZ contains a crate::lightning::ln::msgs::SocketAddress */ - LDKCOption_NetAddressZ_Some, + LDKCOption_SocketAddressZ_Some, /** - * When we're in this state, this COption_NetAddressZ contains nothing + * When we're in this state, this COption_SocketAddressZ contains nothing */ - LDKCOption_NetAddressZ_None, + LDKCOption_SocketAddressZ_None, /** * Must be last for serialization purposes */ - LDKCOption_NetAddressZ_Sentinel, -} LDKCOption_NetAddressZ_Tag; + LDKCOption_SocketAddressZ_Sentinel, +} LDKCOption_SocketAddressZ_Tag; -typedef struct LDKCOption_NetAddressZ { - LDKCOption_NetAddressZ_Tag tag; +typedef struct LDKCOption_SocketAddressZ { + LDKCOption_SocketAddressZ_Tag tag; union { struct { - struct LDKNetAddress some; + struct LDKSocketAddress some; }; }; -} LDKCOption_NetAddressZ; +} LDKCOption_SocketAddressZ; /** * A tuple of 2 elements. See the individual fields for the types contained. */ -typedef struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ { +typedef struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ { /** * The element at position 0 */ @@ -10152,24 +10521,24 @@ typedef struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ { /** * The element at position 1 */ - struct LDKCOption_NetAddressZ b; -} LDKC2Tuple_PublicKeyCOption_NetAddressZZ; + struct LDKCOption_SocketAddressZ b; +} LDKC2Tuple_PublicKeyCOption_SocketAddressZZ; /** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_PublicKeyCOption_NetAddressZZs of arbitrary size. + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_PublicKeyCOption_SocketAddressZZs of arbitrary size. * This corresponds to std::vector in C++ */ -typedef struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ { +typedef struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ { /** * The elements in the array. * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *data; + struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *data; /** * The number of elements pointed to by `data`. */ uintptr_t datalen; -} LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ; +} LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ; @@ -10357,100 +10726,258 @@ typedef struct LDKCResult_u32GraphSyncErrorZ { } LDKCResult_u32GraphSyncErrorZ; /** - * Represents a valid secp256k1 secret key serialized as a 32 byte array. + * The contents of CResult_CVec_u8ZIOErrorZ */ -typedef struct LDKSecretKey { +typedef union LDKCResult_CVec_u8ZIOErrorZPtr { /** - * The bytes of the secret key + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - uint8_t bytes[32]; -} LDKSecretKey; + struct LDKCVec_u8Z *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + enum LDKIOError *err; +} LDKCResult_CVec_u8ZIOErrorZPtr; /** - * An enum which can either contain a crate::c_types::SecretKey or not + * A CResult_CVec_u8ZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_u8Z on success and a crate::c_types::IOError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef enum LDKCOption_KeyPairZ_Tag { +typedef struct LDKCResult_CVec_u8ZIOErrorZ { /** - * When we're in this state, this COption_KeyPairZ contains a crate::c_types::SecretKey + * The contents of this CResult_CVec_u8ZIOErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKCOption_KeyPairZ_Some, + union LDKCResult_CVec_u8ZIOErrorZPtr contents; /** - * When we're in this state, this COption_KeyPairZ contains nothing + * Whether this CResult_CVec_u8ZIOErrorZ represents a success state. */ - LDKCOption_KeyPairZ_None, + bool result_ok; +} LDKCResult_CVec_u8ZIOErrorZ; + +/** + * A dynamically-allocated array of crate::c_types::Strs of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_StrZ { /** - * Must be last for serialization purposes + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - LDKCOption_KeyPairZ_Sentinel, -} LDKCOption_KeyPairZ_Tag; + struct LDKStr *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_StrZ; -typedef struct LDKCOption_KeyPairZ { - LDKCOption_KeyPairZ_Tag tag; - union { - struct { - struct LDKSecretKey some; - }; - }; -} LDKCOption_KeyPairZ; +/** + * The contents of CResult_CVec_StrZIOErrorZ + */ +typedef union LDKCResult_CVec_StrZIOErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKCVec_StrZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + enum LDKIOError *err; +} LDKCResult_CVec_StrZIOErrorZPtr; /** - * The contents of CResult_COption_KeyPairZNoneZ + * A CResult_CVec_StrZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_StrZ on success and a crate::c_types::IOError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef union LDKCResult_COption_KeyPairZNoneZPtr { +typedef struct LDKCResult_CVec_StrZIOErrorZ { + /** + * The contents of this CResult_CVec_StrZIOErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_CVec_StrZIOErrorZPtr contents; + /** + * Whether this CResult_CVec_StrZIOErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_CVec_StrZIOErrorZ; + +/** + * A dynamically-allocated array of crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelMonitorZs of arbitrary size. + * This corresponds to std::vector in C++ + */ +typedef struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ { + /** + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). + */ + struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *data; + /** + * The number of elements pointed to by `data`. + */ + uintptr_t datalen; +} LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ; + +/** + * The contents of CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + */ +typedef union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKCOption_KeyPairZ *result; + struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ *result; /** - * Note that this value is always NULL, as there are no contents in the Err variant + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - void *err; -} LDKCResult_COption_KeyPairZNoneZPtr; + enum LDKIOError *err; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZPtr; /** - * A CResult_COption_KeyPairZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::COption_KeyPairZ on success and a () on failure. + * A CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ on success and a crate::c_types::IOError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_COption_KeyPairZNoneZ { +typedef struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ { /** - * The contents of this CResult_COption_KeyPairZNoneZ, accessible via either + * The contents of this CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_COption_KeyPairZNoneZPtr contents; + union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZPtr contents; /** - * Whether this CResult_COption_KeyPairZNoneZ represents a success state. + * Whether this CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ represents a success state. */ bool result_ok; -} LDKCResult_COption_KeyPairZNoneZ; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ; /** - * An enum which can either contain a crate::c_types::derived::CVec_u8Z or not + * The contents of CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + */ +typedef union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + enum LDKIOError *err; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZPtr; + +/** + * A CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_ThirtyTwoBytesChannelMonitorZ on success and a crate::c_types::IOError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef enum LDKCOption_ScriptZ_Tag { +typedef struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ { /** - * When we're in this state, this COption_ScriptZ contains a crate::c_types::derived::CVec_u8Z + * The contents of this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKCOption_ScriptZ_Some, + union LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZPtr contents; /** - * When we're in this state, this COption_ScriptZ contains nothing + * Whether this CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ represents a success state. */ - LDKCOption_ScriptZ_None, + bool result_ok; +} LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ; + +/** + * Represents a valid secp256k1 secret key serialized as a 32 byte array. + */ +typedef struct LDKSecretKey { + /** + * The bytes of the secret key + */ + uint8_t bytes[32]; +} LDKSecretKey; + +/** + * An enum which can either contain a crate::c_types::SecretKey or not + */ +typedef enum LDKCOption_SecretKeyZ_Tag { + /** + * When we're in this state, this COption_SecretKeyZ contains a crate::c_types::SecretKey + */ + LDKCOption_SecretKeyZ_Some, + /** + * When we're in this state, this COption_SecretKeyZ contains nothing + */ + LDKCOption_SecretKeyZ_None, /** * Must be last for serialization purposes */ - LDKCOption_ScriptZ_Sentinel, -} LDKCOption_ScriptZ_Tag; + LDKCOption_SecretKeyZ_Sentinel, +} LDKCOption_SecretKeyZ_Tag; -typedef struct LDKCOption_ScriptZ { - LDKCOption_ScriptZ_Tag tag; +typedef struct LDKCOption_SecretKeyZ { + LDKCOption_SecretKeyZ_Tag tag; union { struct { - struct LDKCVec_u8Z some; + struct LDKSecretKey some; }; }; -} LDKCOption_ScriptZ; +} LDKCOption_SecretKeyZ; + + + +/** + * An [`InvoiceRequest`] that has been verified by [`InvoiceRequest::verify`] and exposes different + * ways to respond depending on whether the signing keys were derived. + */ +typedef struct MUST_USE_STRUCT LDKVerifiedInvoiceRequest { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeVerifiedInvoiceRequest *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKVerifiedInvoiceRequest; + +/** + * The contents of CResult_VerifiedInvoiceRequestNoneZ + */ +typedef union LDKCResult_VerifiedInvoiceRequestNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKVerifiedInvoiceRequest *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_VerifiedInvoiceRequestNoneZPtr; + +/** + * A CResult_VerifiedInvoiceRequestNoneZ represents the result of a fallible operation, + * containing a crate::lightning::offers::invoice_request::VerifiedInvoiceRequest on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_VerifiedInvoiceRequestNoneZ { + /** + * The contents of this CResult_VerifiedInvoiceRequestNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_VerifiedInvoiceRequestNoneZPtr contents; + /** + * Whether this CResult_VerifiedInvoiceRequestNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_VerifiedInvoiceRequestNoneZ; /** * A dynamically-allocated array of crate::c_types::Witnesss of arbitrary size. @@ -10496,64 +11023,70 @@ typedef struct LDKCOption_i64Z { } LDKCOption_i64Z; /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * The contents of CResult_SocketAddressDecodeErrorZ */ -typedef enum LDKCOption_TxidZ_Tag { +typedef union LDKCResult_SocketAddressDecodeErrorZPtr { /** - * When we're in this state, this COption_TxidZ contains a crate::c_types::ThirtyTwoBytes + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. */ - LDKCOption_TxidZ_Some, + struct LDKSocketAddress *result; /** - * When we're in this state, this COption_TxidZ contains nothing + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. */ - LDKCOption_TxidZ_None, + struct LDKDecodeError *err; +} LDKCResult_SocketAddressDecodeErrorZPtr; + +/** + * A CResult_SocketAddressDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::msgs::SocketAddress on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_SocketAddressDecodeErrorZ { /** - * Must be last for serialization purposes + * The contents of this CResult_SocketAddressDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. */ - LDKCOption_TxidZ_Sentinel, -} LDKCOption_TxidZ_Tag; - -typedef struct LDKCOption_TxidZ { - LDKCOption_TxidZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_TxidZ; + union LDKCResult_SocketAddressDecodeErrorZPtr contents; + /** + * Whether this CResult_SocketAddressDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_SocketAddressDecodeErrorZ; /** - * The contents of CResult_NetAddressDecodeErrorZ + * The contents of CResult_SocketAddressSocketAddressParseErrorZ */ -typedef union LDKCResult_NetAddressDecodeErrorZPtr { +typedef union LDKCResult_SocketAddressSocketAddressParseErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKNetAddress *result; + struct LDKSocketAddress *result; /** * A pointer to the contents in the error state. * Reading from this pointer when `result_ok` is set is undefined. */ - struct LDKDecodeError *err; -} LDKCResult_NetAddressDecodeErrorZPtr; + enum LDKSocketAddressParseError *err; +} LDKCResult_SocketAddressSocketAddressParseErrorZPtr; /** - * A CResult_NetAddressDecodeErrorZ represents the result of a fallible operation, - * containing a crate::lightning::ln::msgs::NetAddress on success and a crate::lightning::ln::msgs::DecodeError on failure. + * A CResult_SocketAddressSocketAddressParseErrorZ represents the result of a fallible operation, + * containing a crate::lightning::ln::msgs::SocketAddress on success and a crate::lightning::ln::msgs::SocketAddressParseError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_NetAddressDecodeErrorZ { +typedef struct LDKCResult_SocketAddressSocketAddressParseErrorZ { /** - * The contents of this CResult_NetAddressDecodeErrorZ, accessible via either + * The contents of this CResult_SocketAddressSocketAddressParseErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_NetAddressDecodeErrorZPtr contents; + union LDKCResult_SocketAddressSocketAddressParseErrorZPtr contents; /** - * Whether this CResult_NetAddressDecodeErrorZ represents a success state. + * Whether this CResult_SocketAddressSocketAddressParseErrorZ represents a success state. */ bool result_ok; -} LDKCResult_NetAddressDecodeErrorZ; +} LDKCResult_SocketAddressSocketAddressParseErrorZ; @@ -11037,27 +11570,6 @@ typedef struct LDKCResult_TxAckRbfDecodeErrorZ { bool result_ok; } LDKCResult_TxAckRbfDecodeErrorZ; - - -/** - * A tx_abort message which signals the cancellation of an in-progress transaction negotiation. - * - */ -typedef struct MUST_USE_STRUCT LDKTxAbort { - /** - * A pointer to the opaque Rust object. - * Nearly everywhere, inner must be non-null, however in places where - * the Rust equivalent takes an Option, it may be set to null to indicate None. - */ - LDKnativeTxAbort *inner; - /** - * Indicates that this is the only struct which contains the same pointer. - * Rust functions which take ownership of an object provided via an argument require - * this to be true and invalidate the object pointed to by inner. - */ - bool is_owned; -} LDKTxAbort; - /** * The contents of CResult_TxAbortDecodeErrorZ */ @@ -13100,36 +13612,63 @@ typedef struct LDKCResult_TrustedCommitmentTransactionNoneZ { } LDKCResult_TrustedCommitmentTransactionNoneZ; /** - * The contents of CResult_CVec_SignatureZNoneZ + * The contents of CResult_CVec_ECDSASignatureZNoneZ */ -typedef union LDKCResult_CVec_SignatureZNoneZPtr { +typedef union LDKCResult_CVec_ECDSASignatureZNoneZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. */ - struct LDKCVec_SignatureZ *result; + struct LDKCVec_ECDSASignatureZ *result; /** * Note that this value is always NULL, as there are no contents in the Err variant */ void *err; -} LDKCResult_CVec_SignatureZNoneZPtr; +} LDKCResult_CVec_ECDSASignatureZNoneZPtr; /** - * A CResult_CVec_SignatureZNoneZ represents the result of a fallible operation, - * containing a crate::c_types::derived::CVec_SignatureZ on success and a () on failure. + * A CResult_CVec_ECDSASignatureZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_ECDSASignatureZ on success and a () on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_CVec_SignatureZNoneZ { +typedef struct LDKCResult_CVec_ECDSASignatureZNoneZ { /** - * The contents of this CResult_CVec_SignatureZNoneZ, accessible via either + * The contents of this CResult_CVec_ECDSASignatureZNoneZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_CVec_SignatureZNoneZPtr contents; + union LDKCResult_CVec_ECDSASignatureZNoneZPtr contents; /** - * Whether this CResult_CVec_SignatureZNoneZ represents a success state. + * Whether this CResult_CVec_ECDSASignatureZNoneZ represents a success state. */ bool result_ok; -} LDKCResult_CVec_SignatureZNoneZ; +} LDKCResult_CVec_ECDSASignatureZNoneZ; + +/** + * An enum which can either contain a usize or not + */ +typedef enum LDKCOption_usizeZ_Tag { + /** + * When we're in this state, this COption_usizeZ contains a usize + */ + LDKCOption_usizeZ_Some, + /** + * When we're in this state, this COption_usizeZ contains nothing + */ + LDKCOption_usizeZ_None, + /** + * Must be last for serialization purposes + */ + LDKCOption_usizeZ_Sentinel, +} LDKCOption_usizeZ_Tag; + +typedef struct LDKCOption_usizeZ { + LDKCOption_usizeZ_Tag tag; + union { + struct { + uintptr_t some; + }; + }; +} LDKCOption_usizeZ; /** * The contents of CResult_ShutdownScriptDecodeErrorZ @@ -13246,7 +13785,7 @@ typedef struct LDKPaymentPurpose_LDKInvoicePayment_Body { * [`ChannelManager::create_inbound_payment`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment * [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds */ - struct LDKCOption_PaymentPreimageZ payment_preimage; + struct LDKCOption_ThirtyTwoBytesZ payment_preimage; /** * The \"payment secret\". This authenticates the sender to the recipient, preventing a * number of deanonymization attacks during the routing process. @@ -13305,6 +13844,59 @@ typedef struct LDKCResult_PaymentPurposeDecodeErrorZ { bool result_ok; } LDKCResult_PaymentPurposeDecodeErrorZ; + + +/** + * Information about an HTLC that is part of a payment that can be claimed. + */ +typedef struct MUST_USE_STRUCT LDKClaimedHTLC { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeClaimedHTLC *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKClaimedHTLC; + +/** + * The contents of CResult_ClaimedHTLCDecodeErrorZ + */ +typedef union LDKCResult_ClaimedHTLCDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKClaimedHTLC *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_ClaimedHTLCDecodeErrorZPtr; + +/** + * A CResult_ClaimedHTLCDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::events::ClaimedHTLC on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ClaimedHTLCDecodeErrorZ { + /** + * The contents of this CResult_ClaimedHTLCDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ClaimedHTLCDecodeErrorZPtr contents; + /** + * Whether this CResult_ClaimedHTLCDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_ClaimedHTLCDecodeErrorZ; + /** * When the payment path failure took place and extra details about it. [`PathFailure::OnPath`] may * contain a [`NetworkUpdate`] that needs to be applied to the [`NetworkGraph`]. @@ -13496,6 +14088,11 @@ typedef enum LDKClosureReason_Tag { * The channel has been immediately closed. */ LDKClosureReason_CounterpartyCoopClosedUnfundedChannel, + /** + * Another channel in the same funding batch closed before the funding transaction + * was ready to be broadcast. + */ + LDKClosureReason_FundingBatchClosure, /** * Must be last for serialization purposes */ @@ -13769,56 +14366,45 @@ typedef struct LDKCResult_PaymentFailureReasonDecodeErrorZ { /** * An enum which can either contain a crate::c_types::U128 or not */ -typedef enum LDKCOption_u128Z_Tag { +typedef enum LDKCOption_U128Z_Tag { /** - * When we're in this state, this COption_u128Z contains a crate::c_types::U128 + * When we're in this state, this COption_U128Z contains a crate::c_types::U128 */ - LDKCOption_u128Z_Some, + LDKCOption_U128Z_Some, /** - * When we're in this state, this COption_u128Z contains nothing + * When we're in this state, this COption_U128Z contains nothing */ - LDKCOption_u128Z_None, + LDKCOption_U128Z_None, /** * Must be last for serialization purposes */ - LDKCOption_u128Z_Sentinel, -} LDKCOption_u128Z_Tag; + LDKCOption_U128Z_Sentinel, +} LDKCOption_U128Z_Tag; -typedef struct LDKCOption_u128Z { - LDKCOption_u128Z_Tag tag; +typedef struct LDKCOption_U128Z { + LDKCOption_U128Z_Tag tag; union { struct { struct LDKU128 some; }; }; -} LDKCOption_u128Z; +} LDKCOption_U128Z; /** - * An enum which can either contain a crate::c_types::ThirtyTwoBytes or not + * A dynamically-allocated array of crate::lightning::events::ClaimedHTLCs of arbitrary size. + * This corresponds to std::vector in C++ */ -typedef enum LDKCOption_PaymentIdZ_Tag { +typedef struct LDKCVec_ClaimedHTLCZ { /** - * When we're in this state, this COption_PaymentIdZ contains a crate::c_types::ThirtyTwoBytes - */ - LDKCOption_PaymentIdZ_Some, - /** - * When we're in this state, this COption_PaymentIdZ contains nothing + * The elements in the array. + * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). */ - LDKCOption_PaymentIdZ_None, + struct LDKClaimedHTLC *data; /** - * Must be last for serialization purposes + * The number of elements pointed to by `data`. */ - LDKCOption_PaymentIdZ_Sentinel, -} LDKCOption_PaymentIdZ_Tag; - -typedef struct LDKCOption_PaymentIdZ { - LDKCOption_PaymentIdZ_Tag tag; - union { - struct { - struct LDKThirtyTwoBytes some; - }; - }; -} LDKCOption_PaymentIdZ; + uintptr_t datalen; +} LDKCVec_ClaimedHTLCZ; /** * An enum which can either contain a crate::lightning::events::PaymentFailureReason or not @@ -14048,9 +14634,19 @@ typedef enum LDKEvent_Tag { * Note that if the preimage is not known, you should call * [`ChannelManager::fail_htlc_backwards`] or [`ChannelManager::fail_htlc_backwards_with_reason`] * to free up resources for this HTLC and avoid network congestion. - * If you fail to call either [`ChannelManager::claim_funds`], [`ChannelManager::fail_htlc_backwards`], - * or [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will be - * automatically failed. + * + * If [`Event::PaymentClaimable::onion_fields`] is `Some`, and includes custom TLVs with even type + * numbers, you should use [`ChannelManager::fail_htlc_backwards_with_reason`] with + * [`FailureCode::InvalidOnionPayload`] if you fail to understand and handle the contents, or + * [`ChannelManager::claim_funds_with_known_custom_tlvs`] upon successful handling. + * If you don't intend to check for custom TLVs, you can simply use + * [`ChannelManager::claim_funds`], which will automatically fail back even custom TLVs. + * + * If you fail to call [`ChannelManager::claim_funds`], + * [`ChannelManager::claim_funds_with_known_custom_tlvs`], + * [`ChannelManager::fail_htlc_backwards`], or + * [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will + * be automatically failed. * * # Note * LDK will not stop an inbound payment from being paid multiple times, so multiple @@ -14062,6 +14658,8 @@ typedef enum LDKEvent_Tag { * This event used to be called `PaymentReceived` in LDK versions 0.0.112 and earlier. * * [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds + * [`ChannelManager::claim_funds_with_known_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_custom_tlvs + * [`FailureCode::InvalidOnionPayload`]: crate::ln::channelmanager::FailureCode::InvalidOnionPayload * [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards * [`ChannelManager::fail_htlc_backwards_with_reason`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards_with_reason */ @@ -14099,6 +14697,11 @@ typedef enum LDKEvent_Tag { * payment is no longer retryable, due either to the [`Retry`] provided or * [`ChannelManager::abandon_payment`] having been called for the corresponding payment. * + * In exceedingly rare cases, it is possible that an [`Event::PaymentFailed`] is generated for + * a payment after an [`Event::PaymentSent`] event for this same payment has already been + * received and processed. In this case, the [`Event::PaymentFailed`] event MUST be ignored, + * and the payment MUST be treated as having succeeded. + * * [`Retry`]: crate::ln::channelmanager::Retry * [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment */ @@ -14185,18 +14788,28 @@ typedef enum LDKEvent_Tag { /** * Used to indicate that a previously opened channel with the given `channel_id` is in the * process of closure. + * + * Note that this event is only triggered for accepted channels: if the + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true and the channel is + * rejected, no `ChannelClosed` event will be sent. + * + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ LDKEvent_ChannelClosed, /** * Used to indicate to the user that they can abandon the funding transaction and recycle the * inputs for another purpose. + * + * This event is not guaranteed to be generated for channels that are closed due to a restart. */ LDKEvent_DiscardFunding, /** * Indicates a request to open a new channel by a peer. * - * To accept the request, call [`ChannelManager::accept_inbound_channel`]. To reject the - * request, call [`ChannelManager::force_close_without_broadcasting_txn`]. + * To accept the request, call [`ChannelManager::accept_inbound_channel`]. To reject the request, + * call [`ChannelManager::force_close_without_broadcasting_txn`]. Note that a ['ChannelClosed`] + * event will _not_ be triggered if the channel is rejected. * * The event is only triggered when a new open channel request is received and the * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. @@ -14262,11 +14875,15 @@ typedef struct LDKEvent_LDKFundingGenerationReady_Body { */ struct LDKCVec_u8Z output_script; /** - * The `user_channel_id` value passed in to [`ChannelManager::create_channel`], or a - * random value for an inbound channel. This may be zero for objects serialized with LDK - * versions prior to 0.0.113. + * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound + * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. This may be zero for objects + * serialized with LDK versions prior to 0.0.113. * * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ struct LDKU128 user_channel_id; } LDKEvent_LDKFundingGenerationReady_Body; @@ -14327,14 +14944,12 @@ typedef struct LDKEvent_LDKPaymentClaimable_Body { struct LDKPaymentPurpose purpose; /** * The `channel_id` indicating over which channel we received the payment. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes via_channel_id; + struct LDKCOption_ThirtyTwoBytesZ via_channel_id; /** * The `user_channel_id` indicating over which channel we received the payment. */ - struct LDKCOption_u128Z via_user_channel_id; + struct LDKCOption_U128Z via_user_channel_id; /** * The block height at which this payment will be failed back and will no longer be * eligible for claiming. @@ -14374,6 +14989,16 @@ typedef struct LDKEvent_LDKPaymentClaimed_Body { * spontaneous payment. */ struct LDKPaymentPurpose purpose; + /** + * The HTLCs that comprise the claimed payment. This will be empty for events serialized prior + * to LDK version 0.0.117. + */ + struct LDKCVec_ClaimedHTLCZ htlcs; + /** + * The sender-intended sum total of all the MPP parts. This will be `None` for events + * serialized prior to LDK version 0.0.117. + */ + struct LDKCOption_u64Z sender_intended_total_msat; } LDKEvent_LDKPaymentClaimed_Body; typedef struct LDKEvent_LDKPaymentSent_Body { @@ -14382,7 +15007,7 @@ typedef struct LDKEvent_LDKPaymentSent_Body { * * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment */ - struct LDKCOption_PaymentIdZ payment_id; + struct LDKCOption_ThirtyTwoBytesZ payment_id; /** * The preimage to the hash given to ChannelManager::send_payment. * Note that this serves as a payment receipt, if you wish to have such a thing, you must @@ -14443,7 +15068,7 @@ typedef struct LDKEvent_LDKPaymentPathSuccessful_Body { * * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment */ - struct LDKCOption_PaymentHashZ payment_hash; + struct LDKCOption_ThirtyTwoBytesZ payment_hash; /** * The payment path that was successful. * @@ -14461,7 +15086,7 @@ typedef struct LDKEvent_LDKPaymentPathFailed_Body { * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment * [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment */ - struct LDKCOption_PaymentIdZ payment_id; + struct LDKCOption_ThirtyTwoBytesZ payment_id; /** * The hash that was given to [`ChannelManager::send_payment`]. * @@ -14591,23 +15216,25 @@ typedef struct LDKEvent_LDKSpendableOutputs_Body { * The outputs which you should store as spendable by you. */ struct LDKCVec_SpendableOutputDescriptorZ outputs; + /** + * The `channel_id` indicating which channel the spendable outputs belong to. + * + * This will always be `Some` for events generated by LDK versions 0.0.117 and above. + */ + struct LDKCOption_ThirtyTwoBytesZ channel_id; } LDKEvent_LDKSpendableOutputs_Body; typedef struct LDKEvent_LDKPaymentForwarded_Body { /** * The incoming channel between the previous node and us. This is only `None` for events * generated or serialized by versions prior to 0.0.107. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes prev_channel_id; + struct LDKCOption_ThirtyTwoBytesZ prev_channel_id; /** * The outgoing channel between the next node and us. This is only `None` for events * generated or serialized by versions prior to 0.0.107. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes next_channel_id; + struct LDKCOption_ThirtyTwoBytesZ next_channel_id; /** * The fee, in milli-satoshis, which was earned as a result of the payment. * @@ -14657,10 +15284,8 @@ typedef struct LDKEvent_LDKChannelPending_Body { * The `temporary_channel_id` this channel used to be known by during channel establishment. * * Will be `None` for channels created prior to LDK version 0.0.115. - * - * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None */ - struct LDKThirtyTwoBytes former_temporary_channel_id; + struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id; /** * The `node_id` of the channel counterparty. */ @@ -14720,6 +15345,20 @@ typedef struct LDKEvent_LDKChannelClosed_Body { * The reason the channel was closed. */ struct LDKClosureReason reason; + /** + * Counterparty in the closed channel. + * + * This field will be `None` for objects serialized prior to LDK 0.0.117. + * + * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None + */ + struct LDKPublicKey counterparty_node_id; + /** + * Channel capacity of the closing channel (sats). + * + * This field will be `None` for objects serialized prior to LDK 0.0.117. + */ + struct LDKCOption_u64Z channel_capacity_sats; } LDKEvent_LDKChannelClosed_Body; typedef struct LDKEvent_LDKDiscardFunding_Body { @@ -14884,55 +15523,6 @@ typedef struct LDKCResult_COption_EventZDecodeErrorZ { bool result_ok; } LDKCResult_COption_EventZDecodeErrorZ; -/** - * A dynamically-allocated array of crate::c_types::derived::C2Tuple_BlockHashChannelMonitorZs of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKC2Tuple_BlockHashChannelMonitorZ *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_C2Tuple_BlockHashChannelMonitorZZ; - -/** - * The contents of CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - */ -typedef union LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZPtr { - /** - * A pointer to the contents in the success state. - * Reading from this pointer when `result_ok` is not set is undefined. - */ - struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ *result; - /** - * A pointer to the contents in the error state. - * Reading from this pointer when `result_ok` is set is undefined. - */ - enum LDKIOError *err; -} LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZPtr; - -/** - * A CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ represents the result of a fallible operation, - * containing a crate::c_types::derived::CVec_C2Tuple_BlockHashChannelMonitorZZ on success and a crate::c_types::IOError on failure. - * `result_ok` indicates the overall state, and the contents are provided via `contents`. - */ -typedef struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ { - /** - * The contents of this CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ, accessible via either - * `err` or `result` depending on the state of `result_ok`. - */ - union LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZPtr contents; - /** - * Whether this CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ represents a success state. - */ - bool result_ok; -} LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ; - /** * Sub-errors which don't have specific information in them use this type. */ @@ -15235,9 +15825,9 @@ typedef struct MUST_USE_STRUCT LDKPayeePubKey { } LDKPayeePubKey; /** - * The contents of CResult_PayeePubKeyErrorZ + * The contents of CResult_PayeePubKeySecp256k1ErrorZ */ -typedef union LDKCResult_PayeePubKeyErrorZPtr { +typedef union LDKCResult_PayeePubKeySecp256k1ErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -15248,24 +15838,24 @@ typedef union LDKCResult_PayeePubKeyErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKSecp256k1Error *err; -} LDKCResult_PayeePubKeyErrorZPtr; +} LDKCResult_PayeePubKeySecp256k1ErrorZPtr; /** - * A CResult_PayeePubKeyErrorZ represents the result of a fallible operation, + * A CResult_PayeePubKeySecp256k1ErrorZ represents the result of a fallible operation, * containing a crate::lightning_invoice::PayeePubKey on success and a crate::c_types::Secp256k1Error on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PayeePubKeyErrorZ { +typedef struct LDKCResult_PayeePubKeySecp256k1ErrorZ { /** - * The contents of this CResult_PayeePubKeyErrorZ, accessible via either + * The contents of this CResult_PayeePubKeySecp256k1ErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PayeePubKeyErrorZPtr contents; + union LDKCResult_PayeePubKeySecp256k1ErrorZPtr contents; /** - * Whether this CResult_PayeePubKeyErrorZ represents a success state. + * Whether this CResult_PayeePubKeySecp256k1ErrorZ represents a success state. */ bool result_ok; -} LDKCResult_PayeePubKeyErrorZ; +} LDKCResult_PayeePubKeySecp256k1ErrorZ; @@ -15430,22 +16020,6 @@ typedef struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ { bool result_ok; } LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ; -/** - * A dynamically-allocated array of crate::c_types::Strs of arbitrary size. - * This corresponds to std::vector in C++ - */ -typedef struct LDKCVec_AddressZ { - /** - * The elements in the array. - * If datalen is non-0 this must be a valid, non-NULL pointer allocated by malloc(). - */ - struct LDKStr *data; - /** - * The number of elements pointed to by `data`. - */ - uintptr_t datalen; -} LDKCVec_AddressZ; - /** @@ -15781,6 +16355,170 @@ typedef struct LDKCResult_UntrustedStringDecodeErrorZ { bool result_ok; } LDKCResult_UntrustedStringDecodeErrorZ; + + +/** + * Data to construct a [`BlindedHop`] for receiving a payment. This payload is custom to LDK and + * may not be valid if received by another lightning implementation. + */ +typedef struct MUST_USE_STRUCT LDKReceiveTlvs { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeReceiveTlvs *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKReceiveTlvs; + +/** + * The contents of CResult_ReceiveTlvsDecodeErrorZ + */ +typedef union LDKCResult_ReceiveTlvsDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKReceiveTlvs *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_ReceiveTlvsDecodeErrorZPtr; + +/** + * A CResult_ReceiveTlvsDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::blinded_path::payment::ReceiveTlvs on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_ReceiveTlvsDecodeErrorZ { + /** + * The contents of this CResult_ReceiveTlvsDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_ReceiveTlvsDecodeErrorZPtr contents; + /** + * Whether this CResult_ReceiveTlvsDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_ReceiveTlvsDecodeErrorZ; + + + +/** + * Parameters for relaying over a given [`BlindedHop`]. + * + * [`BlindedHop`]: crate::blinded_path::BlindedHop + */ +typedef struct MUST_USE_STRUCT LDKPaymentRelay { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativePaymentRelay *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKPaymentRelay; + +/** + * The contents of CResult_PaymentRelayDecodeErrorZ + */ +typedef union LDKCResult_PaymentRelayDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKPaymentRelay *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_PaymentRelayDecodeErrorZPtr; + +/** + * A CResult_PaymentRelayDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::blinded_path::payment::PaymentRelay on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_PaymentRelayDecodeErrorZ { + /** + * The contents of this CResult_PaymentRelayDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_PaymentRelayDecodeErrorZPtr contents; + /** + * Whether this CResult_PaymentRelayDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_PaymentRelayDecodeErrorZ; + + + +/** + * Constraints for relaying over a given [`BlindedHop`]. + * + * [`BlindedHop`]: crate::blinded_path::BlindedHop + */ +typedef struct MUST_USE_STRUCT LDKPaymentConstraints { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativePaymentConstraints *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKPaymentConstraints; + +/** + * The contents of CResult_PaymentConstraintsDecodeErrorZ + */ +typedef union LDKCResult_PaymentConstraintsDecodeErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKPaymentConstraints *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKDecodeError *err; +} LDKCResult_PaymentConstraintsDecodeErrorZPtr; + +/** + * A CResult_PaymentConstraintsDecodeErrorZ represents the result of a fallible operation, + * containing a crate::lightning::blinded_path::payment::PaymentConstraints on success and a crate::lightning::ln::msgs::DecodeError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_PaymentConstraintsDecodeErrorZ { + /** + * The contents of this CResult_PaymentConstraintsDecodeErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_PaymentConstraintsDecodeErrorZPtr contents; + /** + * Whether this CResult_PaymentConstraintsDecodeErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_PaymentConstraintsDecodeErrorZ; + /** * An error that may occur when making a payment. */ @@ -15812,9 +16550,9 @@ typedef struct MUST_USE_STRUCT LDKPaymentError { } LDKPaymentError; /** - * The contents of CResult_PaymentIdPaymentErrorZ + * The contents of CResult_ThirtyTwoBytesPaymentErrorZ */ -typedef union LDKCResult_PaymentIdPaymentErrorZPtr { +typedef union LDKCResult_ThirtyTwoBytesPaymentErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -15825,24 +16563,24 @@ typedef union LDKCResult_PaymentIdPaymentErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ struct LDKPaymentError *err; -} LDKCResult_PaymentIdPaymentErrorZPtr; +} LDKCResult_ThirtyTwoBytesPaymentErrorZPtr; /** - * A CResult_PaymentIdPaymentErrorZ represents the result of a fallible operation, + * A CResult_ThirtyTwoBytesPaymentErrorZ represents the result of a fallible operation, * containing a crate::c_types::ThirtyTwoBytes on success and a crate::lightning_invoice::payment::PaymentError on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_PaymentIdPaymentErrorZ { +typedef struct LDKCResult_ThirtyTwoBytesPaymentErrorZ { /** - * The contents of this CResult_PaymentIdPaymentErrorZ, accessible via either + * The contents of this CResult_ThirtyTwoBytesPaymentErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_PaymentIdPaymentErrorZPtr contents; + union LDKCResult_ThirtyTwoBytesPaymentErrorZPtr contents; /** - * Whether this CResult_PaymentIdPaymentErrorZ represents a success state. + * Whether this CResult_ThirtyTwoBytesPaymentErrorZ represents a success state. */ bool result_ok; -} LDKCResult_PaymentIdPaymentErrorZ; +} LDKCResult_ThirtyTwoBytesPaymentErrorZ; /** * The contents of CResult_NonePaymentErrorZ @@ -15877,9 +16615,72 @@ typedef struct LDKCResult_NonePaymentErrorZ { } LDKCResult_NonePaymentErrorZ; /** - * The contents of CResult_StringErrorZ + * An error that may occur when sending a payment probe. + */ +typedef enum LDKProbingError_Tag { + /** + * An error resulting from the provided [`Bolt11Invoice`]. + */ + LDKProbingError_Invoice, + /** + * An error occurring when sending a payment probe. + */ + LDKProbingError_Sending, + /** + * Must be last for serialization purposes + */ + LDKProbingError_Sentinel, +} LDKProbingError_Tag; + +typedef struct MUST_USE_STRUCT LDKProbingError { + LDKProbingError_Tag tag; + union { + struct { + struct LDKStr invoice; + }; + struct { + struct LDKProbeSendFailure sending; + }; + }; +} LDKProbingError; + +/** + * The contents of CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + */ +typedef union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKProbingError *err; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZPtr; + +/** + * A CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ on success and a crate::lightning_invoice::payment::ProbingError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ { + /** + * The contents of this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZPtr contents; + /** + * Whether this CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ; + +/** + * The contents of CResult_StrSecp256k1ErrorZ */ -typedef union LDKCResult_StringErrorZPtr { +typedef union LDKCResult_StrSecp256k1ErrorZPtr { /** * A pointer to the contents in the success state. * Reading from this pointer when `result_ok` is not set is undefined. @@ -15890,24 +16691,24 @@ typedef union LDKCResult_StringErrorZPtr { * Reading from this pointer when `result_ok` is set is undefined. */ enum LDKSecp256k1Error *err; -} LDKCResult_StringErrorZPtr; +} LDKCResult_StrSecp256k1ErrorZPtr; /** - * A CResult_StringErrorZ represents the result of a fallible operation, + * A CResult_StrSecp256k1ErrorZ represents the result of a fallible operation, * containing a crate::c_types::Str on success and a crate::c_types::Secp256k1Error on failure. * `result_ok` indicates the overall state, and the contents are provided via `contents`. */ -typedef struct LDKCResult_StringErrorZ { +typedef struct LDKCResult_StrSecp256k1ErrorZ { /** - * The contents of this CResult_StringErrorZ, accessible via either + * The contents of this CResult_StrSecp256k1ErrorZ, accessible via either * `err` or `result` depending on the state of `result_ok`. */ - union LDKCResult_StringErrorZPtr contents; + union LDKCResult_StrSecp256k1ErrorZPtr contents; /** - * Whether this CResult_StringErrorZ represents a success state. + * Whether this CResult_StrSecp256k1ErrorZ represents a success state. */ bool result_ok; -} LDKCResult_StringErrorZ; +} LDKCResult_StrSecp256k1ErrorZ; @@ -15961,6 +16762,20 @@ typedef struct LDKCResult_OnionMessagePathNoneZ { bool result_ok; } LDKCResult_OnionMessagePathNoneZ; +/** + * A tuple of 2 elements. See the individual fields for the types contained. + */ +typedef struct LDKC2Tuple_PublicKeyOnionMessageZ { + /** + * The element at position 0 + */ + struct LDKPublicKey a; + /** + * The element at position 1 + */ + struct LDKOnionMessage b; +} LDKC2Tuple_PublicKeyOnionMessageZ; + /** * Errors that may occur when [sending an onion message]. * @@ -16021,6 +16836,39 @@ typedef struct MUST_USE_STRUCT LDKSendError { }; } LDKSendError; +/** + * The contents of CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ + */ +typedef union LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKC2Tuple_PublicKeyOnionMessageZ *result; + /** + * A pointer to the contents in the error state. + * Reading from this pointer when `result_ok` is set is undefined. + */ + struct LDKSendError *err; +} LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZPtr; + +/** + * A CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_PublicKeyOnionMessageZ on success and a crate::lightning::onion_message::messenger::SendError on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ { + /** + * The contents of this CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZPtr contents; + /** + * Whether this CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ represents a success state. + */ + bool result_ok; +} LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ; + /** * The contents of CResult_NoneSendErrorZ */ @@ -16085,6 +16933,38 @@ typedef struct LDKCResult_BlindedPathNoneZ { bool result_ok; } LDKCResult_BlindedPathNoneZ; +/** + * The contents of CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + */ +typedef union LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZPtr { + /** + * A pointer to the contents in the success state. + * Reading from this pointer when `result_ok` is not set is undefined. + */ + struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *result; + /** + * Note that this value is always NULL, as there are no contents in the Err variant + */ + void *err; +} LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZPtr; + +/** + * A CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ represents the result of a fallible operation, + * containing a crate::c_types::derived::C2Tuple_BlindedPayInfoBlindedPathZ on success and a () on failure. + * `result_ok` indicates the overall state, and the contents are provided via `contents`. + */ +typedef struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ { + /** + * The contents of this CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ, accessible via either + * `err` or `result` depending on the state of `result_ok`. + */ + union LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZPtr contents; + /** + * Whether this CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ represents a success state. + */ + bool result_ok; +} LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ; + /** * The contents of CResult_BlindedPathDecodeErrorZ */ @@ -16427,6 +17307,85 @@ typedef struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ { uintptr_t datalen; } LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ; +/** + * Provides an interface that allows storage and retrieval of persisted values that are associated + * with given keys. + * + * In order to avoid collisions the key space is segmented based on the given `primary_namespace`s + * and `secondary_namespace`s. Implementations of this trait are free to handle them in different + * ways, as long as per-namespace key uniqueness is asserted. + * + * Keys and namespaces are required to be valid ASCII strings in the range of + * [`KVSTORE_NAMESPACE_KEY_ALPHABET`] and no longer than [`KVSTORE_NAMESPACE_KEY_MAX_LEN`]. Empty + * primary namespaces and secondary namespaces (`\"\"`) are assumed to be a valid, however, if + * `primary_namespace` is empty, `secondary_namespace` is required to be empty, too. This means + * that concerns should always be separated by primary namespace first, before secondary + * namespaces are used. While the number of primary namespaces will be relatively small and is + * determined at compile time, there may be many secondary namespaces per primary namespace. Note + * that per-namespace uniqueness needs to also hold for keys *and* namespaces in any given + * namespace, i.e., conflicts between keys and equally named + * primary namespaces/secondary namespaces must be avoided. + * + * **Note:** Users migrating custom persistence backends from the pre-v0.0.117 `KVStorePersister` + * interface can use a concatenation of `[{primary_namespace}/[{secondary_namespace}/]]{key}` to + * recover a `key` compatible with the data model previously assumed by `KVStorePersister::persist`. + */ +typedef struct LDKKVStore { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Returns the data stored for the given `primary_namespace`, `secondary_namespace`, and + * `key`. + * + * Returns an [`ErrorKind::NotFound`] if the given `key` could not be found in the given + * `primary_namespace` and `secondary_namespace`. + * + * [`ErrorKind::NotFound`]: io::ErrorKind::NotFound + */ + struct LDKCResult_CVec_u8ZIOErrorZ (*read)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key); + /** + * Persists the given data under the given `key`. + * + * Will create the given `primary_namespace` and `secondary_namespace` if not already present + * in the store. + */ + struct LDKCResult_NoneIOErrorZ (*write)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf); + /** + * Removes any data that had previously been persisted under the given `key`. + * + * If the `lazy` flag is set to `true`, the backend implementation might choose to lazily + * remove the given `key` at some point in time after the method returns, e.g., as part of an + * eventual batch deletion of multiple keys. As a consequence, subsequent calls to + * [`KVStore::list`] might include the removed key until the changes are actually persisted. + * + * Note that while setting the `lazy` flag reduces the I/O burden of multiple subsequent + * `remove` calls, it also influences the atomicity guarantees as lazy `remove`s could + * potentially get lost on crash after the method returns. Therefore, this flag should only be + * set for `remove` operations that can be safely replayed at a later time. + * + * Returns successfully if no data will be stored for the given `primary_namespace`, + * `secondary_namespace`, and `key`, independently of whether it was present before its + * invokation or not. + */ + struct LDKCResult_NoneIOErrorZ (*remove)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy); + /** + * Returns a list of keys that are stored under the given `secondary_namespace` in + * `primary_namespace`. + * + * Returns the keys in arbitrary order, so users requiring a particular order need to sort the + * returned keys. Returns an empty list if `primary_namespace` or `secondary_namespace` is unknown. + */ + struct LDKCResult_CVec_StrZIOErrorZ (*list)(const void *this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKKVStore; + /** * Trait that handles persisting a [`ChannelManager`], [`NetworkGraph`], and [`WriteableScore`] to disk. */ @@ -16439,15 +17398,15 @@ typedef struct LDKPersister { /** * Persist the given ['ChannelManager'] to disk, returning an error if persistence failed. */ - struct LDKCResult_NoneErrorZ (*persist_manager)(const void *this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager); + struct LDKCResult_NoneIOErrorZ (*persist_manager)(const void *this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager); /** * Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed. */ - struct LDKCResult_NoneErrorZ (*persist_graph)(const void *this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph); + struct LDKCResult_NoneIOErrorZ (*persist_graph)(const void *this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph); /** * Persist the given [`WriteableScore`] to disk, returning an error if persistence failed. */ - struct LDKCResult_NoneErrorZ (*persist_scorer)(const void *this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer); + struct LDKCResult_NoneIOErrorZ (*persist_scorer)(const void *this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -16457,6 +17416,233 @@ typedef struct LDKPersister { +/** + * Implements [`Persist`] in a way that writes and reads both [`ChannelMonitor`]s and + * [`ChannelMonitorUpdate`]s. + * + * # Overview + * + * The main benefit this provides over the [`KVStore`]'s [`Persist`] implementation is decreased + * I/O bandwidth and storage churn, at the expense of more IOPS (including listing, reading, and + * deleting) and complexity. This is because it writes channel monitor differential updates, + * whereas the other (default) implementation rewrites the entire monitor on each update. For + * routing nodes, updates can happen many times per second to a channel, and monitors can be tens + * of megabytes (or more). Updates can be as small as a few hundred bytes. + * + * Note that monitors written with `MonitorUpdatingPersister` are _not_ backward-compatible with + * the default [`KVStore`]'s [`Persist`] implementation. They have a prepended byte sequence, + * [`MONITOR_UPDATING_PERSISTER_PREPEND_SENTINEL`], applied to prevent deserialization with other + * persisters. This is because monitors written by this struct _may_ have unapplied updates. In + * order to downgrade, you must ensure that all updates are applied to the monitor, and remove the + * sentinel bytes. + * + * # Storing monitors + * + * Monitors are stored by implementing the [`Persist`] trait, which has two functions: + * + * - [`Persist::persist_new_channel`], which persists whole [`ChannelMonitor`]s. + * - [`Persist::update_persisted_channel`], which persists only a [`ChannelMonitorUpdate`] + * + * Whole [`ChannelMonitor`]s are stored in the [`CHANNEL_MONITOR_PERSISTENCE_PRIMARY_NAMESPACE`], + * using the familiar encoding of an [`OutPoint`] (for example, `[SOME-64-CHAR-HEX-STRING]_1`). + * + * Each [`ChannelMonitorUpdate`] is stored in a dynamic secondary namespace, as follows: + * + * - primary namespace: [`CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE`] + * - secondary namespace: [the monitor's encoded outpoint name] + * + * Under that secondary namespace, each update is stored with a number string, like `21`, which + * represents its `update_id` value. + * + * For example, consider this channel, named for its transaction ID and index, or [`OutPoint`]: + * + * - Transaction ID: `deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef` + * - Index: `1` + * + * Full channel monitors would be stored at a single key: + * + * `[CHANNEL_MONITOR_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1` + * + * Updates would be stored as follows (with `/` delimiting primary_namespace/secondary_namespace/key): + * + * ```text + * [CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1/1 + * [CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1/2 + * [CHANNEL_MONITOR_UPDATE_PERSISTENCE_PRIMARY_NAMESPACE]/deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1/3 + * ``` + * ... and so on. + * + * # Reading channel state from storage + * + * Channel state can be reconstructed by calling + * [`MonitorUpdatingPersister::read_all_channel_monitors_with_updates`]. Alternatively, users can + * list channel monitors themselves and load channels individually using + * [`MonitorUpdatingPersister::read_channel_monitor_with_updates`]. + * + * ## EXTREMELY IMPORTANT + * + * It is extremely important that your [`KVStore::read`] implementation uses the + * [`io::ErrorKind::NotFound`] variant correctly: that is, when a file is not found, and _only_ in + * that circumstance (not when there is really a permissions error, for example). This is because + * neither channel monitor reading function lists updates. Instead, either reads the monitor, and + * using its stored `update_id`, synthesizes update storage keys, and tries them in sequence until + * one is not found. All _other_ errors will be bubbled up in the function's [`Result`]. + * + * # Pruning stale channel updates + * + * Stale updates are pruned when a full monitor is written. The old monitor is first read, and if + * that succeeds, updates in the range between the old and new monitors are deleted. The `lazy` + * flag is used on the [`KVStore::remove`] method, so there are no guarantees that the deletions + * will complete. However, stale updates are not a problem for data integrity, since updates are + * only read that are higher than the stored [`ChannelMonitor`]'s `update_id`. + * + * If you have many stale updates stored (such as after a crash with pending lazy deletes), and + * would like to get rid of them, consider using the + * [`MonitorUpdatingPersister::cleanup_stale_updates`] function. + */ +typedef struct MUST_USE_STRUCT LDKMonitorUpdatingPersister { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeMonitorUpdatingPersister *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKMonitorUpdatingPersister; + +/** + * `Persist` defines behavior for persisting channel monitors: this could mean + * writing once to disk, and/or uploading to one or more backup services. + * + * Persistence can happen in one of two ways - synchronously completing before the trait method + * calls return or asynchronously in the background. + * + * # For those implementing synchronous persistence + * + * * If persistence completes fully (including any relevant `fsync()` calls), the implementation + * should return [`ChannelMonitorUpdateStatus::Completed`], indicating normal channel operation + * should continue. + * + * * If persistence fails for some reason, implementations should consider returning + * [`ChannelMonitorUpdateStatus::InProgress`] and retry all pending persistence operations in + * the background with [`ChainMonitor::list_pending_monitor_updates`] and + * [`ChainMonitor::get_monitor`]. + * + * Once a full [`ChannelMonitor`] has been persisted, all pending updates for that channel can + * be marked as complete via [`ChainMonitor::channel_monitor_updated`]. + * + * If at some point no further progress can be made towards persisting the pending updates, the + * node should simply shut down. + * + * * If the persistence has failed and cannot be retried further (e.g. because of an outage), + * [`ChannelMonitorUpdateStatus::UnrecoverableError`] can be used, though this will result in + * an immediate panic and future operations in LDK generally failing. + * + * # For those implementing asynchronous persistence + * + * All calls should generally spawn a background task and immediately return + * [`ChannelMonitorUpdateStatus::InProgress`]. Once the update completes, + * [`ChainMonitor::channel_monitor_updated`] should be called with the corresponding + * [`MonitorUpdateId`]. + * + * Note that unlike the direct [`chain::Watch`] interface, + * [`ChainMonitor::channel_monitor_updated`] must be called once for *each* update which occurs. + * + * If at some point no further progress can be made towards persisting a pending update, the node + * should simply shut down. Until then, the background task should either loop indefinitely, or + * persistence should be regularly retried with [`ChainMonitor::list_pending_monitor_updates`] + * and [`ChainMonitor::get_monitor`] (note that if a full monitor is persisted all pending + * monitor updates may be marked completed). + * + * # Using remote watchtowers + * + * Watchtowers may be updated as a part of an implementation of this trait, utilizing the async + * update process described above while the watchtower is being updated. The following methods are + * provided for bulding transactions for a watchtower: + * [`ChannelMonitor::initial_counterparty_commitment_tx`], + * [`ChannelMonitor::counterparty_commitment_txs_from_update`], + * [`ChannelMonitor::sign_to_local_justice_tx`], [`TrustedCommitmentTransaction::revokeable_output_index`], + * [`TrustedCommitmentTransaction::build_to_local_justice_tx`]. + * + * [`TrustedCommitmentTransaction::revokeable_output_index`]: crate::ln::chan_utils::TrustedCommitmentTransaction::revokeable_output_index + * [`TrustedCommitmentTransaction::build_to_local_justice_tx`]: crate::ln::chan_utils::TrustedCommitmentTransaction::build_to_local_justice_tx + */ +typedef struct LDKPersist { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Persist a new channel's data in response to a [`chain::Watch::watch_channel`] call. This is + * called by [`ChannelManager`] for new channels, or may be called directly, e.g. on startup. + * + * The data can be stored any way you want, but the identifier provided by LDK is the + * channel's outpoint (and it is up to you to maintain a correct mapping between the outpoint + * and the stored channel data). Note that you **must** persist every new monitor to disk. + * + * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], + * if you return [`ChannelMonitorUpdateStatus::InProgress`]. + * + * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor` + * and [`ChannelMonitorUpdateStatus`] for requirements when returning errors. + * + * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager + * [`Writeable::write`]: crate::util::ser::Writeable::write + */ + enum LDKChannelMonitorUpdateStatus (*persist_new_channel)(const void *this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); + /** + * Update one channel's data. The provided [`ChannelMonitor`] has already applied the given + * update. + * + * Note that on every update, you **must** persist either the [`ChannelMonitorUpdate`] or the + * updated monitor itself to disk/backups. See the [`Persist`] trait documentation for more + * details. + * + * During blockchain synchronization operations, and in some rare cases, this may be called with + * no [`ChannelMonitorUpdate`], in which case the full [`ChannelMonitor`] needs to be persisted. + * Note that after the full [`ChannelMonitor`] is persisted any previous + * [`ChannelMonitorUpdate`]s which were persisted should be discarded - they can no longer be + * applied to the persisted [`ChannelMonitor`] as they were already applied. + * + * If an implementer chooses to persist the updates only, they need to make + * sure that all the updates are applied to the `ChannelMonitors` *before* + * the set of channel monitors is given to the `ChannelManager` + * deserialization routine. See [`ChannelMonitor::update_monitor`] for + * applying a monitor update to a monitor. If full `ChannelMonitors` are + * persisted, then there is no need to persist individual updates. + * + * Note that there could be a performance tradeoff between persisting complete + * channel monitors on every update vs. persisting only updates and applying + * them in batches. The size of each monitor grows `O(number of state updates)` + * whereas updates are small and `O(1)`. + * + * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], + * if you return [`ChannelMonitorUpdateStatus::InProgress`]. + * + * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor`, + * [`Writeable::write`] on [`ChannelMonitorUpdate`] for writing out an update, and + * [`ChannelMonitorUpdateStatus`] for requirements when returning errors. + * + * [`Writeable::write`]: crate::util::ser::Writeable::write + * + * Note that update (or a relevant inner pointer) may be NULL or all-0s to represent None + */ + enum LDKChannelMonitorUpdateStatus (*update_persisted_channel)(const void *this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKPersist; + + + /** * A string that displays only printable characters, replacing control characters with * [`core::char::REPLACEMENT_CHARACTER`]. @@ -16780,7 +17966,7 @@ typedef struct LDKConfirm { * [`transactions_confirmed`]: Self::transactions_confirmed * [`transaction_unconfirmed`]: Self::transaction_unconfirmed */ - struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ (*get_relevant_txids)(const void *this_arg); + struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ (*get_relevant_txids)(const void *this_arg); /** * Frees any resources associated with this object given its this_arg pointer. * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. @@ -16788,97 +17974,6 @@ typedef struct LDKConfirm { void (*free)(void *this_arg); } LDKConfirm; -/** - * `Persist` defines behavior for persisting channel monitors: this could mean - * writing once to disk, and/or uploading to one or more backup services. - * - * Each method can return three possible values: - * * If persistence (including any relevant `fsync()` calls) happens immediately, the - * implementation should return [`ChannelMonitorUpdateStatus::Completed`], indicating normal - * channel operation should continue. - * * If persistence happens asynchronously, implementations should first ensure the - * [`ChannelMonitor`] or [`ChannelMonitorUpdate`] are written durably to disk, and then return - * [`ChannelMonitorUpdateStatus::InProgress`] while the update continues in the background. - * Once the update completes, [`ChainMonitor::channel_monitor_updated`] should be called with - * the corresponding [`MonitorUpdateId`]. - * - * Note that unlike the direct [`chain::Watch`] interface, - * [`ChainMonitor::channel_monitor_updated`] must be called once for *each* update which occurs. - * - * * If persistence fails for some reason, implementations should return - * [`ChannelMonitorUpdateStatus::PermanentFailure`], in which case the channel will likely be - * closed without broadcasting the latest state. See - * [`ChannelMonitorUpdateStatus::PermanentFailure`] for more details. - */ -typedef struct LDKPersist { - /** - * An opaque pointer which is passed to your function implementations as an argument. - * This has no meaning in the LDK, and can be NULL or any other value. - */ - void *this_arg; - /** - * Persist a new channel's data in response to a [`chain::Watch::watch_channel`] call. This is - * called by [`ChannelManager`] for new channels, or may be called directly, e.g. on startup. - * - * The data can be stored any way you want, but the identifier provided by LDK is the - * channel's outpoint (and it is up to you to maintain a correct mapping between the outpoint - * and the stored channel data). Note that you **must** persist every new monitor to disk. - * - * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], - * if you return [`ChannelMonitorUpdateStatus::InProgress`]. - * - * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor` - * and [`ChannelMonitorUpdateStatus`] for requirements when returning errors. - * - * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager - * [`Writeable::write`]: crate::util::ser::Writeable::write - */ - enum LDKChannelMonitorUpdateStatus (*persist_new_channel)(const void *this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); - /** - * Update one channel's data. The provided [`ChannelMonitor`] has already applied the given - * update. - * - * Note that on every update, you **must** persist either the [`ChannelMonitorUpdate`] or the - * updated monitor itself to disk/backups. See the [`Persist`] trait documentation for more - * details. - * - * During blockchain synchronization operations, this may be called with no - * [`ChannelMonitorUpdate`], in which case the full [`ChannelMonitor`] needs to be persisted. - * Note that after the full [`ChannelMonitor`] is persisted any previous - * [`ChannelMonitorUpdate`]s which were persisted should be discarded - they can no longer be - * applied to the persisted [`ChannelMonitor`] as they were already applied. - * - * If an implementer chooses to persist the updates only, they need to make - * sure that all the updates are applied to the `ChannelMonitors` *before* - * the set of channel monitors is given to the `ChannelManager` - * deserialization routine. See [`ChannelMonitor::update_monitor`] for - * applying a monitor update to a monitor. If full `ChannelMonitors` are - * persisted, then there is no need to persist individual updates. - * - * Note that there could be a performance tradeoff between persisting complete - * channel monitors on every update vs. persisting only updates and applying - * them in batches. The size of each monitor grows `O(number of state updates)` - * whereas updates are small and `O(1)`. - * - * The `update_id` is used to identify this call to [`ChainMonitor::channel_monitor_updated`], - * if you return [`ChannelMonitorUpdateStatus::InProgress`]. - * - * See [`Writeable::write`] on [`ChannelMonitor`] for writing out a `ChannelMonitor`, - * [`Writeable::write`] on [`ChannelMonitorUpdate`] for writing out an update, and - * [`ChannelMonitorUpdateStatus`] for requirements when returning errors. - * - * [`Writeable::write`]: crate::util::ser::Writeable::write - * - * Note that update (or a relevant inner pointer) may be NULL or all-0s to represent None - */ - enum LDKChannelMonitorUpdateStatus (*update_persisted_channel)(const void *this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id); - /** - * Frees any resources associated with this object given its this_arg pointer. - * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. - */ - void (*free)(void *this_arg); -} LDKPersist; - /** @@ -16997,6 +18092,53 @@ typedef struct LDKEventsProvider { void (*free)(void *this_arg); } LDKEventsProvider; +/** + * This enum is used to specify which error data to send to peers when failing back an HTLC + * using [`ChannelManager::fail_htlc_backwards_with_reason`]. + * + * For more info on failure codes, see . + */ +typedef enum LDKFailureCode_Tag { + /** + * We had a temporary error processing the payment. Useful if no other error codes fit + * and you want to indicate that the payer may want to retry. + */ + LDKFailureCode_TemporaryNodeFailure, + /** + * We have a required feature which was not in this onion. For example, you may require + * some additional metadata that was not provided with this payment. + */ + LDKFailureCode_RequiredNodeFeatureMissing, + /** + * You may wish to use this when a `payment_preimage` is unknown, or the CLTV expiry of + * the HTLC is too close to the current block height for safe handling. + * Using this failure code in [`ChannelManager::fail_htlc_backwards_with_reason`] is + * equivalent to calling [`ChannelManager::fail_htlc_backwards`]. + */ + LDKFailureCode_IncorrectOrUnknownPaymentDetails, + /** + * We failed to process the payload after the onion was decrypted. You may wish to + * use this when receiving custom HTLC TLVs with even type numbers that you don't recognize. + * + * If available, the tuple data may include the type number and byte offset in the + * decrypted byte stream where the failure occurred. + */ + LDKFailureCode_InvalidOnionPayload, + /** + * Must be last for serialization purposes + */ + LDKFailureCode_Sentinel, +} LDKFailureCode_Tag; + +typedef struct MUST_USE_STRUCT LDKFailureCode { + LDKFailureCode_Tag tag; + union { + struct { + struct LDKCOption_C2Tuple_u64u16ZZ invalid_onion_payload; + }; + }; +} LDKFailureCode; + /** @@ -17021,43 +18163,6 @@ typedef struct MUST_USE_STRUCT LDKChainParameters { bool is_owned; } LDKChainParameters; -/** - * Strategies available to retry payment path failures. - */ -typedef enum LDKRetry_Tag { - /** - * Max number of attempts to retry payment. - * - * Each attempt may be multiple HTLCs along multiple paths if the router decides to split up a - * retry, and may retry multiple failed HTLCs at once if they failed around the same time and - * were retried along a route from a single call to [`Router::find_route_with_id`]. - */ - LDKRetry_Attempts, - /** - * Time elapsed before abandoning retries for a payment. At least one attempt at payment is made; - * see [`PaymentParameters::expiry_time`] to avoid any attempt at payment after a specific time. - * - * [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time - */ - LDKRetry_Timeout, - /** - * Must be last for serialization purposes - */ - LDKRetry_Sentinel, -} LDKRetry_Tag; - -typedef struct MUST_USE_STRUCT LDKRetry { - LDKRetry_Tag tag; - union { - struct { - uintptr_t attempts; - }; - struct { - uint64_t timeout; - }; - }; -} LDKRetry; - /** * A trait indicating an object may generate message send events */ @@ -17239,7 +18344,7 @@ typedef struct LDKChannelMessageHandler { * If it's `None`, then no particular network chain hash compatibility will be enforced when * connecting to peers. */ - struct LDKCOption_CVec_ChainHashZZ (*get_genesis_hashes)(const void *this_arg); + struct LDKCOption_CVec_ThirtyTwoBytesZZ (*get_genesis_hashes)(const void *this_arg); /** * Implementation of MessageSendEventsProvider for this object. */ @@ -17325,6 +18430,26 @@ typedef struct MUST_USE_STRUCT LDKExpandedKey { bool is_owned; } LDKExpandedKey; + + +/** + * Packet of hop data for next peer + */ +typedef struct MUST_USE_STRUCT LDKPacket { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativePacket *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKPacket; + /** * A 3-byte byte array. */ @@ -17899,106 +19024,90 @@ typedef struct LDKWitnessVersion { /** - * A semantically valid [`Bolt12Invoice`] that hasn't been signed. - */ -typedef struct MUST_USE_STRUCT LDKUnsignedBolt12Invoice { - /** - * A pointer to the opaque Rust object. - * Nearly everywhere, inner must be non-null, however in places where - * the Rust equivalent takes an Option, it may be set to null to indicate None. - */ - LDKnativeUnsignedBolt12Invoice *inner; - /** - * Indicates that this is the only struct which contains the same pointer. - * Rust functions which take ownership of an object provided via an argument require - * this to be true and invalidate the object pointed to by inner. - */ - bool is_owned; -} LDKUnsignedBolt12Invoice; - - - -/** - * The field in the [`InvoiceRequest`] or the [`Bolt12Invoice`] that contained an error. - * - * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest - * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice + * The minimum amount required for an item in an [`Offer`], denominated in either bitcoin or + * another currency. */ -typedef struct MUST_USE_STRUCT LDKErroneousField { +typedef struct MUST_USE_STRUCT LDKAmount { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeErroneousField *inner; + LDKnativeAmount *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKErroneousField; +} LDKAmount; /** - * A semantically valid [`InvoiceRequest`] that hasn't been signed. + * Quantity of items supported by an [`Offer`]. */ -typedef struct MUST_USE_STRUCT LDKUnsignedInvoiceRequest { +typedef struct MUST_USE_STRUCT LDKQuantity { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeUnsignedInvoiceRequest *inner; + LDKnativeQuantity *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKUnsignedInvoiceRequest; +} LDKQuantity; /** - * The minimum amount required for an item in an [`Offer`], denominated in either bitcoin or - * another currency. + * A hash for use in a specific context by tweaking with a context-dependent tag as per [BIP 340] + * and computed over the merkle root of a TLV stream to sign as defined in [BOLT 12]. + * + * [BIP 340]: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki + * [BOLT 12]: https://github.com/rustyrussell/lightning-rfc/blob/guilt/offers/12-offer-encoding.md#signature-calculation */ -typedef struct MUST_USE_STRUCT LDKAmount { +typedef struct MUST_USE_STRUCT LDKTaggedHash { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeAmount *inner; + LDKnativeTaggedHash *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKAmount; +} LDKTaggedHash; /** - * Quantity of items supported by an [`Offer`]. + * The field in the [`InvoiceRequest`] or the [`Bolt12Invoice`] that contained an error. + * + * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ -typedef struct MUST_USE_STRUCT LDKQuantity { +typedef struct MUST_USE_STRUCT LDKErroneousField { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeQuantity *inner; + LDKnativeErroneousField *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKQuantity; +} LDKErroneousField; @@ -18171,12 +19280,12 @@ typedef struct MUST_USE_STRUCT LDKDefaultRouter { /** - * [`Score`] implementation that factors in in-flight HTLC liquidity. + * [`ScoreLookUp`] implementation that factors in in-flight HTLC liquidity. * - * Useful for custom [`Router`] implementations to wrap their [`Score`] on-the-fly when calling + * Useful for custom [`Router`] implementations to wrap their [`ScoreLookUp`] on-the-fly when calling * [`find_route`]. * - * [`Score`]: crate::routing::scoring::Score + * [`ScoreLookUp`]: crate::routing::scoring::ScoreLookUp */ typedef struct MUST_USE_STRUCT LDKScorerAccountingForInFlightHtlcs { /** @@ -18264,6 +19373,39 @@ typedef struct MUST_USE_STRUCT LDKPayee { }; } LDKPayee; +/** + * A trait which can both lookup and update routing channel penalty scores. + * + * This is used in places where both bounds are required and implemented for all types which + * implement [`ScoreLookUp`] and [`ScoreUpdate`]. + * + * Bindings users may need to manually implement this for their custom scoring implementations. + */ +typedef struct LDKScore { + /** + * An opaque pointer which is passed to your function implementations as an argument. + * This has no meaning in the LDK, and can be NULL or any other value. + */ + void *this_arg; + /** + * Implementation of ScoreLookUp for this object. + */ + struct LDKScoreLookUp ScoreLookUp; + /** + * Implementation of ScoreUpdate for this object. + */ + struct LDKScoreUpdate ScoreUpdate; + /** + * Serialize the object into a byte array + */ + struct LDKCVec_u8Z (*write)(const void *this_arg); + /** + * Frees any resources associated with this object given its this_arg pointer. + * Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. + */ + void (*free)(void *this_arg); +} LDKScore; + /** @@ -18289,20 +19431,40 @@ typedef struct MUST_USE_STRUCT LDKMultiThreadedLockableScore { /** * A locked `MultiThreadedLockableScore`. */ -typedef struct MUST_USE_STRUCT LDKMultiThreadedScoreLock { +typedef struct MUST_USE_STRUCT LDKMultiThreadedScoreLockRead { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeMultiThreadedScoreLockRead *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKMultiThreadedScoreLockRead; + + + +/** + * A locked `MultiThreadedLockableScore`. + */ +typedef struct MUST_USE_STRUCT LDKMultiThreadedScoreLockWrite { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeMultiThreadedScoreLock *inner; + LDKnativeMultiThreadedScoreLockWrite *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKMultiThreadedScoreLock; +} LDKMultiThreadedScoreLockWrite; @@ -18611,22 +19773,42 @@ typedef struct MUST_USE_STRUCT LDKOnionMessageContents { /** - * The parameters required to derive a channel signer via [`SignerProvider`]. + * An intermediate node, its outbound channel, and relay parameters. */ -typedef struct MUST_USE_STRUCT LDKChannelDerivationParameters { +typedef struct MUST_USE_STRUCT LDKForwardNode { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeChannelDerivationParameters *inner; + LDKnativeForwardNode *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKChannelDerivationParameters; +} LDKForwardNode; + + + +/** + * Data to construct a [`BlindedHop`] for forwarding a payment. + */ +typedef struct MUST_USE_STRUCT LDKForwardTlvs { + /** + * A pointer to the opaque Rust object. + * Nearly everywhere, inner must be non-null, however in places where + * the Rust equivalent takes an Option, it may be set to null to indicate None. + */ + LDKnativeForwardTlvs *inner; + /** + * Indicates that this is the only struct which contains the same pointer. + * Rust functions which take ownership of an object provided via an argument require + * this to be true and invalidate the object pointed to by inner. + */ + bool is_owned; +} LDKForwardTlvs; /** * An abstraction over a bitcoin wallet that can perform coin selection over a set of UTXOs and can @@ -18699,7 +19881,7 @@ typedef struct LDKWalletSource { * Returns a script to use for change above dust resulting from a successful coin selection * attempt. */ - struct LDKCResult_ScriptNoneZ (*get_change_script)(const void *this_arg); + struct LDKCResult_CVec_u8ZNoneZ (*get_change_script)(const void *this_arg); /** * Signs and provides the full [`TxIn::script_sig`] and [`TxIn::witness`] for all inputs within * the transaction known to the wallet (i.e., any provided via @@ -18762,33 +19944,22 @@ typedef struct MUST_USE_STRUCT LDKBumpTransactionEventHandler { /** - * FilesystemPersister persists channel data on disk, where each channel's - * data is stored in a file named after its funding outpoint. - * - * Warning: this module does the best it can with calls to persist data, but it - * can only guarantee that the data is passed to the drive. It is up to the - * drive manufacturers to do the actual persistence properly, which they often - * don't (especially on consumer-grade hardware). Therefore, it is up to the - * user to validate their entire storage stack, to ensure the writes are - * persistent. - * Corollary: especially when dealing with larger amounts of money, it is best - * practice to have multiple channel data backups and not rely only on one - * FilesystemPersister. + * A [`KVStore`] implementation that writes to and reads from the file system. */ -typedef struct MUST_USE_STRUCT LDKFilesystemPersister { +typedef struct MUST_USE_STRUCT LDKFilesystemStore { /** * A pointer to the opaque Rust object. * Nearly everywhere, inner must be non-null, however in places where * the Rust equivalent takes an Option, it may be set to null to indicate None. */ - LDKnativeFilesystemPersister *inner; + LDKnativeFilesystemStore *inner; /** * Indicates that this is the only struct which contains the same pointer. * Rust functions which take ownership of an object provided via an argument require * this to be true and invalidate the object pointed to by inner. */ bool is_owned; -} LDKFilesystemPersister; +} LDKFilesystemStore; @@ -19024,6 +20195,8 @@ typedef struct MUST_USE_STRUCT LDKFallback { extern const uintptr_t MAX_BUF_SIZE; +extern const uintptr_t KVSTORE_NAMESPACE_KEY_MAX_LEN; + extern const uint64_t MIN_RELAY_FEE_SAT_PER_1000_WEIGHT; extern const uint32_t FEERATE_FLOOR_SATS_PER_KW; @@ -19171,25 +20344,25 @@ const void *__unmangle_inner_ptr(const void *ptr); #endif /** - * Constructs a new COption_DurationZ containing a u64 + * Constructs a new COption_u64Z containing a u64 */ -struct LDKCOption_DurationZ COption_DurationZ_some(uint64_t o); +struct LDKCOption_u64Z COption_u64Z_some(uint64_t o); /** - * Constructs a new COption_DurationZ containing nothing + * Constructs a new COption_u64Z containing nothing */ -struct LDKCOption_DurationZ COption_DurationZ_none(void); +struct LDKCOption_u64Z COption_u64Z_none(void); /** * Frees any resources associated with the u64, if we are in the Some state */ -void COption_DurationZ_free(struct LDKCOption_DurationZ _res); +void COption_u64Z_free(struct LDKCOption_u64Z _res); /** - * Creates a new COption_DurationZ which has the same data as `orig` + * Creates a new COption_u64Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_DurationZ COption_DurationZ_clone(const struct LDKCOption_DurationZ *NONNULL_PTR orig); +struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -19197,51 +20370,56 @@ struct LDKCOption_DurationZ COption_DurationZ_clone(const struct LDKCOption_Dura void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res); /** - * Constructs a new COption_u64Z containing a u64 + * Creates a new CResult_RefundBolt12ParseErrorZ in the success state. */ -struct LDKCOption_u64Z COption_u64Z_some(uint64_t o); +struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o); /** - * Constructs a new COption_u64Z containing nothing + * Creates a new CResult_RefundBolt12ParseErrorZ in the error state. */ -struct LDKCOption_u64Z COption_u64Z_none(void); +struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e); /** - * Frees any resources associated with the u64, if we are in the Some state + * Checks if the given object is currently in the success state */ -void COption_u64Z_free(struct LDKCOption_u64Z _res); +bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o); /** - * Creates a new COption_u64Z which has the same data as `orig` + * Frees any resources used by the CResult_RefundBolt12ParseErrorZ. + */ +void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res); + +/** + * Creates a new CResult_RefundBolt12ParseErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig); +struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_RefundBolt12ParseErrorZ in the success state. + * Creates a new CResult_RetryDecodeErrorZ in the success state. */ -struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o); +struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o); /** - * Creates a new CResult_RefundBolt12ParseErrorZ in the error state. + * Creates a new CResult_RetryDecodeErrorZ in the error state. */ -struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e); +struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o); +bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_RefundBolt12ParseErrorZ. + * Frees any resources used by the CResult_RetryDecodeErrorZ. */ -void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res); +void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res); /** - * Creates a new CResult_RefundBolt12ParseErrorZ which has the same data as `orig` + * Creates a new CResult_RetryDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig); +struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_NoneAPIErrorZ in the success state. @@ -19280,25 +20458,25 @@ void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res); /** - * Constructs a new COption_PaymentSecretZ containing a crate::c_types::ThirtyTwoBytes + * Constructs a new COption_ThirtyTwoBytesZ containing a crate::c_types::ThirtyTwoBytes */ -struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o); /** - * Constructs a new COption_PaymentSecretZ containing nothing + * Constructs a new COption_ThirtyTwoBytesZ containing nothing */ -struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_none(void); +struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void); /** * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state */ -void COption_PaymentSecretZ_free(struct LDKCOption_PaymentSecretZ _res); +void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res); /** - * Creates a new COption_PaymentSecretZ which has the same data as `orig` + * Creates a new COption_ThirtyTwoBytesZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PaymentSecretZ COption_PaymentSecretZ_clone(const struct LDKCOption_PaymentSecretZ *NONNULL_PTR orig); +struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -19352,6 +20530,105 @@ void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOn */ struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig); +/** + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig); + +/** + * Creates a new C2Tuple_u64CVec_u8ZZ from the contained elements. + */ +struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b); + +/** + * Frees any resources used by the C2Tuple_u64CVec_u8ZZ. + */ +void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res); + +/** + * Frees the buffer pointed to by `data` if `datalen` is non-0. + */ +void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res); + +/** + * Creates a new CResult_RecipientOnionFieldsNoneZ in the success state. + */ +struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o); + +/** + * Creates a new CResult_RecipientOnionFieldsNoneZ in the error state. + */ +struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_RecipientOnionFieldsNoneZ. + */ +void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res); + +/** + * Creates a new CResult_RecipientOnionFieldsNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig); + +/** + * Frees the buffer pointed to by `data` if `datalen` is non-0. + */ +void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res); + +/** + * Constructs a new COption_CVec_ThirtyTwoBytesZZ containing a crate::c_types::derived::CVec_ThirtyTwoBytesZ + */ +struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o); + +/** + * Constructs a new COption_CVec_ThirtyTwoBytesZZ containing nothing + */ +struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void); + +/** + * Frees any resources associated with the crate::c_types::derived::CVec_ThirtyTwoBytesZ, if we are in the Some state + */ +void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res); + +/** + * Creates a new COption_CVec_ThirtyTwoBytesZZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_ThirtyTwoBytesNoneZ in the success state. + */ +struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o); + +/** + * Creates a new CResult_ThirtyTwoBytesNoneZ in the error state. + */ +struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_ThirtyTwoBytesNoneZ. + */ +void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res); + +/** + * Creates a new CResult_ThirtyTwoBytesNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig); + /** * Creates a new CResult_BlindedPayInfoDecodeErrorZ in the success state. */ @@ -19467,72 +20744,67 @@ void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescript void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res); /** - * Constructs a new COption_PackedLockTimeZ containing a u32 + * Constructs a new COption_u32Z containing a u32 */ -struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_some(uint32_t o); +struct LDKCOption_u32Z COption_u32Z_some(uint32_t o); /** - * Constructs a new COption_PackedLockTimeZ containing nothing + * Constructs a new COption_u32Z containing nothing */ -struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_none(void); +struct LDKCOption_u32Z COption_u32Z_none(void); /** * Frees any resources associated with the u32, if we are in the Some state */ -void COption_PackedLockTimeZ_free(struct LDKCOption_PackedLockTimeZ _res); +void COption_u32Z_free(struct LDKCOption_u32Z _res); /** - * Creates a new COption_PackedLockTimeZ which has the same data as `orig` + * Creates a new COption_u32Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PackedLockTimeZ COption_PackedLockTimeZ_clone(const struct LDKCOption_PackedLockTimeZ *NONNULL_PTR orig); +struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_PartiallySignedTransactionusizeZ C2Tuple_PartiallySignedTransactionusizeZ_clone(const struct LDKC2Tuple_PartiallySignedTransactionusizeZ *NONNULL_PTR orig); +struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_clone(const struct LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_PartiallySignedTransactionusizeZ from the contained elements. + * Creates a new C2Tuple_CVec_u8ZusizeZ from the contained elements. */ -struct LDKC2Tuple_PartiallySignedTransactionusizeZ C2Tuple_PartiallySignedTransactionusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b); +struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b); /** - * Frees any resources used by the C2Tuple_PartiallySignedTransactionusizeZ. + * Frees any resources used by the C2Tuple_CVec_u8ZusizeZ. */ -void C2Tuple_PartiallySignedTransactionusizeZ_free(struct LDKC2Tuple_PartiallySignedTransactionusizeZ _res); +void C2Tuple_CVec_u8ZusizeZ_free(struct LDKC2Tuple_CVec_u8ZusizeZ _res); /** - * Creates a new CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ in the success state. + * Creates a new CResult_C2Tuple_CVec_u8ZusizeZNoneZ in the success state. */ -struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_ok(struct LDKC2Tuple_PartiallySignedTransactionusizeZ o); +struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_ok(struct LDKC2Tuple_CVec_u8ZusizeZ o); /** - * Creates a new CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ in the error state. + * Creates a new CResult_C2Tuple_CVec_u8ZusizeZNoneZ in the error state. */ -struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_err(void); +struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR o); +bool CResult_C2Tuple_CVec_u8ZusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ. + * Frees any resources used by the CResult_C2Tuple_CVec_u8ZusizeZNoneZ. */ -void CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_free(struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ _res); +void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ _res); /** - * Creates a new CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_CVec_u8ZusizeZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ CResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ *NONNULL_PTR orig); - -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res); +struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_NoneNoneZ in the success state. @@ -19563,75 +20835,75 @@ struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_None /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res); +void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig); +struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_SignatureCVec_SignatureZZ from the contained elements. + * Creates a new C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ from the contained elements. */ -struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b); +struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b); /** - * Frees any resources used by the C2Tuple_SignatureCVec_SignatureZZ. + * Frees any resources used by the C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ. */ -void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res); +void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res); /** - * Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ in the success state. + * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ in the success state. */ -struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o); +struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o); /** - * Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ in the error state. + * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ in the error state. */ -struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void); +struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o); +bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ. + * Frees any resources used by the CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ. */ -void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res); +void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res); /** - * Creates a new CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig); /** - * Creates a new CResult_SignatureNoneZ in the success state. + * Creates a new CResult_ECDSASignatureNoneZ in the success state. */ -struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o); +struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o); /** - * Creates a new CResult_SignatureNoneZ in the error state. + * Creates a new CResult_ECDSASignatureNoneZ in the error state. */ -struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void); +struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o); +bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_SignatureNoneZ. + * Frees any resources used by the CResult_ECDSASignatureNoneZ. */ -void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res); +void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res); /** - * Creates a new CResult_SignatureNoneZ which has the same data as `orig` + * Creates a new CResult_ECDSASignatureNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig); +struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_PublicKeyNoneZ in the success state. @@ -19660,82 +20932,82 @@ void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res); struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig); /** - * Constructs a new COption_ScalarZ containing a crate::c_types::BigEndianScalar + * Constructs a new COption_BigEndianScalarZ containing a crate::c_types::BigEndianScalar */ -struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o); +struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o); /** - * Constructs a new COption_ScalarZ containing nothing + * Constructs a new COption_BigEndianScalarZ containing nothing */ -struct LDKCOption_ScalarZ COption_ScalarZ_none(void); +struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void); /** * Frees any resources associated with the crate::c_types::BigEndianScalar, if we are in the Some state */ -void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res); +void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res); /** - * Creates a new COption_ScalarZ which has the same data as `orig` + * Creates a new COption_BigEndianScalarZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_ScalarZ COption_ScalarZ_clone(const struct LDKCOption_ScalarZ *NONNULL_PTR orig); +struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig); /** - * Creates a new CResult_SharedSecretNoneZ in the success state. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o); +void CVec_U5Z_free(struct LDKCVec_U5Z _res); /** - * Creates a new CResult_SharedSecretNoneZ in the error state. + * Creates a new CResult_RecoverableSignatureNoneZ in the success state. */ -struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void); +struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o); /** - * Checks if the given object is currently in the success state + * Creates a new CResult_RecoverableSignatureNoneZ in the error state. */ -bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o); +struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void); /** - * Frees any resources used by the CResult_SharedSecretNoneZ. + * Checks if the given object is currently in the success state */ -void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res); +bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o); /** - * Creates a new CResult_SharedSecretNoneZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees any resources used by the CResult_RecoverableSignatureNoneZ. */ -struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig); +void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res); /** - * Frees the buffer pointed to by `data` if `datalen` is non-0. + * Creates a new CResult_RecoverableSignatureNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -void CVec_U5Z_free(struct LDKCVec_U5Z _res); +struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig); /** - * Creates a new CResult_RecoverableSignatureNoneZ in the success state. + * Creates a new CResult_SchnorrSignatureNoneZ in the success state. */ -struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o); +struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o); /** - * Creates a new CResult_RecoverableSignatureNoneZ in the error state. + * Creates a new CResult_SchnorrSignatureNoneZ in the error state. */ -struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void); +struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o); +bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_RecoverableSignatureNoneZ. + * Frees any resources used by the CResult_SchnorrSignatureNoneZ. */ -void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res); +void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res); /** - * Creates a new CResult_RecoverableSignatureNoneZ which has the same data as `orig` + * Creates a new CResult_SchnorrSignatureNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig); +struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_WriteableEcdsaChannelSignerDecodeErrorZ in the success state. @@ -19764,30 +21036,30 @@ void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_Writ struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_ScriptNoneZ in the success state. + * Creates a new CResult_CVec_u8ZNoneZ in the success state. */ -struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_ok(struct LDKCVec_u8Z o); +struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o); /** - * Creates a new CResult_ScriptNoneZ in the error state. + * Creates a new CResult_CVec_u8ZNoneZ in the error state. */ -struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_err(void); +struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_ScriptNoneZ_is_ok(const struct LDKCResult_ScriptNoneZ *NONNULL_PTR o); +bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_ScriptNoneZ. + * Frees any resources used by the CResult_CVec_u8ZNoneZ. */ -void CResult_ScriptNoneZ_free(struct LDKCResult_ScriptNoneZ _res); +void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res); /** - * Creates a new CResult_ScriptNoneZ which has the same data as `orig` + * Creates a new CResult_CVec_u8ZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_ScriptNoneZ CResult_ScriptNoneZ_clone(const struct LDKCResult_ScriptNoneZ *NONNULL_PTR orig); +struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_ShutdownScriptNoneZ in the success state. @@ -19815,6 +21087,48 @@ void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res */ struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig); +/** + * Constructs a new COption_u16Z containing a u16 + */ +struct LDKCOption_u16Z COption_u16Z_some(uint16_t o); + +/** + * Constructs a new COption_u16Z containing nothing + */ +struct LDKCOption_u16Z COption_u16Z_none(void); + +/** + * Frees any resources associated with the u16, if we are in the Some state + */ +void COption_u16Z_free(struct LDKCOption_u16Z _res); + +/** + * Creates a new COption_u16Z which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig); + +/** + * Constructs a new COption_boolZ containing a bool + */ +struct LDKCOption_boolZ COption_boolZ_some(bool o); + +/** + * Constructs a new COption_boolZ containing nothing + */ +struct LDKCOption_boolZ COption_boolZ_none(void); + +/** + * Frees any resources associated with the bool, if we are in the Some state + */ +void COption_boolZ_free(struct LDKCOption_boolZ _res); + +/** + * Creates a new COption_boolZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig); + /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ @@ -19872,32 +21186,6 @@ void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDec */ struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig); -/** - * Creates a new CResult_PartiallySignedTransactionNoneZ in the success state. - */ -struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_ok(struct LDKCVec_u8Z o); - -/** - * Creates a new CResult_PartiallySignedTransactionNoneZ in the error state. - */ -struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_err(void); - -/** - * Checks if the given object is currently in the success state - */ -bool CResult_PartiallySignedTransactionNoneZ_is_ok(const struct LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR o); - -/** - * Frees any resources used by the CResult_PartiallySignedTransactionNoneZ. - */ -void CResult_PartiallySignedTransactionNoneZ_free(struct LDKCResult_PartiallySignedTransactionNoneZ _res); - -/** - * Creates a new CResult_PartiallySignedTransactionNoneZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKCResult_PartiallySignedTransactionNoneZ CResult_PartiallySignedTransactionNoneZ_clone(const struct LDKCResult_PartiallySignedTransactionNoneZ *NONNULL_PTR orig); - /** * Creates a new CResult_TransactionNoneZ in the success state. */ @@ -19940,30 +21228,30 @@ struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void); void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res); /** - * Creates a new CResult_NoneErrorZ in the success state. + * Creates a new CResult_NoneIOErrorZ in the success state. */ -struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void); +struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void); /** - * Creates a new CResult_NoneErrorZ in the error state. + * Creates a new CResult_NoneIOErrorZ in the error state. */ -struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e); +struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e); /** * Checks if the given object is currently in the success state */ -bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o); +bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_NoneErrorZ. + * Frees any resources used by the CResult_NoneIOErrorZ. */ -void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res); +void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res); /** - * Creates a new CResult_NoneErrorZ which has the same data as `orig` + * Creates a new CResult_NoneIOErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig); +struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -20084,27 +21372,6 @@ struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone( */ void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res); -/** - * Constructs a new COption_u32Z containing a u32 - */ -struct LDKCOption_u32Z COption_u32Z_some(uint32_t o); - -/** - * Constructs a new COption_u32Z containing nothing - */ -struct LDKCOption_u32Z COption_u32Z_none(void); - -/** - * Frees any resources associated with the u32, if we are in the Some state - */ -void COption_u32Z_free(struct LDKCOption_u32Z _res); - -/** - * Creates a new COption_u32Z which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig); - /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ @@ -20349,16 +21616,10 @@ void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res); */ struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig); -/** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKC2Tuple_Z C2Tuple_Z_clone(const struct LDKC2Tuple_Z *NONNULL_PTR orig); - /** * Creates a new C2Tuple_Z from the contained elements. */ -struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b); +struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b); /** * Frees any resources used by the C2Tuple_Z. @@ -20366,41 +21627,50 @@ struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b); void C2Tuple_Z_free(struct LDKC2Tuple_Z _res); /** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new C2Tuple__u1632_u1632Z from the contained elements. */ -struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_clone(const struct LDKC2Tuple__u168_u168Z *NONNULL_PTR orig); +struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b); /** - * Creates a new C2Tuple__u168_u168Z from the contained elements. + * Frees any resources used by the C2Tuple__u1632_u1632Z. */ -struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_new(struct LDKEightU16s a, struct LDKEightU16s b); +void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res); /** - * Frees any resources used by the C2Tuple__u168_u168Z. + * Constructs a new COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ containing a crate::c_types::derived::C2Tuple__u1632_u1632Z */ -void C2Tuple__u168_u168Z_free(struct LDKC2Tuple__u168_u168Z _res); +struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o); /** - * Constructs a new COption_C2Tuple_EightU16sEightU16sZZ containing a crate::c_types::derived::C2Tuple__u168_u168Z + * Constructs a new COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ containing nothing */ -struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_some(struct LDKC2Tuple__u168_u168Z o); +struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void); /** - * Constructs a new COption_C2Tuple_EightU16sEightU16sZZ containing nothing + * Frees any resources associated with the crate::c_types::derived::C2Tuple__u1632_u1632Z, if we are in the Some state */ -struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_none(void); +void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res); /** - * Frees any resources associated with the crate::c_types::derived::C2Tuple__u168_u168Z, if we are in the Some state + * Constructs a new COption_f64Z containing a f64 */ -void COption_C2Tuple_EightU16sEightU16sZZ_free(struct LDKCOption_C2Tuple_EightU16sEightU16sZZ _res); +struct LDKCOption_f64Z COption_f64Z_some(double o); /** - * Creates a new COption_C2Tuple_EightU16sEightU16sZZ which has the same data as `orig` + * Constructs a new COption_f64Z containing nothing + */ +struct LDKCOption_f64Z COption_f64Z_none(void); + +/** + * Frees any resources associated with the f64, if we are in the Some state + */ +void COption_f64Z_free(struct LDKCOption_f64Z _res); + +/** + * Creates a new COption_f64Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_clone(const struct LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR orig); +struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig); /** * Creates a new CResult_ProbabilisticScorerDecodeErrorZ in the success state. @@ -20444,46 +21714,51 @@ void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res); void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res); /** - * Constructs a new COption_BlockHashZ containing a crate::c_types::ThirtyTwoBytes + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_BlockHashZ COption_BlockHashZ_some(struct LDKThirtyTwoBytes o); +struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR orig); /** - * Constructs a new COption_BlockHashZ containing nothing + * Creates a new C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ from the contained elements. */ -struct LDKCOption_BlockHashZ COption_BlockHashZ_none(void); +struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_ThirtyTwoBytesZ b); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Frees any resources used by the C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ. */ -void COption_BlockHashZ_free(struct LDKCOption_BlockHashZ _res); +void C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ _res); /** - * Creates a new COption_BlockHashZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCOption_BlockHashZ COption_BlockHashZ_clone(const struct LDKCOption_BlockHashZ *NONNULL_PTR orig); +void CVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ _res); /** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ in the success state. */ -struct LDKC2Tuple_TxidCOption_BlockHashZZ C2Tuple_TxidCOption_BlockHashZZ_clone(const struct LDKC2Tuple_TxidCOption_BlockHashZZ *NONNULL_PTR orig); +struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o); /** - * Creates a new C2Tuple_TxidCOption_BlockHashZZ from the contained elements. + * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ in the error state. */ -struct LDKC2Tuple_TxidCOption_BlockHashZZ C2Tuple_TxidCOption_BlockHashZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_BlockHashZ b); +struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void); /** - * Frees any resources used by the C2Tuple_TxidCOption_BlockHashZZ. + * Checks if the given object is currently in the success state */ -void C2Tuple_TxidCOption_BlockHashZZ_free(struct LDKC2Tuple_TxidCOption_BlockHashZZ _res); +bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o); /** - * Frees the buffer pointed to by `data` if `datalen` is non-0. + * Frees any resources used by the CResult_ChannelMonitorUpdateStatusNoneZ. */ -void CVec_C2Tuple_TxidCOption_BlockHashZZZ_free(struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ _res); +void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res); + +/** + * Creates a new CResult_ChannelMonitorUpdateStatusNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -20693,11 +21968,6 @@ void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeF */ struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig); -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_ChainHashZ_free(struct LDKCVec_ChainHashZ _res); - /** * Creates a new CResult_OfferBolt12ParseErrorZ in the success state. */ @@ -20725,30 +21995,30 @@ void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseError struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_PublicKeyErrorZ in the success state. + * Creates a new CResult_PublicKeySecp256k1ErrorZ in the success state. */ -struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o); +struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o); /** - * Creates a new CResult_PublicKeyErrorZ in the error state. + * Creates a new CResult_PublicKeySecp256k1ErrorZ in the error state. */ -struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e); +struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); /** * Checks if the given object is currently in the success state */ -bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o); +bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PublicKeyErrorZ. + * Frees any resources used by the CResult_PublicKeySecp256k1ErrorZ. */ -void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res); +void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res); /** - * Creates a new CResult_PublicKeyErrorZ which has the same data as `orig` + * Creates a new CResult_PublicKeySecp256k1ErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig); +struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_NodeIdDecodeErrorZ in the success state. @@ -21013,7 +22283,7 @@ struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone( /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res); +void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res); /** * Creates a new CResult_NodeAnnouncementInfoDecodeErrorZ in the success state. @@ -21114,46 +22384,77 @@ bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraph void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res); /** - * Constructs a new COption_CVec_NetAddressZZ containing a crate::c_types::derived::CVec_NetAddressZ + * Constructs a new COption_CVec_SocketAddressZZ containing a crate::c_types::derived::CVec_SocketAddressZ */ -struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o); +struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o); /** - * Constructs a new COption_CVec_NetAddressZZ containing nothing + * Constructs a new COption_CVec_SocketAddressZZ containing nothing */ -struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void); +struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void); /** - * Frees any resources associated with the crate::c_types::derived::CVec_NetAddressZ, if we are in the Some state + * Frees any resources associated with the crate::c_types::derived::CVec_SocketAddressZ, if we are in the Some state */ -void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res); +void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res); /** - * Creates a new COption_CVec_NetAddressZZ which has the same data as `orig` + * Creates a new COption_CVec_SocketAddressZZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig); +struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig); /** - * Constructs a new COption_PaymentPreimageZ containing a crate::c_types::ThirtyTwoBytes + * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ in the success state. */ -struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_some(struct LDKThirtyTwoBytes o); +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o); /** - * Constructs a new COption_PaymentPreimageZ containing nothing + * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ in the error state. */ -struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_none(void); +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Checks if the given object is currently in the success state */ -void COption_PaymentPreimageZ_free(struct LDKCOption_PaymentPreimageZ _res); +bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o); /** - * Creates a new COption_PaymentPreimageZ which has the same data as `orig` + * Frees any resources used by the CResult_ChannelDerivationParametersDecodeErrorZ. + */ +void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res); + +/** + * Creates a new CResult_ChannelDerivationParametersDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PaymentPreimageZ COption_PaymentPreimageZ_clone(const struct LDKCOption_PaymentPreimageZ *NONNULL_PTR orig); +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_HTLCDescriptorDecodeErrorZ in the success state. + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o); + +/** + * Creates a new CResult_HTLCDescriptorDecodeErrorZ in the error state. + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_HTLCDescriptorDecodeErrorZ. + */ +void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res); + +/** + * Creates a new CResult_HTLCDescriptorDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -21249,93 +22550,88 @@ void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res); struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig); /** - * Constructs a new COption_u16Z containing a u16 - */ -struct LDKCOption_u16Z COption_u16Z_some(uint16_t o); - -/** - * Constructs a new COption_u16Z containing nothing + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_u16Z COption_u16Z_none(void); +struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig); /** - * Frees any resources associated with the u16, if we are in the Some state + * Creates a new C2Tuple_u64u16Z from the contained elements. */ -void COption_u16Z_free(struct LDKCOption_u16Z _res); +struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b); /** - * Creates a new COption_u16Z which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees any resources used by the C2Tuple_u64u16Z. */ -struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig); +void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res); /** - * Constructs a new COption_ChannelShutdownStateZ containing a crate::lightning::ln::channelmanager::ChannelShutdownState + * Constructs a new COption_C2Tuple_u64u16ZZ containing a crate::c_types::derived::C2Tuple_u64u16Z */ -struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); +struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o); /** - * Constructs a new COption_ChannelShutdownStateZ containing nothing + * Constructs a new COption_C2Tuple_u64u16ZZ containing nothing */ -struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); +struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void); /** - * Frees any resources associated with the crate::lightning::ln::channelmanager::ChannelShutdownState, if we are in the Some state + * Frees any resources associated with the crate::c_types::derived::C2Tuple_u64u16Z, if we are in the Some state */ -void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); +void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res); /** - * Creates a new COption_ChannelShutdownStateZ which has the same data as `orig` + * Creates a new COption_C2Tuple_u64u16ZZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); +struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig); /** - * Constructs a new COption_PaymentHashZ containing a crate::c_types::ThirtyTwoBytes + * Constructs a new COption_ChannelShutdownStateZ containing a crate::lightning::ln::channelmanager::ChannelShutdownState */ -struct LDKCOption_PaymentHashZ COption_PaymentHashZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); /** - * Constructs a new COption_PaymentHashZ containing nothing + * Constructs a new COption_ChannelShutdownStateZ containing nothing */ -struct LDKCOption_PaymentHashZ COption_PaymentHashZ_none(void); +struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Frees any resources associated with the crate::lightning::ln::channelmanager::ChannelShutdownState, if we are in the Some state */ -void COption_PaymentHashZ_free(struct LDKCOption_PaymentHashZ _res); +void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); /** - * Creates a new COption_PaymentHashZ which has the same data as `orig` + * Creates a new COption_ChannelShutdownStateZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_PaymentHashZ COption_PaymentHashZ_clone(const struct LDKCOption_PaymentHashZ *NONNULL_PTR orig); +struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); /** - * Creates a new CResult__u832APIErrorZ in the success state. + * Creates a new CResult_ThirtyTwoBytesAPIErrorZ in the success state. */ -struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o); /** - * Creates a new CResult__u832APIErrorZ in the error state. + * Creates a new CResult_ThirtyTwoBytesAPIErrorZ in the error state. */ -struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e); +struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e); /** * Checks if the given object is currently in the success state */ -bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o); +bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult__u832APIErrorZ. + * Frees any resources used by the CResult_ThirtyTwoBytesAPIErrorZ. */ -void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res); +void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res); /** - * Creates a new CResult__u832APIErrorZ which has the same data as `orig` + * Creates a new CResult_ThirtyTwoBytesAPIErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig); +struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -21395,218 +22691,176 @@ void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendF struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentHashPaymentSendFailureZ in the success state. + * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ in the success state. */ -struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o); /** - * Creates a new CResult_PaymentHashPaymentSendFailureZ in the error state. + * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ in the error state. */ -struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); +struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_PaymentHashPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR o); +bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PaymentHashPaymentSendFailureZ. + * Frees any resources used by the CResult_ThirtyTwoBytesPaymentSendFailureZ. */ -void CResult_PaymentHashPaymentSendFailureZ_free(struct LDKCResult_PaymentHashPaymentSendFailureZ _res); +void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res); /** - * Creates a new CResult_PaymentHashPaymentSendFailureZ which has the same data as `orig` + * Creates a new CResult_ThirtyTwoBytesPaymentSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_clone(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR orig); +struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentHashRetryableSendFailureZ in the success state. + * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ in the success state. */ -struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o); /** - * Creates a new CResult_PaymentHashRetryableSendFailureZ in the error state. + * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ in the error state. */ -struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_err(enum LDKRetryableSendFailure e); +struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_PaymentHashRetryableSendFailureZ_is_ok(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR o); +bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PaymentHashRetryableSendFailureZ. + * Frees any resources used by the CResult_ThirtyTwoBytesRetryableSendFailureZ. */ -void CResult_PaymentHashRetryableSendFailureZ_free(struct LDKCResult_PaymentHashRetryableSendFailureZ _res); +void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res); /** - * Creates a new CResult_PaymentHashRetryableSendFailureZ which has the same data as `orig` + * Creates a new CResult_ThirtyTwoBytesRetryableSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_clone(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR orig); +struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_PaymentHashPaymentIdZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ from the contained elements. */ -struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); +struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); /** - * Frees any resources used by the C2Tuple_PaymentHashPaymentIdZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ. */ -void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res); +void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ in the success state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ in the success state. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ in the error state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ in the error state. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o); +bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ. + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ. */ -void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res); +void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res); - -/** - * Creates a new tuple which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig); +void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res); /** - * Creates a new C2Tuple_PaymentHashPaymentSecretZ from the contained elements. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ in the success state. */ -struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o); /** - * Frees any resources used by the C2Tuple_PaymentHashPaymentSecretZ. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ in the error state. */ -void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res); - -/** - * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ in the success state. - */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o); - -/** - * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ in the error state. - */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o); +bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ. + * Frees any resources used by the CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ. */ -void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res); +void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res); /** - * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ which has the same data as `orig` + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig); - -/** - * Creates a new CResult_PaymentSecretNoneZ in the success state. - */ -struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentSecretNoneZ in the error state. - */ -struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void); - -/** - * Checks if the given object is currently in the success state - */ -bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o); - -/** - * Frees any resources used by the CResult_PaymentSecretNoneZ. - */ -void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res); - -/** - * Creates a new CResult_PaymentSecretNoneZ which has the same data as `orig` + * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig); - -/** - * Creates a new CResult_PaymentPreimageAPIErrorZ in the success state. - */ -struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o); +struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentPreimageAPIErrorZ in the error state. + * Creates a new C2Tuple_ThirtyTwoBytesPublicKeyZ from the contained elements. */ -struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e); +struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b); /** - * Checks if the given object is currently in the success state + * Frees any resources used by the C2Tuple_ThirtyTwoBytesPublicKeyZ. */ -bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o); +void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res); /** - * Frees any resources used by the CResult_PaymentPreimageAPIErrorZ. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res); +void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res); /** - * Creates a new CResult_PaymentPreimageAPIErrorZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ in the success state. */ -struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); /** - * Constructs a new COption_CVec_ChainHashZZ containing a crate::c_types::derived::CVec_ChainHashZ + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ in the error state. */ -struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_some(struct LDKCVec_ChainHashZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void); /** - * Constructs a new COption_CVec_ChainHashZZ containing nothing + * Checks if the given object is currently in the success state */ -struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_none(void); +bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o); /** - * Frees any resources associated with the crate::c_types::derived::CVec_ChainHashZ, if we are in the Some state + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ. */ -void COption_CVec_ChainHashZZ_free(struct LDKCOption_CVec_ChainHashZZ _res); +void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res); /** - * Creates a new COption_CVec_ChainHashZZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_CVec_ChainHashZZ COption_CVec_ChainHashZZ_clone(const struct LDKCOption_CVec_ChainHashZZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig); /** * Creates a new CResult_CounterpartyForwardingInfoDecodeErrorZ in the success state. @@ -21744,34 +22998,34 @@ struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateD void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res); /** - * Creates a new C2Tuple_BlockHashChannelManagerZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesChannelManagerZ from the contained elements. */ -struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b); +struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b); /** - * Frees any resources used by the C2Tuple_BlockHashChannelManagerZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesChannelManagerZ. */ -void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res); +void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res); /** - * Creates a new CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ in the success state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ in the success state. */ -struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o); /** - * Creates a new CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ in the error state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ in the error state. */ -struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o); +bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ. + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ. */ -void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res); +void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res); /** * Creates a new CResult_MaxDustHTLCExposureDecodeErrorZ in the success state. @@ -21996,59 +23250,64 @@ struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(co * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig); +struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_OutPointScriptZ from the contained elements. + * Creates a new C2Tuple_OutPointCVec_u8ZZ from the contained elements. */ -struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b); +struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b); /** - * Frees any resources used by the C2Tuple_OutPointScriptZ. + * Frees any resources used by the C2Tuple_OutPointCVec_u8ZZ. */ -void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res); +void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig); +struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_u32ScriptZ from the contained elements. + * Creates a new C2Tuple_u32CVec_u8ZZ from the contained elements. */ -struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b); +struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b); /** - * Frees any resources used by the C2Tuple_u32ScriptZ. + * Frees any resources used by the C2Tuple_u32CVec_u8ZZ. */ -void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res); +void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res); +void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig); + +/** + * Creates a new C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ from the contained elements. + */ +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b); /** - * Creates a new C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ from the contained elements. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b); +void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res); /** - * Frees any resources used by the C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res); +void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res); +void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -22080,17 +23339,17 @@ void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res); * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ from the contained elements. */ -struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b); +struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b); /** - * Frees any resources used by the C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ. */ -void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res); +void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -22106,43 +23365,43 @@ void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res); * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig); +struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_BlockHashChannelMonitorZ from the contained elements. + * Creates a new C2Tuple_ThirtyTwoBytesChannelMonitorZ from the contained elements. */ -struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b); +struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b); /** - * Frees any resources used by the C2Tuple_BlockHashChannelMonitorZ. + * Frees any resources used by the C2Tuple_ThirtyTwoBytesChannelMonitorZ. */ -void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res); +void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res); /** - * Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ in the success state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ in the success state. */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o); /** - * Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ in the error state. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ in the error state. */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o); +bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ. + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ. */ -void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res); +void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res); /** - * Creates a new CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` @@ -22281,46 +23540,46 @@ void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecod struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_NetAddressZ containing a crate::lightning::ln::msgs::NetAddress + * Constructs a new COption_SocketAddressZ containing a crate::lightning::ln::msgs::SocketAddress */ -struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o); +struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o); /** - * Constructs a new COption_NetAddressZ containing nothing + * Constructs a new COption_SocketAddressZ containing nothing */ -struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void); +struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void); /** - * Frees any resources associated with the crate::lightning::ln::msgs::NetAddress, if we are in the Some state + * Frees any resources associated with the crate::lightning::ln::msgs::SocketAddress, if we are in the Some state */ -void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res); +void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res); /** - * Creates a new COption_NetAddressZ which has the same data as `orig` + * Creates a new COption_SocketAddressZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig); +struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig); /** * Creates a new tuple which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR orig); +struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig); /** - * Creates a new C2Tuple_PublicKeyCOption_NetAddressZZ from the contained elements. + * Creates a new C2Tuple_PublicKeyCOption_SocketAddressZZ from the contained elements. */ -struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_NetAddressZ b); +struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b); /** - * Frees any resources used by the C2Tuple_PublicKeyCOption_NetAddressZZ. + * Frees any resources used by the C2Tuple_PublicKeyCOption_SocketAddressZZ. */ -void C2Tuple_PublicKeyCOption_NetAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ _res); +void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ _res); +void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res); /** * Creates a new CResult_CVec_u8ZPeerHandleErrorZ in the success state. @@ -22421,160 +23680,258 @@ bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res); /** - * Constructs a new COption_KeyPairZ containing a crate::c_types::SecretKey + * Creates a new CResult_CVec_u8ZIOErrorZ in the success state. */ -struct LDKCOption_KeyPairZ COption_KeyPairZ_some(struct LDKSecretKey o); +struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o); /** - * Constructs a new COption_KeyPairZ containing nothing + * Creates a new CResult_CVec_u8ZIOErrorZ in the error state. */ -struct LDKCOption_KeyPairZ COption_KeyPairZ_none(void); +struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e); /** - * Frees any resources associated with the crate::c_types::SecretKey, if we are in the Some state + * Checks if the given object is currently in the success state */ -void COption_KeyPairZ_free(struct LDKCOption_KeyPairZ _res); +bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o); /** - * Creates a new COption_KeyPairZ which has the same data as `orig` + * Frees any resources used by the CResult_CVec_u8ZIOErrorZ. + */ +void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res); + +/** + * Creates a new CResult_CVec_u8ZIOErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_KeyPairZ COption_KeyPairZ_clone(const struct LDKCOption_KeyPairZ *NONNULL_PTR orig); +struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_COption_KeyPairZNoneZ in the success state. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_ok(struct LDKCOption_KeyPairZ o); +void CVec_StrZ_free(struct LDKCVec_StrZ _res); /** - * Creates a new CResult_COption_KeyPairZNoneZ in the error state. + * Creates a new CResult_CVec_StrZIOErrorZ in the success state. */ -struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_err(void); +struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o); /** - * Checks if the given object is currently in the success state + * Creates a new CResult_CVec_StrZIOErrorZ in the error state. */ -bool CResult_COption_KeyPairZNoneZ_is_ok(const struct LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR o); +struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e); /** - * Frees any resources used by the CResult_COption_KeyPairZNoneZ. + * Checks if the given object is currently in the success state */ -void CResult_COption_KeyPairZNoneZ_free(struct LDKCResult_COption_KeyPairZNoneZ _res); +bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o); /** - * Creates a new CResult_COption_KeyPairZNoneZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees any resources used by the CResult_CVec_StrZIOErrorZ. */ -struct LDKCResult_COption_KeyPairZNoneZ CResult_COption_KeyPairZNoneZ_clone(const struct LDKCResult_COption_KeyPairZNoneZ *NONNULL_PTR orig); +void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res); /** - * Constructs a new COption_ScriptZ containing a crate::c_types::derived::CVec_u8Z + * Creates a new CResult_CVec_StrZIOErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_ScriptZ COption_ScriptZ_some(struct LDKCVec_u8Z o); +struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_ScriptZ containing nothing + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCOption_ScriptZ COption_ScriptZ_none(void); +void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res); /** - * Frees any resources associated with the crate::c_types::derived::CVec_u8Z, if we are in the Some state + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ in the success state. */ -void COption_ScriptZ_free(struct LDKCOption_ScriptZ _res); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o); /** - * Creates a new COption_ScriptZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ in the error state. */ -struct LDKCOption_ScriptZ COption_ScriptZ_clone(const struct LDKCOption_ScriptZ *NONNULL_PTR orig); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e); /** - * Constructs a new COption_NoneZ containing a + * Checks if the given object is currently in the success state */ -enum LDKCOption_NoneZ COption_NoneZ_some(void); +bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o); /** - * Constructs a new COption_NoneZ containing nothing + * Frees any resources used by the CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ. */ -enum LDKCOption_NoneZ COption_NoneZ_none(void); +void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res); /** - * Frees any resources associated with the , if we are in the Some state + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. */ -void COption_NoneZ_free(enum LDKCOption_NoneZ _res); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig); /** - * Frees the buffer pointed to by `data` if `datalen` is non-0. + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ in the success state. */ -void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o); /** - * Constructs a new COption_i64Z containing a i64 + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ in the error state. */ -struct LDKCOption_i64Z COption_i64Z_some(int64_t o); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e); /** - * Constructs a new COption_i64Z containing nothing + * Checks if the given object is currently in the success state */ -struct LDKCOption_i64Z COption_i64Z_none(void); +bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o); /** - * Frees any resources associated with the i64, if we are in the Some state + * Frees any resources used by the CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ. */ -void COption_i64Z_free(struct LDKCOption_i64Z _res); +void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res); /** - * Creates a new COption_i64Z which has the same data as `orig` + * Creates a new CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_TxidZ containing a crate::c_types::ThirtyTwoBytes + * Constructs a new COption_SecretKeyZ containing a crate::c_types::SecretKey */ -struct LDKCOption_TxidZ COption_TxidZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o); /** - * Constructs a new COption_TxidZ containing nothing + * Constructs a new COption_SecretKeyZ containing nothing */ -struct LDKCOption_TxidZ COption_TxidZ_none(void); +struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void); /** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state + * Frees any resources associated with the crate::c_types::SecretKey, if we are in the Some state */ -void COption_TxidZ_free(struct LDKCOption_TxidZ _res); +void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res); /** - * Creates a new COption_TxidZ which has the same data as `orig` + * Creates a new COption_SecretKeyZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_TxidZ COption_TxidZ_clone(const struct LDKCOption_TxidZ *NONNULL_PTR orig); +struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig); /** - * Creates a new CResult_NetAddressDecodeErrorZ in the success state. + * Creates a new CResult_VerifiedInvoiceRequestNoneZ in the success state. */ -struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o); +struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o); /** - * Creates a new CResult_NetAddressDecodeErrorZ in the error state. + * Creates a new CResult_VerifiedInvoiceRequestNoneZ in the error state. */ -struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e); +struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o); +bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_NetAddressDecodeErrorZ. + * Frees any resources used by the CResult_VerifiedInvoiceRequestNoneZ. */ -void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res); +void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res); /** - * Creates a new CResult_NetAddressDecodeErrorZ which has the same data as `orig` + * Creates a new CResult_VerifiedInvoiceRequestNoneZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig); +struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig); + +/** + * Constructs a new COption_NoneZ containing a + */ +enum LDKCOption_NoneZ COption_NoneZ_some(void); + +/** + * Constructs a new COption_NoneZ containing nothing + */ +enum LDKCOption_NoneZ COption_NoneZ_none(void); + +/** + * Frees any resources associated with the , if we are in the Some state + */ +void COption_NoneZ_free(enum LDKCOption_NoneZ _res); + +/** + * Frees the buffer pointed to by `data` if `datalen` is non-0. + */ +void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res); + +/** + * Constructs a new COption_i64Z containing a i64 + */ +struct LDKCOption_i64Z COption_i64Z_some(int64_t o); + +/** + * Constructs a new COption_i64Z containing nothing + */ +struct LDKCOption_i64Z COption_i64Z_none(void); + +/** + * Frees any resources associated with the i64, if we are in the Some state + */ +void COption_i64Z_free(struct LDKCOption_i64Z _res); + +/** + * Creates a new COption_i64Z which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig); + +/** + * Creates a new CResult_SocketAddressDecodeErrorZ in the success state. + */ +struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o); + +/** + * Creates a new CResult_SocketAddressDecodeErrorZ in the error state. + */ +struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_SocketAddressDecodeErrorZ. + */ +void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res); + +/** + * Creates a new CResult_SocketAddressDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_SocketAddressSocketAddressParseErrorZ in the success state. + */ +struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o); + +/** + * Creates a new CResult_SocketAddressSocketAddressParseErrorZ in the error state. + */ +struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_SocketAddressSocketAddressParseErrorZ. + */ +void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res); + +/** + * Creates a new CResult_SocketAddressSocketAddressParseErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -24118,30 +25475,51 @@ bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_Tru void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res); /** - * Creates a new CResult_CVec_SignatureZNoneZ in the success state. + * Creates a new CResult_CVec_ECDSASignatureZNoneZ in the success state. */ -struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o); +struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o); /** - * Creates a new CResult_CVec_SignatureZNoneZ in the error state. + * Creates a new CResult_CVec_ECDSASignatureZNoneZ in the error state. */ -struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void); +struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void); /** * Checks if the given object is currently in the success state */ -bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o); +bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_CVec_ECDSASignatureZNoneZ. + */ +void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res); + +/** + * Creates a new CResult_CVec_ECDSASignatureZNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig); /** - * Frees any resources used by the CResult_CVec_SignatureZNoneZ. + * Constructs a new COption_usizeZ containing a usize */ -void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res); +struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o); /** - * Creates a new CResult_CVec_SignatureZNoneZ which has the same data as `orig` + * Constructs a new COption_usizeZ containing nothing + */ +struct LDKCOption_usizeZ COption_usizeZ_none(void); + +/** + * Frees any resources associated with the usize, if we are in the Some state + */ +void COption_usizeZ_free(struct LDKCOption_usizeZ _res); + +/** + * Creates a new COption_usizeZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig); +struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig); /** * Creates a new CResult_ShutdownScriptDecodeErrorZ in the success state. @@ -24221,6 +25599,32 @@ void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDec */ struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig); +/** + * Creates a new CResult_ClaimedHTLCDecodeErrorZ in the success state. + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o); + +/** + * Creates a new CResult_ClaimedHTLCDecodeErrorZ in the error state. + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_ClaimedHTLCDecodeErrorZ. + */ +void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res); + +/** + * Creates a new CResult_ClaimedHTLCDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig); + /** * Constructs a new COption_PathFailureZ containing a crate::lightning::events::PathFailure */ @@ -24389,46 +25793,30 @@ void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFail struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig); /** - * Constructs a new COption_u128Z containing a crate::c_types::U128 + * Constructs a new COption_U128Z containing a crate::c_types::U128 */ -struct LDKCOption_u128Z COption_u128Z_some(struct LDKU128 o); +struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o); /** - * Constructs a new COption_u128Z containing nothing + * Constructs a new COption_U128Z containing nothing */ -struct LDKCOption_u128Z COption_u128Z_none(void); +struct LDKCOption_U128Z COption_U128Z_none(void); /** * Frees any resources associated with the crate::c_types::U128, if we are in the Some state */ -void COption_u128Z_free(struct LDKCOption_u128Z _res); +void COption_U128Z_free(struct LDKCOption_U128Z _res); /** - * Creates a new COption_u128Z which has the same data as `orig` + * Creates a new COption_U128Z which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCOption_u128Z COption_u128Z_clone(const struct LDKCOption_u128Z *NONNULL_PTR orig); - -/** - * Constructs a new COption_PaymentIdZ containing a crate::c_types::ThirtyTwoBytes - */ -struct LDKCOption_PaymentIdZ COption_PaymentIdZ_some(struct LDKThirtyTwoBytes o); +struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig); /** - * Constructs a new COption_PaymentIdZ containing nothing - */ -struct LDKCOption_PaymentIdZ COption_PaymentIdZ_none(void); - -/** - * Frees any resources associated with the crate::c_types::ThirtyTwoBytes, if we are in the Some state - */ -void COption_PaymentIdZ_free(struct LDKCOption_PaymentIdZ _res); - -/** - * Creates a new COption_PaymentIdZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. + * Frees the buffer pointed to by `data` if `datalen` is non-0. */ -struct LDKCOption_PaymentIdZ COption_PaymentIdZ_clone(const struct LDKCOption_PaymentIdZ *NONNULL_PTR orig); +void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res); /** * Constructs a new COption_PaymentFailureReasonZ containing a crate::lightning::events::PaymentFailureReason @@ -24498,37 +25886,6 @@ void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDec */ struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig); -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res); - -/** - * Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ in the success state. - */ -struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o); - -/** - * Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ in the error state. - */ -struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e); - -/** - * Checks if the given object is currently in the success state - */ -bool CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR o); - -/** - * Frees any resources used by the CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ. - */ -void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res); - -/** - * Creates a new CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ which has the same data as `orig` - * but with all dynamically-allocated buffers duplicated in new buffers. - */ -struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR orig); - /** * Creates a new CResult_SiPrefixBolt11ParseErrorZ in the success state. */ @@ -24624,30 +25981,30 @@ struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11 void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res); /** - * Creates a new CResult_PayeePubKeyErrorZ in the success state. + * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the success state. */ -struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o); +struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o); /** - * Creates a new CResult_PayeePubKeyErrorZ in the error state. + * Creates a new CResult_PayeePubKeySecp256k1ErrorZ in the error state. */ -struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e); +struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); /** * Checks if the given object is currently in the success state */ -bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o); +bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PayeePubKeyErrorZ. + * Frees any resources used by the CResult_PayeePubKeySecp256k1ErrorZ. */ -void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res); +void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res); /** - * Creates a new CResult_PayeePubKeyErrorZ which has the same data as `orig` + * Creates a new CResult_PayeePubKeySecp256k1ErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig); +struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig); /** * Frees the buffer pointed to by `data` if `datalen` is non-0. @@ -24732,11 +26089,6 @@ void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11Invo */ struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig); -/** - * Frees the buffer pointed to by `data` if `datalen` is non-0. - */ -void CVec_AddressZ_free(struct LDKCVec_AddressZ _res); - /** * Creates a new CResult_DescriptionCreationErrorZ in the success state. */ @@ -24946,30 +26298,108 @@ void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringD struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_PaymentIdPaymentErrorZ in the success state. + * Creates a new CResult_ReceiveTlvsDecodeErrorZ in the success state. */ -struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o); +struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_ok(struct LDKReceiveTlvs o); /** - * Creates a new CResult_PaymentIdPaymentErrorZ in the error state. + * Creates a new CResult_ReceiveTlvsDecodeErrorZ in the error state. */ -struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e); +struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_err(struct LDKDecodeError e); /** * Checks if the given object is currently in the success state */ -bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o); +bool CResult_ReceiveTlvsDecodeErrorZ_is_ok(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_PaymentIdPaymentErrorZ. + * Frees any resources used by the CResult_ReceiveTlvsDecodeErrorZ. */ -void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res); +void CResult_ReceiveTlvsDecodeErrorZ_free(struct LDKCResult_ReceiveTlvsDecodeErrorZ _res); /** - * Creates a new CResult_PaymentIdPaymentErrorZ which has the same data as `orig` + * Creates a new CResult_ReceiveTlvsDecodeErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig); +struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_clone(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_PaymentRelayDecodeErrorZ in the success state. + */ +struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o); + +/** + * Creates a new CResult_PaymentRelayDecodeErrorZ in the error state. + */ +struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_PaymentRelayDecodeErrorZ. + */ +void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res); + +/** + * Creates a new CResult_PaymentRelayDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_PaymentConstraintsDecodeErrorZ in the success state. + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o); + +/** + * Creates a new CResult_PaymentConstraintsDecodeErrorZ in the error state. + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_PaymentConstraintsDecodeErrorZ. + */ +void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res); + +/** + * Creates a new CResult_PaymentConstraintsDecodeErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_ThirtyTwoBytesPaymentErrorZ in the success state. + */ +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_ok(struct LDKThirtyTwoBytes o); + +/** + * Creates a new CResult_ThirtyTwoBytesPaymentErrorZ in the error state. + */ +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_err(struct LDKPaymentError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_ThirtyTwoBytesPaymentErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_ThirtyTwoBytesPaymentErrorZ. + */ +void CResult_ThirtyTwoBytesPaymentErrorZ_free(struct LDKCResult_ThirtyTwoBytesPaymentErrorZ _res); + +/** + * Creates a new CResult_ThirtyTwoBytesPaymentErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_NonePaymentErrorZ in the success state. @@ -24998,30 +26428,56 @@ void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res); struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig); /** - * Creates a new CResult_StringErrorZ in the success state. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ in the success state. */ -struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o); /** - * Creates a new CResult_StringErrorZ in the error state. + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ in the error state. */ -struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_err(struct LDKProbingError e); /** * Checks if the given object is currently in the success state */ -bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o); +bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR o); /** - * Frees any resources used by the CResult_StringErrorZ. + * Frees any resources used by the CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ. */ -void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res); +void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ _res); /** - * Creates a new CResult_StringErrorZ which has the same data as `orig` + * Creates a new CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ -struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig); +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR orig); + +/** + * Creates a new CResult_StrSecp256k1ErrorZ in the success state. + */ +struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o); + +/** + * Creates a new CResult_StrSecp256k1ErrorZ in the error state. + */ +struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_StrSecp256k1ErrorZ. + */ +void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res); + +/** + * Creates a new CResult_StrSecp256k1ErrorZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig); /** * Creates a new CResult_TxOutUtxoLookupErrorZ in the success state. @@ -25075,6 +26531,42 @@ void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ */ struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig); +/** + * Creates a new tuple which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_clone(const struct LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR orig); + +/** + * Creates a new C2Tuple_PublicKeyOnionMessageZ from the contained elements. + */ +struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_new(struct LDKPublicKey a, struct LDKOnionMessage b); + +/** + * Frees any resources used by the C2Tuple_PublicKeyOnionMessageZ. + */ +void C2Tuple_PublicKeyOnionMessageZ_free(struct LDKC2Tuple_PublicKeyOnionMessageZ _res); + +/** + * Creates a new CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ in the success state. + */ +struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_ok(struct LDKC2Tuple_PublicKeyOnionMessageZ o); + +/** + * Creates a new CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ in the error state. + */ +struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_err(struct LDKSendError e); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_is_ok(const struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ. + */ +void CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_free(struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ _res); + /** * Creates a new CResult_NoneSendErrorZ in the success state. */ @@ -25121,6 +26613,32 @@ void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res); */ struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig); +/** + * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ in the success state. + */ +struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o); + +/** + * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ in the error state. + */ +struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void); + +/** + * Checks if the given object is currently in the success state + */ +bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o); + +/** + * Frees any resources used by the CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ. + */ +void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res); + +/** + * Creates a new CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig); + /** * Creates a new CResult_BlindedPathDecodeErrorZ in the success state. */ @@ -25437,12 +26955,12 @@ struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_ * A receiver knowing the PublicKey (e.g. the node's id) and the message can be sure that the signature was generated by the caller. * Signatures are EC recoverable, meaning that given the message and the signature the PublicKey of the signer can be extracted. */ -struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); +struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); /** * Recovers the PublicKey of the signer of the message given the message and the signature. */ -struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); +struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); /** * Verifies a message was signed by a PrivateKey that derives to a given PublicKey, given a message, a signature, @@ -25455,11 +26973,92 @@ bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk); */ struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature); +/** + * Calls the free function if one is set + */ +void KVStore_free(struct LDKKVStore this_ptr); + /** * Calls the free function if one is set */ void Persister_free(struct LDKPersister this_ptr); +/** + * Read previously persisted [`ChannelMonitor`]s from the store. + */ +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); + +/** + * Frees any resources used by the MonitorUpdatingPersister, if is_owned is set and inner is non-NULL. + */ +void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj); + +/** + * Constructs a new [`MonitorUpdatingPersister`]. + * + * The `maximum_pending_updates` parameter controls how many updates may be stored before a + * [`MonitorUpdatingPersister`] consolidates updates by writing a full monitor. Note that + * consolidation will frequently occur with fewer updates than what you set here; this number + * is merely the maximum that may be stored. When setting this value, consider that for higher + * values of `maximum_pending_updates`: + * + * - [`MonitorUpdatingPersister`] will tend to write more [`ChannelMonitorUpdate`]s than + * [`ChannelMonitor`]s, approaching one [`ChannelMonitor`] write for every + * `maximum_pending_updates` [`ChannelMonitorUpdate`]s. + * - [`MonitorUpdatingPersister`] will issue deletes differently. Lazy deletes will come in + * \"waves\" for each [`ChannelMonitor`] write. A larger `maximum_pending_updates` means bigger, + * less frequent \"waves.\" + * - [`MonitorUpdatingPersister`] will potentially have more listing to do if you need to run + * [`MonitorUpdatingPersister::cleanup_stale_updates`]. + */ +MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); + +/** + * Reads all stored channel monitors, along with any stored updates for them. + * + * It is extremely important that your [`KVStore::read`] implementation uses the + * [`io::ErrorKind::NotFound`] variant correctly. For more information, please see the + * documentation for [`MonitorUpdatingPersister`]. + */ +MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator); + +/** + * Read a single channel monitor, along with any stored updates for it. + * + * It is extremely important that your [`KVStore::read`] implementation uses the + * [`io::ErrorKind::NotFound`] variant correctly. For more information, please see the + * documentation for [`MonitorUpdatingPersister`]. + * + * For `monitor_key`, channel storage keys be the channel's transaction ID and index, or + * [`OutPoint`], with an underscore `_` between them. For example, given: + * + * - Transaction ID: `deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef` + * - Index: `1` + * + * The correct `monitor_key` would be: + * `deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef_1` + * + * Loading a large number of monitors will be faster if done in parallel. You can use this + * function to accomplish this. Take care to limit the number of parallel readers. + */ +MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key); + +/** + * Cleans up stale updates for all monitors. + * + * This function works by first listing all monitors, and then for each of them, listing all + * updates. The updates that have an `update_id` less than or equal to than the stored monitor + * are deleted. The deletion can either be lazy or non-lazy based on the `lazy` flag; this will + * be passed to [`KVStore::remove`]. + */ +MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy); + +/** + * Constructs a new Persist which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned Persist must be freed before this_arg is + */ +struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg); + /** * Frees any resources used by the UntrustedString, if is_owned is set and inner is non-NULL. */ @@ -26980,9 +28579,9 @@ enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void); enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void); /** - * Utility method to constructs a new PermanentFailure-variant ChannelMonitorUpdateStatus + * Utility method to constructs a new UnrecoverableError-variant ChannelMonitorUpdateStatus */ -enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure(void); +enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void); /** * Checks if two ChannelMonitorUpdateStatuss contain equal inner contents. @@ -27008,12 +28607,12 @@ void WatchedOutput_free(struct LDKWatchedOutput this_obj); /** * First block where the transaction output may have been spent. */ -struct LDKCOption_BlockHashZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); /** * First block where the transaction output may have been spent. */ -void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_BlockHashZ val); +void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * Outpoint identifying the transaction output. @@ -27038,7 +28637,7 @@ void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_p /** * Constructs a new WatchedOutput given each field */ -MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_BlockHashZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); +MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); /** * Creates a copy of the WatchedOutput @@ -27329,20 +28928,15 @@ struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_ struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a); /** - * Utility method to constructs a new CommitmentTxConfirmed-variant MonitorEvent + * Utility method to constructs a new HolderForceClosed-variant MonitorEvent */ -struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a); +struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a); /** * Utility method to constructs a new Completed-variant MonitorEvent */ struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id); -/** - * Utility method to constructs a new UpdateFailed-variant MonitorEvent - */ -struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a); - /** * Checks if two MonitorEvents contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -27463,7 +29057,7 @@ struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_ * * panics if the given update is not the next update by update_id. */ -MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /** * Gets the update_id from the latest ChannelMonitorUpdate which was applied to this @@ -27474,13 +29068,13 @@ MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChanne /** * Gets the funding transaction outpoint of the channel this ChannelMonitor is monitoring for. */ -MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** * Gets a list of txids, with their output scripts (in the order they appear in the * transaction), which we must learn about spends of via block_connected(). */ -MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** * Loads the funding txo and outputs to watch into the given `chain::Filter` by repeatedly @@ -27512,6 +29106,69 @@ MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_m */ void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler); +/** + * Gets the counterparty's initial commitment transaction. The returned commitment + * transaction is unsigned. This is intended to be called during the initial persistence of + * the monitor (inside an implementation of [`Persist::persist_new_channel`]), to allow for + * watchtowers in the persistence pipeline to have enough data to form justice transactions. + * + * This is similar to [`Self::counterparty_commitment_txs_from_update`], except + * that for the initial commitment transaction, we don't have a corresponding update. + * + * This will only return `Some` for channel monitors that have been created after upgrading + * to LDK 0.0.117+. + * + * [`Persist::persist_new_channel`]: crate::chain::chainmonitor::Persist::persist_new_channel + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + +/** + * Gets all of the counterparty commitment transactions provided by the given update. This + * may be empty if the update doesn't include any new counterparty commitments. Returned + * commitment transactions are unsigned. + * + * This is provided so that watchtower clients in the persistence pipeline are able to build + * justice transactions for each counterparty commitment upon each update. It's intended to be + * used within an implementation of [`Persist::update_persisted_channel`], which is provided + * with a monitor and an update. Once revoked, signing a justice transaction can be done using + * [`Self::sign_to_local_justice_tx`]. + * + * It is expected that a watchtower client may use this method to retrieve the latest counterparty + * commitment transaction(s), and then hold the necessary data until a later update in which + * the monitor has been updated with the corresponding revocation data, at which point the + * monitor can sign the justice transaction. + * + * This will only return a non-empty list for monitor updates that have been created after + * upgrading to LDK 0.0.117+. Note that no restriction lies on the monitors themselves, which + * may have been created prior to upgrading. + * + * [`Persist::update_persisted_channel`]: crate::chain::chainmonitor::Persist::update_persisted_channel + */ +MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); + +/** + * Wrapper around [`EcdsaChannelSigner::sign_justice_revoked_output`] to make + * signing the justice transaction easier for implementors of + * [`chain::chainmonitor::Persist`]. On success this method returns the provided transaction + * signing the input at `input_idx`. This method will only produce a valid signature for + * a transaction spending the `to_local` output of a commitment transaction, i.e. this cannot + * be used for revoked HTLC outputs. + * + * `Value` is the value of the output being spent by the input at `input_idx`, committed + * in the BIP 143 signature. + * + * This method will only succeed if this monitor has received the revocation secret for the + * provided `commitment_number`. If a commitment number is provided that does not correspond + * to the commitment transaction being revoked, this will return a signed transaction, but + * the signature will not be valid. + * + * [`EcdsaChannelSigner::sign_justice_revoked_output`]: crate::sign::EcdsaChannelSigner::sign_justice_revoked_output + * [`Persist`]: crate::chain::chainmonitor::Persist + */ +MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number); + /** * Gets the `node_id` of the counterparty for this channel. * @@ -27523,21 +29180,20 @@ void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNU MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** - * Used by ChannelManager deserialization to broadcast the latest holder state if its copy of - * the Channel was out-of-date. + * Used by [`ChannelManager`] deserialization to broadcast the latest holder state if its copy + * of the channel state was out-of-date. * * You may also use this to broadcast the latest local commitment transaction, either because - * a monitor update failed with [`ChannelMonitorUpdateStatus::PermanentFailure`] or because we've - * fallen behind (i.e. we've received proof that our counterparty side knows a revocation - * secret we gave them that they shouldn't know). + * a monitor update failed or because we've fallen behind (i.e. we've received proof that our + * counterparty side knows a revocation secret we gave them that they shouldn't know). * * Broadcasting these transactions in the second case is UNSAFE, as they allow counterparty * side to punish you. Nevertheless you may want to broadcast them if counterparty doesn't * close channel with their commitment transaction after a substantial amount of time. Best * may be to contact the other node operator out-of-band to coordinate other options available - * to you. In any-case, the choice is up to you. + * to you. * - * [`ChannelMonitorUpdateStatus::PermanentFailure`]: super::ChannelMonitorUpdateStatus::PermanentFailure + * [`ChannelManager`]: crate::ln::channelmanager::ChannelManager */ MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger); @@ -27597,7 +29253,7 @@ MUST_USE_RES struct LDKCVec_TransactionOutputsZ ChannelMonitor_best_block_update /** * Returns the set of txids that should be monitored for re-organization out of the chain. */ -MUST_USE_RES struct LDKCVec_C2Tuple_TxidCOption_BlockHashZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** * Gets the latest best block which was connected either via the [`chain::Listen`] or @@ -27614,6 +29270,28 @@ MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct */ void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger); +/** + * Returns the descriptors for relevant outputs (i.e., those that we can spend) within the + * transaction if they exist and the transaction has at least [`ANTI_REORG_DELAY`] + * confirmations. For [`SpendableOutputDescriptor::DelayedPaymentOutput`] descriptors to be + * returned, the transaction must have at least `max(ANTI_REORG_DELAY, to_self_delay)` + * confirmations. + * + * Descriptors returned by this method are primarily exposed via [`Event::SpendableOutputs`] + * once they are no longer under reorg risk. This method serves as a way to retrieve these + * descriptors at a later time, either for historical purposes, or to replay any + * missed/unhandled descriptors. For the purpose of gathering historical records, if the + * channel close has fully resolved (i.e., [`ChannelMonitor::get_claimable_balances`] returns + * an empty set), you can retrieve all spendable outputs by providing all descendant spending + * transactions starting from the channel's funding transaction and going down three levels. + * + * `tx` is a transaction we'll scan the outputs of. Any transaction can be provided. If any + * outputs which can be spent by us are found, at least one descriptor is returned. + * + * `confirmation_height` must be the height of the block in which `tx` was included in. + */ +MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height); + /** * Gets the balances in this channel which are either claimable by us if we were to * force-close the channel now or which are claimable on-chain (possibly awaiting @@ -27625,8 +29303,7 @@ void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *N * confirmations on the claim transaction. * * Note that for `ChannelMonitors` which track a channel which went on-chain with versions of - * LDK prior to 0.0.111, balances may not be fully captured if our counterparty broadcasted - * a revoked state. + * LDK prior to 0.0.111, not all or excess balances may be included. * * See [`Balance`] for additional details on the types of claimable balances which * may be returned here and their meanings. @@ -27634,9 +29311,9 @@ void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *N MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /** - * Read a C2Tuple_BlockHashChannelMonitorZ from a byte array, created by C2Tuple_BlockHashChannelMonitorZ_write + * Read a C2Tuple_ThirtyTwoBytesChannelMonitorZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelMonitorZ_write */ -struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); /** * Frees any resources used by the OutPoint, if is_owned is set and inner is non-NULL. @@ -27700,25 +29377,35 @@ struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj); */ struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser); +/** + * Frees any resources used by the FailureCode + */ +void FailureCode_free(struct LDKFailureCode this_ptr); + /** * Creates a copy of the FailureCode */ -enum LDKFailureCode FailureCode_clone(const enum LDKFailureCode *NONNULL_PTR orig); +struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig); /** * Utility method to constructs a new TemporaryNodeFailure-variant FailureCode */ -enum LDKFailureCode FailureCode_temporary_node_failure(void); +struct LDKFailureCode FailureCode_temporary_node_failure(void); /** * Utility method to constructs a new RequiredNodeFeatureMissing-variant FailureCode */ -enum LDKFailureCode FailureCode_required_node_feature_missing(void); +struct LDKFailureCode FailureCode_required_node_feature_missing(void); /** * Utility method to constructs a new IncorrectOrUnknownPaymentDetails-variant FailureCode */ -enum LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); +struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); + +/** + * Utility method to constructs a new InvalidOnionPayload-variant FailureCode + */ +struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a); /** * Frees any resources used by the ChannelManager, if is_owned is set and inner is non-NULL. @@ -27906,6 +29593,8 @@ void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounter /** * Constructs a new ChannelCounterparty given each field + * + * Note that forwarding_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg); @@ -28110,16 +29799,28 @@ struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const s void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /** - * The `user_channel_id` passed in to create_channel, or a random value if the channel was - * inbound. This may be zero for inbound channels serialized with LDK versions prior to - * 0.0.113. + * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound + * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. This may be zero for objects + * serialized with LDK versions prior to 0.0.113. + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /** - * The `user_channel_id` passed in to create_channel, or a random value if the channel was - * inbound. This may be zero for inbound channels serialized with LDK versions prior to - * 0.0.113. + * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound + * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. This may be zero for objects + * serialized with LDK versions prior to 0.0.113. + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels */ void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val); @@ -28439,6 +30140,10 @@ void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, s /** * Constructs a new ChannelDetails given each field + * + * Note that funding_txo_arg (or a relevant inner pointer) may be NULL or all-0s to represent None + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None + * Note that config_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg); @@ -28513,20 +30218,25 @@ void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr); */ struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig); +/** + * Utility method to constructs a new AwaitingInvoice-variant RecentPaymentDetails + */ +struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id); + /** * Utility method to constructs a new Pending-variant RecentPaymentDetails */ -struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); +struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); /** * Utility method to constructs a new Fulfilled-variant RecentPaymentDetails */ -struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKCOption_PaymentHashZ payment_hash); +struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash); /** * Utility method to constructs a new Abandoned-variant RecentPaymentDetails */ -struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_hash); +struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash); /** * Frees any resources used by the PhantomRouteHints, if is_owned is set and inner is non-NULL. @@ -28634,7 +30344,7 @@ MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configurati * * Note that override_config (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKCResult__u832APIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config); /** * Gets the list of open channels, in random order. See [`ChannelDetails`] field documentation for @@ -28799,9 +30509,8 @@ void ChannelManager_force_close_all_channels_without_broadcasting_txn(const stru * In general, a path may raise: * * [`APIError::InvalidRoute`] when an invalid route or forwarding parameter (cltv_delta, fee, * node public key) is specified. - * * [`APIError::ChannelUnavailable`] if the next-hop channel is not available for updates - * (including due to previous monitor update failure or new permanent monitor update - * failure). + * * [`APIError::ChannelUnavailable`] if the next-hop channel is not available as it has been + * closed, doesn't exist, or the peer is currently disconnected. * * [`APIError::MonitorUpdateInProgress`] if a new monitor update failure prevented sending the * relevant updates. * @@ -28825,10 +30534,12 @@ MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payme MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); /** - * Signals that no further retries for the given payment should occur. Useful if you have a + * Signals that no further attempts for the given payment should occur. Useful if you have a * pending outbound payment with retries remaining, but wish to stop retrying the payment before * retries are exhausted. * + * # Event Generation + * * If no [`Event::PaymentFailed`] event had been generated before, one will be generated as soon * as there are no remaining pending HTLCs for this payment. * @@ -28836,11 +30547,10 @@ MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_pay * wait until you receive either a [`Event::PaymentFailed`] or [`Event::PaymentSent`] event to * determine the ultimate status of a payment. * - * If an [`Event::PaymentFailed`] event is generated and we restart without this - * [`ChannelManager`] having been persisted, another [`Event::PaymentFailed`] may be generated. + * # Restart Behavior * - * [`Event::PaymentFailed`]: events::Event::PaymentFailed - * [`Event::PaymentSent`]: events::Event::PaymentSent + * If an [`Event::PaymentFailed`] is generated and we restart without first persisting the + * [`ChannelManager`], another [`Event::PaymentFailed`] may be generated. */ void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id); @@ -28859,7 +30569,7 @@ void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR * * [`send_payment`]: Self::send_payment */ -MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); /** * Similar to [`ChannelManager::send_spontaneous_payment`], but will automatically find a route @@ -28870,14 +30580,40 @@ MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_sen * * [`PaymentParameters::for_keysend`]: crate::routing::router::PaymentParameters::for_keysend */ -MUST_USE_RES struct LDKCResult_PaymentHashRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); /** * Send a payment that is probing the given route for liquidity. We calculate the * [`PaymentHash`] of probes based on a static secret and a random [`PaymentId`], which allows * us to easily discern them from real payments. */ -MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); +MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); + +/** + * Sends payment probes over all paths of a route that would be used to pay the given + * amount to the given `node_id`. + * + * See [`ChannelManager::send_preflight_probes`] for more information. + */ +MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier); + +/** + * Sends payment probes over all paths of a route that would be used to pay a route found + * according to the given [`RouteParameters`]. + * + * This may be used to send \"pre-flight\" probes, i.e., to train our scorer before conducting + * the actual payment. Note this is only useful if there likely is sufficient time for the + * probe to settle before sending out the actual payment, e.g., when waiting for user + * confirmation in a wallet UI. + * + * Otherwise, there is a chance the probe could take up some liquidity needed to complete the + * actual payment. Users should therefore be cautious and might avoid sending probes if + * liquidity is scarce and/or they don't expect the probe to return before they send the + * payment. To mitigate this issue, channels with available liquidity less than the required + * amount times the given `liquidity_limit_multiplier` won't be used to send pre-flight + * probes. If `None` is given as `liquidity_limit_multiplier`, it defaults to `3`. + */ +MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier); /** * Call this upon creation of a funding transaction for the given channel. @@ -28913,6 +30649,20 @@ MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ */ MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction); +/** + * Call this upon creation of a batch funding transaction for the given channels. + * + * Return values are identical to [`Self::funding_transaction_generated`], respective to + * each individual channel and transaction output. + * + * Do NOT broadcast the funding transaction yourself. This batch funding transcaction + * will only be broadcast when we have safely received and persisted the counterparty's + * signature for each channel. + * + * If there is an error, all channels in the batch are to be considered closed. + */ +MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction); + /** * Atomically applies partial updates to the [`ChannelConfig`] of the given channels. * @@ -29055,7 +30805,7 @@ void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_ * * See [`FailureCode`] for valid failure codes. */ -void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], enum LDKFailureCode failure_code); +void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code); /** * Provides a payment preimage in response to [`Event::PaymentClaimable`], generating any @@ -29071,15 +30821,33 @@ void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManag * event matches your expectation. If you fail to do so and call this method, you may provide * the sender \"proof-of-payment\" when they did not fulfill the full expected payment. * + * This function will fail the payment if it has custom TLVs with even type numbers, as we + * will assume they are unknown. If you intend to accept even custom TLVs, you should use + * [`claim_funds_with_known_custom_tlvs`]. + * * [`Event::PaymentClaimable`]: crate::events::Event::PaymentClaimable * [`Event::PaymentClaimable::claim_deadline`]: crate::events::Event::PaymentClaimable::claim_deadline * [`Event::PaymentClaimed`]: crate::events::Event::PaymentClaimed * [`process_pending_events`]: EventsProvider::process_pending_events * [`create_inbound_payment`]: Self::create_inbound_payment * [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash + * [`claim_funds_with_known_custom_tlvs`]: Self::claim_funds_with_known_custom_tlvs */ void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); +/** + * This is a variant of [`claim_funds`] that allows accepting a payment with custom TLVs with + * even type numbers. + * + * # Note + * + * You MUST check you've understood all even TLVs before using this to + * claim, otherwise you may unintentionally agree to some protocol you do not understand. + * + * [`claim_funds`]: Self::claim_funds + */ +void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); + /** * Gets the node_id held by this ChannelManager */ @@ -29161,7 +30929,7 @@ MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_chann * [`PaymentPurpose::InvoicePayment::payment_preimage`]: events::PaymentPurpose::InvoicePayment::payment_preimage * [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash */ -MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); +MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /** * Gets a [`PaymentSecret`] for a given [`PaymentHash`], for which the payment preimage is @@ -29211,7 +30979,7 @@ MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelMan * [`create_inbound_payment`]: Self::create_inbound_payment * [`PaymentClaimable`]: events::Event::PaymentClaimable */ -MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); /** * Gets an LDK-generated payment preimage from a payment hash and payment secret that were @@ -29219,7 +30987,7 @@ MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_ * * [`create_inbound_payment`]: Self::create_inbound_payment */ -MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); /** * Gets a fake short channel id for use in receiving [phantom node payments]. These fake scids @@ -29277,13 +31045,21 @@ struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNUL struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg); /** - * Gets a [`Future`] that completes when this [`ChannelManager`] needs to be persisted. + * Gets a [`Future`] that completes when this [`ChannelManager`] may need to be persisted or + * may have events that need processing. + * + * In order to check if this [`ChannelManager`] needs persisting, call + * [`Self::get_and_clear_needs_persistence`]. * * Note that callbacks registered on the [`Future`] MUST NOT call back into this * [`ChannelManager`] and should instead register actions to be taken later. - * */ -MUST_USE_RES struct LDKFuture ChannelManager_get_persistable_update_future(const struct LDKChannelManager *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg); + +/** + * Returns true if this [`ChannelManager`] needs to be persisted. + */ +MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg); /** * Gets the latest best block which was connected either via the [`chain::Listen`] or @@ -29515,9 +31291,9 @@ void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors); /** - * Read a C2Tuple_BlockHashChannelManagerZ from a byte array, created by C2Tuple_BlockHashChannelManagerZ_write + * Read a C2Tuple_ThirtyTwoBytesChannelManagerZ from a byte array, created by C2Tuple_ThirtyTwoBytesChannelManagerZ_write */ -struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); +struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); /** * Frees any resources used by the ExpandedKey, if is_owned is set and inner is non-NULL. @@ -29548,7 +31324,7 @@ MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material) * [phantom node payments]: crate::sign::PhantomKeysManager * [`NodeSigner::get_inbound_payment_key_material`]: crate::sign::NodeSigner::get_inbound_payment_key_material */ -struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); +struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /** * Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash`], @@ -29562,7 +31338,7 @@ struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDK * * [phantom node payments]: crate::sign::PhantomKeysManager */ -struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); +struct LDKCResult_ThirtyTwoBytesNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /** * Frees any resources used by the DecodeError @@ -29637,14 +31413,14 @@ void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatu * * Returns a copy of the field. */ -struct LDKCOption_CVec_ChainHashZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_ThirtyTwoBytesZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr); /** * Indicates chains the sender is interested in. * * If there are no common chains, the connection will be closed. */ -void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ChainHashZZ val); +void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ThirtyTwoBytesZZ val); /** * The receipient's network address. @@ -29654,7 +31430,7 @@ void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_C * public IPv4 address (NAT) and use that for a [`NodeAnnouncement`] update message containing * the new address. */ -struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr); +struct LDKCOption_SocketAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr); /** * The receipient's network address. @@ -29664,12 +31440,12 @@ struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKIn * public IPv4 address (NAT) and use that for a [`NodeAnnouncement`] update message containing * the new address. */ -void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val); +void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val); /** * Constructs a new Init given each field */ -MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ChainHashZZ networks_arg, struct LDKCOption_NetAddressZ remote_network_address_arg); +MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ThirtyTwoBytesZZ networks_arg, struct LDKCOption_SocketAddressZ remote_network_address_arg); /** * Creates a copy of the Init @@ -30067,12 +31843,12 @@ void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, /** * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close */ -struct LDKCOption_ScriptZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); /** * A request to pre-set the to-sender output's `scriptPubkey` for when we collaboratively close */ -void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent @@ -30096,8 +31872,10 @@ void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, s /** * Constructs a new OpenChannel given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); +MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); /** * Creates a copy of the OpenChannel @@ -30316,13 +32094,13 @@ void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_p * Optionally, a request to pre-set the to-channel-initiator output's scriptPubkey for when we * collaboratively close */ -struct LDKCOption_ScriptZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); /** * Optionally, a request to pre-set the to-channel-initiator output's scriptPubkey for when we * collaboratively close */ -void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent. If none is set, we derive the channel @@ -30354,8 +32132,10 @@ void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL /** * Constructs a new OpenChannelV2 given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); +MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); /** * Creates a copy of the OpenChannelV2 @@ -30517,12 +32297,12 @@ void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNU /** * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close */ -struct LDKCOption_ScriptZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); /** * A request to pre-set the to-sender output's scriptPubkey for when we collaboratively close */ -void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent. @@ -30548,8 +32328,10 @@ void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_pt /** * Constructs a new AcceptChannel given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); +MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); /** * Creates a copy of the AcceptChannel @@ -30728,13 +32510,13 @@ void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 * * Optionally, a request to pre-set the to-channel-acceptor output's scriptPubkey for when we * collaboratively close */ -struct LDKCOption_ScriptZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); +struct LDKCOption_CVec_u8ZZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); /** * Optionally, a request to pre-set the to-channel-acceptor output's scriptPubkey for when we * collaboratively close */ -void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_ScriptZ val); +void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /** * The channel type that this channel will represent. If none is set, we derive the channel @@ -30770,8 +32552,10 @@ void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NON /** * Constructs a new AcceptChannelV2 given each field + * + * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_ScriptZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); +MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); /** * Creates a copy of the AcceptChannelV2 @@ -30823,17 +32607,17 @@ void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_P /** * The signature of the channel initiator (funder) on the initial commitment transaction */ -struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr); +struct LDKECDSASignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr); /** * The signature of the channel initiator (funder) on the initial commitment transaction */ -void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val); +void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Constructs a new FundingCreated given each field */ -MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKSignature signature_arg); +MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg); /** * Creates a copy of the FundingCreated @@ -30865,17 +32649,17 @@ void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, /** * The signature of the channel acceptor (fundee) on the initial commitment transaction */ -struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr); +struct LDKECDSASignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr); /** * The signature of the channel acceptor (fundee) on the initial commitment transaction */ -void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val); +void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Constructs a new FundingSigned given each field */ -MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg); +MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg); /** * Creates a copy of the FundingSigned @@ -31529,12 +33313,12 @@ void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_pt /** * A signature on the closing transaction */ -struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr); +struct LDKECDSASignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr); /** * A signature on the closing transaction */ -void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val); +void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The minimum and maximum fees which the sender is willing to accept, provided only by new @@ -31554,8 +33338,10 @@ void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, /** * Constructs a new ClosingSigned given each field + * + * Note that fee_range_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); +MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); /** * Creates a copy of the ClosingSigned @@ -31667,6 +33453,21 @@ struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage */ void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val); +/** + * The full onion packet including hop data, pubkey, and hmac + */ +struct LDKPacket OnionMessage_get_onion_routing_packet(const struct LDKOnionMessage *NONNULL_PTR this_ptr); + +/** + * The full onion packet including hop data, pubkey, and hmac + */ +void OnionMessage_set_onion_routing_packet(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPacket val); + +/** + * Constructs a new OnionMessage given each field + */ +MUST_USE_RES struct LDKOnionMessage OnionMessage_new(struct LDKPublicKey blinding_point_arg, struct LDKPacket onion_routing_packet_arg); + /** * Creates a copy of the OnionMessage */ @@ -31833,29 +33634,29 @@ void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR thi /** * A signature on the commitment transaction */ -struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); +struct LDKECDSASignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); /** * A signature on the commitment transaction */ -void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val); +void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Signatures on the HTLC transactions * * Returns a copy of the field. */ -struct LDKCVec_SignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); +struct LDKCVec_ECDSASignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); /** * Signatures on the HTLC transactions */ -void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val); +void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val); /** * Constructs a new CommitmentSigned given each field */ -MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg); +MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg); /** * Creates a copy of the CommitmentSigned @@ -32023,17 +33824,17 @@ void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelRee /** * The next funding transaction ID */ -struct LDKCOption_TxidZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); /** * The next funding transaction ID */ -void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_TxidZ val); +void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * Constructs a new ChannelReestablish given each field */ -MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_TxidZ next_funding_txid_arg); +MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg); /** * Creates a copy of the ChannelReestablish @@ -32075,27 +33876,27 @@ void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignature /** * A signature by the node key */ -struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); +struct LDKECDSASignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); /** * A signature by the node key */ -void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val); +void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * A signature by the funding key */ -struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); +struct LDKECDSASignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); /** * A signature by the funding key */ -void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val); +void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Constructs a new AnnouncementSignatures given each field */ -MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg); +MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg); /** * Creates a copy of the AnnouncementSignatures @@ -32110,55 +33911,98 @@ struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAn bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b); /** - * Frees any resources used by the NetAddress + * Frees any resources used by the SocketAddress + */ +void SocketAddress_free(struct LDKSocketAddress this_ptr); + +/** + * Creates a copy of the SocketAddress + */ +struct LDKSocketAddress SocketAddress_clone(const struct LDKSocketAddress *NONNULL_PTR orig); + +/** + * Utility method to constructs a new TcpIpV4-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_tcp_ip_v4(struct LDKFourBytes addr, uint16_t port); + +/** + * Utility method to constructs a new TcpIpV6-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_tcp_ip_v6(struct LDKSixteenBytes addr, uint16_t port); + +/** + * Utility method to constructs a new OnionV2-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_onion_v2(struct LDKTwelveBytes a); + +/** + * Utility method to constructs a new OnionV3-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port); + +/** + * Utility method to constructs a new Hostname-variant SocketAddress + */ +struct LDKSocketAddress SocketAddress_hostname(struct LDKHostname hostname, uint16_t port); + +/** + * Checks if two SocketAddresss contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool SocketAddress_eq(const struct LDKSocketAddress *NONNULL_PTR a, const struct LDKSocketAddress *NONNULL_PTR b); + +/** + * Serialize the SocketAddress object into a byte array which can be read by SocketAddress_read */ -void NetAddress_free(struct LDKNetAddress this_ptr); +struct LDKCVec_u8Z SocketAddress_write(const struct LDKSocketAddress *NONNULL_PTR obj); /** - * Creates a copy of the NetAddress + * Read a SocketAddress from a byte array, created by SocketAddress_write */ -struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig); +struct LDKCResult_SocketAddressDecodeErrorZ SocketAddress_read(struct LDKu8slice ser); /** - * Utility method to constructs a new IPv4-variant NetAddress + * Creates a copy of the SocketAddressParseError */ -struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_clone(const enum LDKSocketAddressParseError *NONNULL_PTR orig); /** - * Utility method to constructs a new IPv6-variant NetAddress + * Utility method to constructs a new SocketAddrParse-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_socket_addr_parse(void); /** - * Utility method to constructs a new OnionV2-variant NetAddress + * Utility method to constructs a new InvalidInput-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a); +enum LDKSocketAddressParseError SocketAddressParseError_invalid_input(void); /** - * Utility method to constructs a new OnionV3-variant NetAddress + * Utility method to constructs a new InvalidPort-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_invalid_port(void); /** - * Utility method to constructs a new Hostname-variant NetAddress + * Utility method to constructs a new InvalidOnionV3-variant SocketAddressParseError */ -struct LDKNetAddress NetAddress_hostname(struct LDKHostname hostname, uint16_t port); +enum LDKSocketAddressParseError SocketAddressParseError_invalid_onion_v3(void); /** - * Checks if two NetAddresss contain equal inner contents. + * Checks if two SocketAddressParseErrors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. */ -bool NetAddress_eq(const struct LDKNetAddress *NONNULL_PTR a, const struct LDKNetAddress *NONNULL_PTR b); +bool SocketAddressParseError_eq(const enum LDKSocketAddressParseError *NONNULL_PTR a, const enum LDKSocketAddressParseError *NONNULL_PTR b); /** - * Serialize the NetAddress object into a byte array which can be read by NetAddress_read + * Parses an OnionV3 host and port into a [`SocketAddress::OnionV3`]. + * + * The host part must end with \".onion\". */ -struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj); +struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port); /** - * Read a NetAddress from a byte array, created by NetAddress_write + * Read a SocketAddress object from a string */ -struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser); +struct LDKCResult_SocketAddressSocketAddressParseErrorZ SocketAddress_from_str(struct LDKStr s); /** * Frees any resources used by the UnsignedGossipMessage @@ -32256,12 +34100,12 @@ void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONN * * Returns a copy of the field. */ -struct LDKCVec_NetAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); +struct LDKCVec_SocketAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); /** * List of addresses on which this node is reachable */ -void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val); +void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_SocketAddressZ val); /** * Creates a copy of the UnsignedNodeAnnouncement @@ -32283,12 +34127,12 @@ void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj); /** * The signature by the node key */ -struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr); /** * The signature by the node key */ -void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The actual content of the announcement @@ -32303,7 +34147,7 @@ void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ /** * Constructs a new NodeAnnouncement given each field */ -MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg); +MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg); /** * Creates a copy of the NodeAnnouncement @@ -32392,6 +34236,29 @@ struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKU */ void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val); +/** + * Excess data which was signed as a part of the message which we do not (yet) understand how + * to decode. + * + * This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. + * + * Returns a copy of the field. + */ +struct LDKCVec_u8Z UnsignedChannelAnnouncement_get_excess_data(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr); + +/** + * Excess data which was signed as a part of the message which we do not (yet) understand how + * to decode. + * + * This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. + */ +void UnsignedChannelAnnouncement_set_excess_data(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + +/** + * Constructs a new UnsignedChannelAnnouncement given each field + */ +MUST_USE_RES struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_new(struct LDKChannelFeatures features_arg, struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, struct LDKNodeId node_id_1_arg, struct LDKNodeId node_id_2_arg, struct LDKNodeId bitcoin_key_1_arg, struct LDKNodeId bitcoin_key_2_arg, struct LDKCVec_u8Z excess_data_arg); + /** * Creates a copy of the UnsignedChannelAnnouncement */ @@ -32412,42 +34279,42 @@ void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj); /** * Authentication of the announcement by the first public node */ -struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Authentication of the announcement by the first public node */ -void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Authentication of the announcement by the second public node */ -struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Authentication of the announcement by the second public node */ -void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Proof of funding UTXO ownership by the first public node */ -struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Proof of funding UTXO ownership by the first public node */ -void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Proof of funding UTXO ownership by the second public node */ -struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr); /** * Proof of funding UTXO ownership by the second public node */ -void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The actual announcement @@ -32462,7 +34329,7 @@ void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR /** * Constructs a new ChannelAnnouncement given each field */ -MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg); +MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKECDSASignature node_signature_1_arg, struct LDKECDSASignature node_signature_2_arg, struct LDKECDSASignature bitcoin_signature_1_arg, struct LDKECDSASignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg); /** * Creates a copy of the ChannelAnnouncement @@ -32632,12 +34499,12 @@ void ChannelUpdate_free(struct LDKChannelUpdate this_obj); /** * A signature of the channel update */ -struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr); +struct LDKECDSASignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr); /** * A signature of the channel update */ -void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val); +void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * The actual channel update @@ -32652,7 +34519,7 @@ void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, s /** * Constructs a new ChannelUpdate given each field */ -MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg); +MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg); /** * Creates a copy of the ChannelUpdate @@ -33083,6 +34950,8 @@ void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_ /** * Constructs a new CommitmentUpdate given each field + * + * Note that update_fee_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKCommitmentUpdate CommitmentUpdate_new(struct LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, struct LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, struct LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, struct LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, struct LDKUpdateFee update_fee_arg, struct LDKCommitmentSigned commitment_signed_arg); @@ -33780,7 +35649,7 @@ MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler mess * The returned `Option`s will only be `Some` if an address had been previously given via * [`Self::new_outbound_connection`] or [`Self::new_inbound_connection`]. */ -MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg); /** * Indicates a new outbound connection has been established to a node with the given `node_id` @@ -33799,7 +35668,7 @@ MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_g * * [`socket_disconnected`]: PeerManager::socket_disconnected */ -MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address); +MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); /** * Indicates a new inbound connection has been established to a node with an optional remote @@ -33818,7 +35687,7 @@ MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound * * [`socket_disconnected`]: PeerManager::socket_disconnected */ -MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address); +MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); /** * Indicates that there is room to write data to the given socket descriptor. @@ -33932,7 +35801,7 @@ void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR th * * [`get_and_clear_pending_msg_events`]: MessageSendEventsProvider::get_and_clear_pending_msg_events */ -void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses); +void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_SocketAddressZ addresses); /** * Gets the weight for an HTLC-Success transaction. @@ -34247,6 +36116,11 @@ MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicK */ struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the ChannelPublicKeys. + */ +uint64_t ChannelPublicKeys_hash(const struct LDKChannelPublicKeys *NONNULL_PTR o); + /** * Checks if two ChannelPublicKeyss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -34283,6 +36157,12 @@ MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_from_channel_static_keys(st */ struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key); +/** + * Returns the script for the counterparty's output on a holder's commitment transaction based on + * the channel type. + */ +struct LDKCVec_u8Z get_counterparty_payment_script(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey payment_key); + /** * Frees any resources used by the HTLCOutputInCommitment, if is_owned is set and inner is non-NULL. */ @@ -34403,7 +36283,7 @@ struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32 /** * Returns the witness required to satisfy and spend a HTLC input. */ -struct LDKWitness build_htlc_input_witness(struct LDKSignature local_sig, struct LDKSignature remote_sig, struct LDKCOption_PaymentPreimageZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); +struct LDKWitness build_htlc_input_witness(struct LDKECDSASignature local_sig, struct LDKECDSASignature remote_sig, struct LDKCOption_ThirtyTwoBytesZ preimage, struct LDKu8slice redeem_script, const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features); /** * Gets the witnessScript for the to_remote output when anchors are enabled. @@ -34423,7 +36303,7 @@ struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey); /** * Returns the witness required to satisfy and spend an anchor input. */ -struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKSignature funding_sig); +struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKECDSASignature funding_sig); /** * Frees any resources used by the ChannelTransactionParameters, if is_owned is set and inner is non-NULL. @@ -34506,6 +36386,9 @@ void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTra /** * Constructs a new ChannelTransactionParameters given each field + * + * Note that counterparty_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None + * Note that funding_outpoint_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg, struct LDKChannelTypeFeatures channel_type_features_arg); @@ -34514,6 +36397,11 @@ MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters */ struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the ChannelTransactionParameters. + */ +uint64_t ChannelTransactionParameters_hash(const struct LDKChannelTransactionParameters *NONNULL_PTR o); + /** * Checks if two ChannelTransactionParameterss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -34556,6 +36444,11 @@ MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChan */ struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the CounterpartyChannelTransactionParameters. + */ +uint64_t CounterpartyChannelTransactionParameters_hash(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR o); + /** * Checks if two CounterpartyChannelTransactionParameterss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -34651,24 +36544,24 @@ void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this /** * Our counterparty's signature for the transaction */ -struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); +struct LDKECDSASignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); /** * Our counterparty's signature for the transaction */ -void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val); +void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * All non-dust counterparty HTLC signatures, in the order they appear in the transaction * * Returns a copy of the field. */ -struct LDKCVec_SignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); +struct LDKCVec_ECDSASignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr); /** * All non-dust counterparty HTLC signatures, in the order they appear in the transaction */ -void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val); +void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val); /** * Creates a copy of the HolderCommitmentTransaction @@ -34689,7 +36582,7 @@ struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransa * Create a new holder transaction with the given counterparty signatures. * The funding keys are used to figure out which signature should go first when building the transaction for broadcast. */ -MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key); +MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKECDSASignature counterparty_sig, struct LDKCVec_ECDSASignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key); /** * Frees any resources used by the BuiltCommitmentTransaction, if is_owned is set and inner is non-NULL. @@ -34752,12 +36645,12 @@ MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all /** * Signs the counterparty's commitment transaction. */ -MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); +MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); /** * Signs the holder commitment transaction because we are about to broadcast it. */ -MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source); +MUST_USE_RES struct LDKECDSASignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source); /** * Frees any resources used by the ClosingTransaction, if is_owned is set and inner is non-NULL. @@ -34847,7 +36740,7 @@ MUST_USE_RES struct LDKThirtyTwoBytes TrustedClosingTransaction_get_sighash_all( * Sign a transaction, either because we are counter-signing the counterparty's transaction or * because we are about to broadcast a holder transaction. */ -MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); +MUST_USE_RES struct LDKECDSASignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis); /** * Frees any resources used by the CommitmentTransaction, if is_owned is set and inner is non-NULL. @@ -34942,7 +36835,35 @@ MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_ * * This function is only valid in the holder commitment context, it always uses EcdsaSighashType::All. */ -MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source); +MUST_USE_RES struct LDKCResult_CVec_ECDSASignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source); + +/** + * Returns the index of the revokeable output, i.e. the `to_local` output sending funds to + * the broadcaster, in the built transaction, if any exists. + * + * There are two cases where this may return `None`: + * - The balance of the revokeable output is below the dust limit (only found on commitments + * early in the channel's lifetime, i.e. before the channel reserve is met). + * - This commitment was created before LDK 0.0.117. In this case, the + * commitment transaction previously didn't contain enough information to locate the + * revokeable output. + */ +MUST_USE_RES struct LDKCOption_usizeZ TrustedCommitmentTransaction_revokeable_output_index(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg); + +/** + * Helper method to build an unsigned justice transaction spending the revokeable + * `to_local` output to a destination script. Fee estimation accounts for the expected + * revocation witness data that will be added when signed. + * + * This method will error if the given fee rate results in a fee greater than the value + * of the output being spent, or if there exists no revokeable `to_local` output on this + * commitment transaction. See [`Self::revokeable_output_index`] for more details. + * + * The built transaction will allow fee bumping with RBF, and this method takes + * `feerate_per_kw` as an input such that multiple copies of a justice transaction at different + * fee rates may be built. + */ +MUST_USE_RES struct LDKCResult_TransactionNoneZ TrustedCommitmentTransaction_build_to_local_justice_tx(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, uint64_t feerate_per_kw, struct LDKCVec_u8Z destination_script); /** * Commitment transaction numbers which appear in the transactions themselves are XOR'd with a @@ -35123,6 +37044,28 @@ MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFe */ MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35161,6 +37104,28 @@ MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFe */ MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35199,6 +37164,28 @@ MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKCha */ MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35237,6 +37224,28 @@ MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct */ MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35275,6 +37284,28 @@ MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOffer */ MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35313,6 +37344,28 @@ MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct */ MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35351,6 +37404,28 @@ MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct */ MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35389,6 +37464,28 @@ MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDK */ MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -35427,6 +37524,28 @@ MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LD */ MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); +/** + * Sets a required feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will + * be set instead (i.e., `bit - 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + +/** + * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined + * by [BOLT 9]. + * + * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be + * set instead (i.e., `bit + 1`). + * + * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md + */ +MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit); + /** * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined * by [bLIP 2] or if it is a known `T` feature. @@ -36114,6 +38233,66 @@ MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitF */ MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg); +/** + * Set this feature as optional. + */ +void InitFeatures_set_taproot_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as required. + */ +void InitFeatures_set_taproot_required(struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is supported. + */ +MUST_USE_RES bool InitFeatures_supports_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as optional. + */ +void NodeFeatures_set_taproot_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as required. + */ +void NodeFeatures_set_taproot_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is supported. + */ +MUST_USE_RES bool NodeFeatures_supports_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as optional. + */ +void ChannelTypeFeatures_set_taproot_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + +/** + * Set this feature as required. + */ +void ChannelTypeFeatures_set_taproot_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is supported. + */ +MUST_USE_RES bool ChannelTypeFeatures_supports_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is required. + */ +MUST_USE_RES bool InitFeatures_requires_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is required. + */ +MUST_USE_RES bool NodeFeatures_requires_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg); + +/** + * Checks if this feature is required. + */ +MUST_USE_RES bool ChannelTypeFeatures_requires_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg); + /** * Set this feature as optional. */ @@ -36464,7 +38643,7 @@ struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig); /** * Utility method to constructs a new Attempts-variant Retry */ -struct LDKRetry Retry_attempts(uintptr_t a); +struct LDKRetry Retry_attempts(uint32_t a); /** * Utility method to constructs a new Timeout-variant Retry @@ -36482,6 +38661,16 @@ bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNU */ uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o); +/** + * Serialize the Retry object into a byte array which can be read by Retry_read + */ +struct LDKCVec_u8Z Retry_write(const struct LDKRetry *NONNULL_PTR obj); + +/** + * Read a Retry from a byte array, created by Retry_write + */ +struct LDKCResult_RetryDecodeErrorZ Retry_read(struct LDKu8slice ser); + /** * Creates a copy of the RetryableSendFailure */ @@ -36543,6 +38732,38 @@ struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void); */ struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id); +/** + * Checks if two PaymentSendFailures contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool PaymentSendFailure_eq(const struct LDKPaymentSendFailure *NONNULL_PTR a, const struct LDKPaymentSendFailure *NONNULL_PTR b); + +/** + * Frees any resources used by the ProbeSendFailure + */ +void ProbeSendFailure_free(struct LDKProbeSendFailure this_ptr); + +/** + * Creates a copy of the ProbeSendFailure + */ +struct LDKProbeSendFailure ProbeSendFailure_clone(const struct LDKProbeSendFailure *NONNULL_PTR orig); + +/** + * Utility method to constructs a new RouteNotFound-variant ProbeSendFailure + */ +struct LDKProbeSendFailure ProbeSendFailure_route_not_found(void); + +/** + * Utility method to constructs a new SendingFailed-variant ProbeSendFailure + */ +struct LDKProbeSendFailure ProbeSendFailure_sending_failed(struct LDKPaymentSendFailure a); + +/** + * Checks if two ProbeSendFailures contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool ProbeSendFailure_eq(const struct LDKProbeSendFailure *NONNULL_PTR a, const struct LDKProbeSendFailure *NONNULL_PTR b); + /** * Frees any resources used by the RecipientOnionFields, if is_owned is set and inner is non-NULL. */ @@ -36561,7 +38782,7 @@ void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj); * want to provide a secret for a spontaneous payment if MPP is needed and you know your * recipient will not reject it. */ -struct LDKCOption_PaymentSecretZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr); /** * The [`PaymentSecret`] is an arbitrary 32 bytes provided by the recipient for us to repeat @@ -36576,7 +38797,7 @@ struct LDKCOption_PaymentSecretZ RecipientOnionFields_get_payment_secret(const s * want to provide a secret for a spontaneous payment if MPP is needed and you know your * recipient will not reject it. */ -void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_PaymentSecretZ val); +void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * The payment metadata serves a similar purpose as [`Self::payment_secret`] but is of @@ -36612,11 +38833,6 @@ struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const stru */ void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); -/** - * Constructs a new RecipientOnionFields given each field - */ -MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_new(struct LDKCOption_PaymentSecretZ payment_secret_arg, struct LDKCOption_CVec_u8ZZ payment_metadata_arg); - /** * Creates a copy of the RecipientOnionFields */ @@ -36658,6 +38874,33 @@ MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(str */ MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void); +/** + * Creates a new [`RecipientOnionFields`] from an existing one, adding custom TLVs. Each + * TLV is provided as a `(u64, Vec)` for the type number and serialized value + * respectively. TLV type numbers must be unique and within the range + * reserved for custom types, i.e. >= 2^16, otherwise this method will return `Err(())`. + * + * This method will also error for types in the experimental range which have been + * standardized within the protocol, which only includes 5482373484 (keysend) for now. + * + * See [`Self::custom_tlvs`] for more info. + */ +MUST_USE_RES struct LDKCResult_RecipientOnionFieldsNoneZ RecipientOnionFields_with_custom_tlvs(struct LDKRecipientOnionFields this_arg, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs); + +/** + * Gets the custom TLVs that will be sent or have been received. + * + * Custom TLVs allow sending extra application-specific data with a payment. They provide + * additional flexibility on top of payment metadata, as while other implementations may + * require `payment_metadata` to reflect metadata provided in an invoice, custom TLVs + * do not have this restriction. + * + * Note that if this field is non-empty, it will contain strictly increasing TLVs, each + * represented by a `(u64, Vec)` for its type number and serialized value respectively. + * This is validated when setting this field using [`Self::with_custom_tlvs`]. + */ +MUST_USE_RES struct LDKCVec_C2Tuple_u64CVec_u8ZZZ RecipientOnionFields_custom_tlvs(const struct LDKRecipientOnionFields *NONNULL_PTR this_arg); + /** * Calls the free function if one is set */ @@ -36673,15 +38916,139 @@ struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig); */ void Type_free(struct LDKType this_ptr); +/** + * Frees any resources used by the Offer, if is_owned is set and inner is non-NULL. + */ +void Offer_free(struct LDKOffer this_obj); + +/** + * Creates a copy of the Offer + */ +struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig); + +/** + * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). + * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) + * for the selected chain. + */ +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originator. Useful for authentication and validating fields since it + * is reflected in `invoice_request` messages along with all the other fields from the `offer`. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the payment. Intended to be displayed to the user + * but with the caveat that it has not been verified in any way. + */ +MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Features pertaining to the offer. + */ +MUST_USE_RES struct LDKOfferFeatures Offer_offer_features(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * If `None`, the offer does not expire. + */ +MUST_USE_RES struct LDKCOption_u64Z Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be + * displayed to the user but with the caveat that it has not been verified in any way. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide + * recipient privacy by obfuscating its node id. + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + */ +MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * The public key used by the recipient to sign invoices. + */ +MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Returns whether the given chain is supported by the offer. + */ +MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain); + +/** + * Whether the offer has expired. + */ +MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Returns whether the given quantity is valid for the offer. + */ +MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity); + +/** + * Returns whether a quantity is expected in an [`InvoiceRequest`] for the offer. + * + * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest + */ +MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg); + +/** + * Serialize the Offer object into a byte array which can be read by Offer_read + */ +struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj); + +/** + * Frees any resources used by the Amount, if is_owned is set and inner is non-NULL. + */ +void Amount_free(struct LDKAmount this_obj); + +/** + * Creates a copy of the Amount + */ +struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig); + +/** + * Frees any resources used by the Quantity, if is_owned is set and inner is non-NULL. + */ +void Quantity_free(struct LDKQuantity this_obj); + +/** + * Creates a copy of the Quantity + */ +struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig); + +/** + * Read a Offer object from a string + */ +struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s); + /** * Frees any resources used by the UnsignedBolt12Invoice, if is_owned is set and inner is non-NULL. */ void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj); /** - * The public key corresponding to the key needed to sign the invoice. + * Returns the [`TaggedHash`] of the invoice to sign. */ -MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); /** * Frees any resources used by the Bolt12Invoice, if is_owned is set and inner is non-NULL. @@ -36694,11 +39061,331 @@ void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj); struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig); /** - * A complete description of the purpose of the originating offer or refund. Intended to be - * displayed to the user but with the caveat that it has not been verified in any way. + * The chains that may be used when paying a requested invoice. + * + * From [`Offer::chains`]; `None` if the invoice was created in response to a [`Refund`]. + * + * [`Offer::chains`]: crate::offers::offer::Offer::chains + */ +MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ UnsignedBolt12Invoice_offer_chains(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The chain that must be used when paying the invoice; selected from [`offer_chains`] if the + * invoice originated from an offer. + * + * From [`InvoiceRequest::chain`] or [`Refund::chain`]. + * + * [`offer_chains`]: Self::offer_chains + * [`InvoiceRequest::chain`]: crate::offers::invoice_request::InvoiceRequest::chain + */ +MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_chain(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originating [`Offer`]. + * + * From [`Offer::metadata`]; `None` if the invoice was created in response to a [`Refund`] or + * if the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::metadata`]: crate::offers::offer::Offer::metadata + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedBolt12Invoice_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * From [`Offer::amount`]; `None` if the invoice was created in response to a [`Refund`] or if + * the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::amount`]: crate::offers::offer::Offer::amount + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to the originating [`Offer`]. + * + * From [`Offer::offer_features`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::offer_features`]: crate::offers::offer::Offer::offer_features + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKOfferFeatures UnsignedBolt12Invoice_offer_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the originating offer or refund. + * + * From [`Offer::description`] or [`Refund::description`]. + * + * [`Offer::description`]: crate::offers::offer::Offer::description + */ +MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_description(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * From [`Offer::absolute_expiry`] or [`Refund::absolute_expiry`]. + * + * [`Offer::absolute_expiry`]: crate::offers::offer::Offer::absolute_expiry + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_absolute_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The issuer of the offer or refund. + * + * From [`Offer::issuer`] or [`Refund::issuer`]. + * + * [`Offer::issuer`]: crate::offers::offer::Offer::issuer + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_issuer(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. + * + * From [`Offer::paths`] or [`Refund::paths`]. + * + * [`Offer::paths`]: crate::offers::offer::Offer::paths + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedBolt12Invoice_message_paths(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + * + * From [`Offer::supported_quantity`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer::supported_quantity`]: crate::offers::offer::Offer::supported_quantity + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKQuantity UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * An unpredictable series of bytes from the payer. + * + * From [`InvoiceRequest::payer_metadata`] or [`Refund::payer_metadata`]. + */ +MUST_USE_RES struct LDKu8slice UnsignedBolt12Invoice_payer_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to requesting an invoice. + * + * From [`InvoiceRequest::invoice_request_features`] or [`Refund::features`]. + */ +MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedBolt12Invoice_invoice_request_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items requested or refunded for. + * + * From [`InvoiceRequest::quantity`] or [`Refund::quantity`]. + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A possibly transient pubkey used to sign the invoice request or to send an invoice for a + * refund in case there are no [`message_paths`]. + * + * [`message_paths`]: Self::message_paths + */ +MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_payer_id(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A payer-provided note reflected back in the invoice. + * + * From [`InvoiceRequest::payer_note`] or [`Refund::payer_note`]. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_payer_note(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when the invoice was created. + */ +MUST_USE_RES uint64_t UnsignedBolt12Invoice_created_at(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Duration since [`Bolt12Invoice::created_at`] when the invoice has expired and therefore + * should no longer be paid. + */ +MUST_USE_RES uint64_t UnsignedBolt12Invoice_relative_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Whether the invoice has expired. + */ +MUST_USE_RES bool UnsignedBolt12Invoice_is_expired(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * SHA256 hash of the payment preimage that will be given in return for paying the invoice. + */ +MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_payment_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of the invoice. + */ +MUST_USE_RES uint64_t UnsignedBolt12Invoice_amount_msats(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to paying an invoice. + */ +MUST_USE_RES struct LDKBolt12InvoiceFeatures UnsignedBolt12Invoice_invoice_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The public key corresponding to the key used to sign the invoice. + */ +MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The chains that may be used when paying a requested invoice. + * + * From [`Offer::chains`]; `None` if the invoice was created in response to a [`Refund`]. + * + * [`Offer::chains`]: crate::offers::offer::Offer::chains + */ +MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ Bolt12Invoice_offer_chains(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The chain that must be used when paying the invoice; selected from [`offer_chains`] if the + * invoice originated from an offer. + * + * From [`InvoiceRequest::chain`] or [`Refund::chain`]. + * + * [`offer_chains`]: Self::offer_chains + * [`InvoiceRequest::chain`]: crate::offers::invoice_request::InvoiceRequest::chain + */ +MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_chain(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originating [`Offer`]. + * + * From [`Offer::metadata`]; `None` if the invoice was created in response to a [`Refund`] or + * if the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::metadata`]: crate::offers::offer::Offer::metadata + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt12Invoice_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * From [`Offer::amount`]; `None` if the invoice was created in response to a [`Refund`] or if + * the [`Offer`] did not set it. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::amount`]: crate::offers::offer::Offer::amount + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to the originating [`Offer`]. + * + * From [`Offer::offer_features`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer`]: crate::offers::offer::Offer + * [`Offer::offer_features`]: crate::offers::offer::Offer::offer_features + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKOfferFeatures Bolt12Invoice_offer_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the originating offer or refund. + * + * From [`Offer::description`] or [`Refund::description`]. + * + * [`Offer::description`]: crate::offers::offer::Offer::description */ MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * From [`Offer::absolute_expiry`] or [`Refund::absolute_expiry`]. + * + * [`Offer::absolute_expiry`]: crate::offers::offer::Offer::absolute_expiry + */ +MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_absolute_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The issuer of the offer or refund. + * + * From [`Offer::issuer`] or [`Refund::issuer`]. + * + * [`Offer::issuer`]: crate::offers::offer::Offer::issuer + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString Bolt12Invoice_issuer(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. + * + * From [`Offer::paths`] or [`Refund::paths`]. + * + * [`Offer::paths`]: crate::offers::offer::Offer::paths + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ Bolt12Invoice_message_paths(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + * + * From [`Offer::supported_quantity`]; `None` if the invoice was created in response to a + * [`Refund`]. + * + * [`Offer::supported_quantity`]: crate::offers::offer::Offer::supported_quantity + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKQuantity Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * An unpredictable series of bytes from the payer. + * + * From [`InvoiceRequest::payer_metadata`] or [`Refund::payer_metadata`]. + */ +MUST_USE_RES struct LDKu8slice Bolt12Invoice_payer_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * Features pertaining to requesting an invoice. + * + * From [`InvoiceRequest::invoice_request_features`] or [`Refund::features`]. + */ +MUST_USE_RES struct LDKInvoiceRequestFeatures Bolt12Invoice_invoice_request_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * The quantity of items requested or refunded for. + * + * From [`InvoiceRequest::quantity`] or [`Refund::quantity`]. + */ +MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A possibly transient pubkey used to sign the invoice request or to send an invoice for a + * refund in case there are no [`message_paths`]. + * + * [`message_paths`]: Self::message_paths + */ +MUST_USE_RES struct LDKPublicKey Bolt12Invoice_payer_id(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + +/** + * A payer-provided note reflected back in the invoice. + * + * From [`InvoiceRequest::payer_note`] or [`Refund::payer_note`]. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString Bolt12Invoice_payer_note(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + /** * Duration since the Unix epoch when the invoice was created. */ @@ -36728,22 +39415,33 @@ MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice * /** * Features pertaining to paying an invoice. */ -MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); /** * The public key corresponding to the key used to sign the invoice. */ MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); +/** + * Signature of the invoice verified using [`Bolt12Invoice::signing_pubkey`]. + */ +MUST_USE_RES struct LDKSchnorrSignature Bolt12Invoice_signature(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + /** * Hash that was used for signing the invoice. */ MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); /** - * Verifies that the invoice was for a request or refund created using the given key. + * Verifies that the invoice was for a request or refund created using the given key. Returns + * the associated [`PaymentId`] to use when sending the payment. */ -MUST_USE_RES bool Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); +MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); + +/** + * Serialize the UnsignedBolt12Invoice object into a byte array which can be read by UnsignedBolt12Invoice_read + */ +struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj); /** * Serialize the Bolt12Invoice object into a byte array which can be read by Bolt12Invoice_read @@ -36898,6 +39596,8 @@ void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, stru /** * Constructs a new InvoiceError given each field + * + * Note that erroneous_field_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg); @@ -36958,6 +39658,11 @@ struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice s */ void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj); +/** + * Returns the [`TaggedHash`] of the invoice to sign. + */ +MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + /** * Frees any resources used by the InvoiceRequest, if is_owned is set and inner is non-NULL. */ @@ -36968,13 +39673,215 @@ void InvoiceRequest_free(struct LDKInvoiceRequest this_obj); */ struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig); +/** + * Frees any resources used by the VerifiedInvoiceRequest, if is_owned is set and inner is non-NULL. + */ +void VerifiedInvoiceRequest_free(struct LDKVerifiedInvoiceRequest this_obj); + +/** + * Keys used for signing a [`Bolt12Invoice`] if they can be derived. + * + * If `Some`, must call [`respond_using_derived_keys`] when responding. Otherwise, call + * [`respond_with`]. + * + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice + * [`respond_using_derived_keys`]: Self::respond_using_derived_keys + * [`respond_with`]: Self::respond_with + */ +struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr); + +/** + * Keys used for signing a [`Bolt12Invoice`] if they can be derived. + * + * If `Some`, must call [`respond_using_derived_keys`] when responding. Otherwise, call + * [`respond_with`]. + * + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice + * [`respond_using_derived_keys`]: Self::respond_using_derived_keys + * [`respond_with`]: Self::respond_with + */ +void VerifiedInvoiceRequest_set_keys(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKCOption_SecretKeyZ val); + +/** + * Creates a copy of the VerifiedInvoiceRequest + */ +struct LDKVerifiedInvoiceRequest VerifiedInvoiceRequest_clone(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR orig); + +/** + * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). + * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) + * for the selected chain. + */ +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ UnsignedInvoiceRequest_chains(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originator. Useful for authentication and validating fields since it + * is reflected in `invoice_request` messages along with all the other fields from the `offer`. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedInvoiceRequest_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the payment. Intended to be displayed to the user + * but with the caveat that it has not been verified in any way. + */ +MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_description(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Features pertaining to the offer. + */ +MUST_USE_RES struct LDKOfferFeatures UnsignedInvoiceRequest_offer_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * If `None`, the offer does not expire. + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_absolute_expiry(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be + * displayed to the user but with the caveat that it has not been verified in any way. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_issuer(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide + * recipient privacy by obfuscating its node id. + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedInvoiceRequest_paths(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + */ +MUST_USE_RES struct LDKQuantity UnsignedInvoiceRequest_supported_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The public key used by the recipient to sign invoices. + */ +MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_signing_pubkey(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * An unpredictable series of bytes, typically containing information about the derivation of + * [`payer_id`]. + * + * [`payer_id`]: Self::payer_id + */ +MUST_USE_RES struct LDKu8slice UnsignedInvoiceRequest_payer_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A chain from [`Offer::chains`] that the offer is valid for. + */ +MUST_USE_RES struct LDKThirtyTwoBytes UnsignedInvoiceRequest_chain(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The amount to pay in msats (i.e., the minimum lightning-payable unit for [`chain`]), which + * must be greater than or equal to [`Offer::amount`], converted if necessary. + * + * [`chain`]: Self::chain + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_amount_msats(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Features pertaining to requesting an invoice. + */ +MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedInvoiceRequest_invoice_request_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. + */ +MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A possibly transient pubkey used to sign the invoice request. + */ +MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_payer_id(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A payer-provided note which will be seen by the recipient and reflected back in the invoice + * response. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_payer_note(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). + * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) + * for the selected chain. + */ +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ InvoiceRequest_chains(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Opaque bytes set by the originator. Useful for authentication and validating fields since it + * is reflected in `invoice_request` messages along with all the other fields from the `offer`. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The minimum amount required for a successful payment of a single item. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKAmount InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * A complete description of the purpose of the payment. Intended to be displayed to the user + * but with the caveat that it has not been verified in any way. + */ +MUST_USE_RES struct LDKPrintableString InvoiceRequest_description(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Features pertaining to the offer. + */ +MUST_USE_RES struct LDKOfferFeatures InvoiceRequest_offer_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Duration since the Unix epoch when an invoice should no longer be requested. + * + * If `None`, the offer does not expire. + */ +MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_absolute_expiry(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be + * displayed to the user but with the caveat that it has not been verified in any way. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +MUST_USE_RES struct LDKPrintableString InvoiceRequest_issuer(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide + * recipient privacy by obfuscating its node id. + */ +MUST_USE_RES struct LDKCVec_BlindedPathZ InvoiceRequest_paths(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The quantity of items supported. + */ +MUST_USE_RES struct LDKQuantity InvoiceRequest_supported_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + +/** + * The public key used by the recipient to sign invoices. + */ +MUST_USE_RES struct LDKPublicKey InvoiceRequest_signing_pubkey(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + /** * An unpredictable series of bytes, typically containing information about the derivation of * [`payer_id`]. * * [`payer_id`]: Self::payer_id */ -MUST_USE_RES struct LDKu8slice InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKu8slice InvoiceRequest_payer_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** * A chain from [`Offer::chains`] that the offer is valid for. @@ -36992,7 +39899,7 @@ MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDK /** * Features pertaining to requesting an invoice. */ -MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_invoice_request_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. @@ -37013,76 +39920,58 @@ MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoice MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** - * Verifies that the request was for an offer created using the given key. Returns the derived - * keys need to sign an [`Bolt12Invoice`] for the request if they could be extracted from the - * metadata. + * Signature of the invoice request using [`payer_id`]. * - * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice - */ -MUST_USE_RES struct LDKCResult_COption_KeyPairZNoneZ InvoiceRequest_verify(const struct LDKInvoiceRequest *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key); - -/** - * Serialize the InvoiceRequest object into a byte array which can be read by InvoiceRequest_read - */ -struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj); - -/** - * Frees any resources used by the Offer, if is_owned is set and inner is non-NULL. + * [`payer_id`]: Self::payer_id */ -void Offer_free(struct LDKOffer this_obj); +MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /** - * Creates a copy of the Offer + * Verifies that the request was for an offer created using the given key. Returns the verified + * request which contains the derived keys needed to sign a [`Bolt12Invoice`] for the request + * if they could be extracted from the metadata. + * + * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice */ -struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig); +MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key); /** * The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). * Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) * for the selected chain. */ -MUST_USE_RES struct LDKCVec_ChainHashZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg); - -/** - * Returns whether the given chain is supported by the offer. - */ -MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain); +MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Opaque bytes set by the originator. Useful for authentication and validating fields since it * is reflected in `invoice_request` messages along with all the other fields from the `offer`. */ -MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_CVec_u8ZZ VerifiedInvoiceRequest_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * The minimum amount required for a successful payment of a single item. * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKAmount VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * A complete description of the purpose of the payment. Intended to be displayed to the user * but with the caveat that it has not been verified in any way. */ -MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_description(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Features pertaining to the offer. */ -MUST_USE_RES struct LDKOfferFeatures Offer_features(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKOfferFeatures VerifiedInvoiceRequest_offer_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Duration since the Unix epoch when an invoice should no longer be requested. * * If `None`, the offer does not expire. */ -MUST_USE_RES struct LDKCOption_DurationZ Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg); - -/** - * Whether the offer has expired. - */ -MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_absolute_expiry(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * The issuer of the offer, possibly beginning with `user@domain` or `domain`. Intended to be @@ -37090,65 +39979,82 @@ MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg); * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_issuer(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * Paths to the recipient originating from publicly reachable nodes. Blinded paths provide * recipient privacy by obfuscating its node id. */ -MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_BlindedPathZ VerifiedInvoiceRequest_paths(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** * The quantity of items supported. */ -MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKQuantity VerifiedInvoiceRequest_supported_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Returns whether the given quantity is valid for the offer. + * The public key used by the recipient to sign invoices. */ -MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity); +MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_signing_pubkey(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Returns whether a quantity is expected in an [`InvoiceRequest`] for the offer. + * An unpredictable series of bytes, typically containing information about the derivation of + * [`payer_id`]. * - * [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest + * [`payer_id`]: Self::payer_id */ -MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKu8slice VerifiedInvoiceRequest_payer_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * The public key used by the recipient to sign invoices. + * A chain from [`Offer::chains`] that the offer is valid for. */ -MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKThirtyTwoBytes VerifiedInvoiceRequest_chain(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Serialize the Offer object into a byte array which can be read by Offer_read + * The amount to pay in msats (i.e., the minimum lightning-payable unit for [`chain`]), which + * must be greater than or equal to [`Offer::amount`], converted if necessary. + * + * [`chain`]: Self::chain */ -struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj); +MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_amount_msats(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Frees any resources used by the Amount, if is_owned is set and inner is non-NULL. + * Features pertaining to requesting an invoice. */ -void Amount_free(struct LDKAmount this_obj); +MUST_USE_RES struct LDKInvoiceRequestFeatures VerifiedInvoiceRequest_invoice_request_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Creates a copy of the Amount + * The quantity of the offer's item conforming to [`Offer::is_valid_quantity`]. */ -struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig); +MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Frees any resources used by the Quantity, if is_owned is set and inner is non-NULL. + * A possibly transient pubkey used to sign the invoice request. */ -void Quantity_free(struct LDKQuantity this_obj); +MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_payer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Creates a copy of the Quantity + * A payer-provided note which will be seen by the recipient and reflected back in the invoice + * response. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig); +MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_payer_note(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /** - * Read a Offer object from a string + * Serialize the UnsignedInvoiceRequest object into a byte array which can be read by UnsignedInvoiceRequest_read */ -struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s); +struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj); + +/** + * Serialize the InvoiceRequest object into a byte array which can be read by InvoiceRequest_read + */ +struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj); + +/** + * Frees any resources used by the TaggedHash, if is_owned is set and inner is non-NULL. + */ +void TaggedHash_free(struct LDKTaggedHash this_obj); /** * Frees any resources used by the Bolt12ParseError, if is_owned is set and inner is non-NULL. @@ -37316,7 +40222,7 @@ MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund * * If `None`, the refund does not expire. */ -MUST_USE_RES struct LDKCOption_DurationZ Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u64Z Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg); /** * Whether the refund has expired. @@ -37343,7 +40249,7 @@ MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NO * * [`payer_id`]: Self::payer_id */ -MUST_USE_RES struct LDKu8slice Refund_metadata(const struct LDKRefund *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKu8slice Refund_payer_metadata(const struct LDKRefund *NONNULL_PTR this_arg); /** * A chain that the refund is valid for. @@ -37500,7 +40406,7 @@ MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_P /** * Get the public key from this NodeId */ -MUST_USE_RES struct LDKCResult_PublicKeyErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCResult_PublicKeySecp256k1ErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg); /** * Generates a non-cryptographic 64-bit hash of the NodeId. @@ -37586,7 +40492,7 @@ MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGr * existing announcements unless they are updated. * Add, update or remove the provider would replace the current one. */ -void P2PGossipSync_add_utxo_lookup(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup); +void P2PGossipSync_add_utxo_lookup(const struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup); /** * Handles any network updates originating from [`Event`]s. @@ -37715,6 +40621,8 @@ void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONN /** * Constructs a new ChannelUpdateInfo given each field + * + * Note that last_update_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelUpdateInfo ChannelUpdateInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg); @@ -38068,6 +40976,8 @@ void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInf /** * Constructs a new NodeAnnouncementInfo given each field + * + * Note that announcement_message_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKNodeAnnouncement announcement_message_arg); @@ -38086,7 +40996,7 @@ bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a /** * Internet-level addresses via which one can connect to the node */ -MUST_USE_RES struct LDKCVec_NetAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_SocketAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg); /** * Serialize the NodeAnnouncementInfo object into a byte array which can be read by NodeAnnouncementInfo_read @@ -38171,6 +41081,8 @@ void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, st /** * Constructs a new NodeInfo given each field + * + * Note that announcement_info_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg); @@ -38391,7 +41303,7 @@ MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct * Returns None if the requested node is completely unknown, * or if node announcement for the node was never received. */ -MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey); +MUST_USE_RES struct LDKCOption_CVec_SocketAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey); /** * Frees any resources used by the DefaultRouter, if is_owned is set and inner is non-NULL. @@ -38422,18 +41334,13 @@ void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlight /** * Initialize a new `ScorerAccountingForInFlightHtlcs`. */ -MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScore scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs); - -/** - * Serialize the ScorerAccountingForInFlightHtlcs object into a byte array which can be read by ScorerAccountingForInFlightHtlcs_read - */ -struct LDKCVec_u8Z ScorerAccountingForInFlightHtlcs_write(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR obj); +MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScoreLookUp scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs); /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ -struct LDKScore ScorerAccountingForInFlightHtlcs_as_Score(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg); +struct LDKScoreLookUp ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg); /** * Frees any resources used by the InFlightHtlcs, if is_owned is set and inner is non-NULL. @@ -38566,10 +41473,34 @@ uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR th */ void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val); +/** + * Indicates whether this hop is possibly announced in the public network graph. + * + * Will be `true` if there is a possibility that the channel is publicly known, i.e., if we + * either know for sure it's announced in the public graph, or if any public channels exist + * for which the given `short_channel_id` could be an alias for. Will be `false` if we believe + * the channel to be unannounced. + * + * Will be `true` for objects serialized with LDK version 0.0.116 and before. + */ +bool RouteHop_get_maybe_announced_channel(const struct LDKRouteHop *NONNULL_PTR this_ptr); + +/** + * Indicates whether this hop is possibly announced in the public network graph. + * + * Will be `true` if there is a possibility that the channel is publicly known, i.e., if we + * either know for sure it's announced in the public graph, or if any public channels exist + * for which the given `short_channel_id` could be an alias for. Will be `false` if we believe + * the channel to be unannounced. + * + * Will be `true` for objects serialized with LDK version 0.0.116 and before. + */ +void RouteHop_set_maybe_announced_channel(struct LDKRouteHop *NONNULL_PTR this_ptr, bool val); + /** * Constructs a new RouteHop given each field */ -MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg); +MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg, bool maybe_announced_channel_arg); /** * Creates a copy of the RouteHop @@ -38716,6 +41647,8 @@ void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlind /** * Constructs a new Path given each field + * + * Note that blinded_tail_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg); @@ -38771,27 +41704,33 @@ struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val); /** - * The `payment_params` parameter passed via [`RouteParameters`] to [`find_route`]. + * The `route_params` parameter passed to [`find_route`]. * * This is used by `ChannelManager` to track information which may be required for retries. * + * Will be `None` for objects serialized with LDK versions prior to 0.0.117. + * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ -struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr); +struct LDKRouteParameters Route_get_route_params(const struct LDKRoute *NONNULL_PTR this_ptr); /** - * The `payment_params` parameter passed via [`RouteParameters`] to [`find_route`]. + * The `route_params` parameter passed to [`find_route`]. * * This is used by `ChannelManager` to track information which may be required for retries. * + * Will be `None` for objects serialized with LDK versions prior to 0.0.117. + * * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ -void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val); +void Route_set_route_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKRouteParameters val); /** * Constructs a new Route given each field + * + * Note that route_params_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKPaymentParameters payment_params_arg); +MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKRouteParameters route_params_arg); /** * Creates a copy of the Route @@ -38813,14 +41752,21 @@ bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNU /** * Returns the total amount of fees paid on this [`Route`]. * - * This doesn't include any extra payment made to the recipient, which can happen in excess of - * the amount passed to [`find_route`]'s `route_params.final_value_msat`. + * For objects serialized with LDK 0.0.117 and after, this includes any extra payment made to + * the recipient, which can happen in excess of the amount passed to [`find_route`] via + * [`RouteParameters::final_value_msat`], if we had to reach the [`htlc_minimum_msat`] limits. + * + * [`htlc_minimum_msat`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_update-message */ MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg); /** - * Returns the total amount paid on this [`Route`], excluding the fees. Might be more than - * requested if we had to reach htlc_minimum_msat. + * Returns the total amount paid on this [`Route`], excluding the fees. + * + * Might be more than requested as part of the given [`RouteParameters::final_value_msat`] if + * we had to reach the [`htlc_minimum_msat`] limits. + * + * [`htlc_minimum_msat`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_update-message */ MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg); @@ -38859,16 +41805,41 @@ uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *N */ void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val); +/** + * The maximum total fees, in millisatoshi, that may accrue during route finding. + * + * This limit also applies to the total fees that may arise while retrying failed payment + * paths. + * + * Note that values below a few sats may result in some paths being spuriously ignored. + */ +struct LDKCOption_u64Z RouteParameters_get_max_total_routing_fee_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr); + +/** + * The maximum total fees, in millisatoshi, that may accrue during route finding. + * + * This limit also applies to the total fees that may arise while retrying failed payment + * paths. + * + * Note that values below a few sats may result in some paths being spuriously ignored. + */ +void RouteParameters_set_max_total_routing_fee_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + /** * Constructs a new RouteParameters given each field */ -MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg); +MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, struct LDKCOption_u64Z max_total_routing_fee_msat_arg); /** * Creates a copy of the RouteParameters */ struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the RouteParameters. + */ +uint64_t RouteParameters_hash(const struct LDKRouteParameters *NONNULL_PTR o); + /** * Checks if two RouteParameterss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -38876,6 +41847,13 @@ struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters */ bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b); +/** + * Constructs [`RouteParameters`] from the given [`PaymentParameters`] and a payment amount. + * + * [`Self::max_total_routing_fee_msat`] defaults to 1% of the payment amount + 50 sats + */ +MUST_USE_RES struct LDKRouteParameters RouteParameters_from_payment_params_and_value(struct LDKPaymentParameters payment_params, uint64_t final_value_msat); + /** * Serialize the RouteParameters object into a byte array which can be read by RouteParameters_read */ @@ -39047,6 +42025,11 @@ MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LD */ MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice); +/** + * Creates parameters for paying to a blinded payee from the provided blinded route hints. + */ +MUST_USE_RES struct LDKPaymentParameters PaymentParameters_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ blinded_route_hints); + /** * Frees any resources used by the Payee */ @@ -39245,7 +42228,7 @@ struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice s * * Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None */ -struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]); +struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScoreLookUp *NONNULL_PTR scorer, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR score_params, const uint8_t (*random_seed_bytes)[32]); /** * Construct a route from us (payer) to the target node (payee) via the given hops (which should @@ -39255,6 +42238,16 @@ struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_p */ struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]); +/** + * Calls the free function if one is set + */ +void ScoreLookUp_free(struct LDKScoreLookUp this_ptr); + +/** + * Calls the free function if one is set + */ +void ScoreUpdate_free(struct LDKScoreUpdate this_ptr); + /** * Calls the free function if one is set */ @@ -39298,20 +42291,31 @@ struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const stru MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score); /** - * Frees any resources used by the MultiThreadedScoreLock, if is_owned is set and inner is non-NULL. + * Frees any resources used by the MultiThreadedScoreLockRead, if is_owned is set and inner is non-NULL. */ -void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj); +void MultiThreadedScoreLockRead_free(struct LDKMultiThreadedScoreLockRead this_obj); /** - * Serialize the MultiThreadedScoreLock object into a byte array which can be read by MultiThreadedScoreLock_read + * Frees any resources used by the MultiThreadedScoreLockWrite, if is_owned is set and inner is non-NULL. */ -struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj); +void MultiThreadedScoreLockWrite_free(struct LDKMultiThreadedScoreLockWrite this_obj); /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ -struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg); +struct LDKScoreLookUp MultiThreadedScoreLockRead_as_ScoreLookUp(const struct LDKMultiThreadedScoreLockRead *NONNULL_PTR this_arg); + +/** + * Serialize the MultiThreadedScoreLockWrite object into a byte array which can be read by MultiThreadedScoreLockWrite_read + */ +struct LDKCVec_u8Z MultiThreadedScoreLockWrite_write(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR obj); + +/** + * Constructs a new ScoreUpdate which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is + */ +struct LDKScoreUpdate MultiThreadedScoreLockWrite_as_ScoreUpdate(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR this_arg); /** * Frees any resources used by the ChannelUsage, if is_owned is set and inner is non-NULL. @@ -39376,10 +42380,16 @@ struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenal MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat); /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ -struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); +struct LDKScoreLookUp FixedPenaltyScorer_as_ScoreLookUp(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); + +/** + * Constructs a new ScoreUpdate which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is + */ +struct LDKScoreUpdate FixedPenaltyScorer_as_ScoreUpdate(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg); /** * Serialize the FixedPenaltyScorer object into a byte array which can be read by FixedPenaltyScorer_read @@ -39416,12 +42426,13 @@ uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LD void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * A multiplier used with the payment amount to calculate a fixed penalty applied to each - * channel, in excess of the [`base_penalty_msat`]. + * A multiplier used with the total amount flowing over a channel to calculate a fixed penalty + * applied to each channel, in excess of the [`base_penalty_msat`]. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^30`ths of the payment amount. + * multiplier and `2^30`ths of the total amount flowing over a channel (i.e. the payment + * amount plus the amount of any other HTLCs flowing we sent over the same channel). * * ie `base_penalty_amount_multiplier_msat * amount_msat / 2^30` * @@ -39432,12 +42443,13 @@ void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabili uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * A multiplier used with the payment amount to calculate a fixed penalty applied to each - * channel, in excess of the [`base_penalty_msat`]. + * A multiplier used with the total amount flowing over a channel to calculate a fixed penalty + * applied to each channel, in excess of the [`base_penalty_msat`]. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^30`ths of the payment amount. + * multiplier and `2^30`ths of the total amount flowing over a channel (i.e. the payment + * amount plus the amount of any other HTLCs flowing we sent over the same channel). * * ie `base_penalty_amount_multiplier_msat * amount_msat / 2^30` * @@ -39488,14 +42500,14 @@ uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * A multiplier used in conjunction with a payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined by our latest estimates of the - * channel's liquidity, to determine the amount penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined by our + * latest estimates of the channel's liquidity, to determine the amount penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^20`ths of the payment amount, weighted by the negative `log10` of the - * success probability. + * multiplier and `2^20`ths of the amount flowing over this channel, weighted by the negative + * `log10` of the success probability. * * `-log10(success_probability) * liquidity_penalty_amount_multiplier_msat * amount_msat / 2^20` * @@ -39510,14 +42522,14 @@ void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(str uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * A multiplier used in conjunction with a payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined by our latest estimates of the - * channel's liquidity, to determine the amount penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined by our + * latest estimates of the channel's liquidity, to determine the amount penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost (i.e., * fees plus penalty) for large payments. The penalty is computed as the product of this - * multiplier and `2^20`ths of the payment amount, weighted by the negative `log10` of the - * success probability. + * multiplier and `2^20`ths of the amount flowing over this channel, weighted by the negative + * `log10` of the success probability. * * `-log10(success_probability) * liquidity_penalty_amount_multiplier_msat * amount_msat / 2^20` * @@ -39568,13 +42580,15 @@ uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_mult void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * A multiplier used in conjunction with the payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined based on the history of our - * estimates of the channel's available liquidity, to determine a penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined based + * on the history of our estimates of the channel's available liquidity, to determine a + * penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost for - * large payments. The penalty is computed as the product of this multiplier and the `2^20`ths - * of the payment amount, weighted by the negative `log10` of the success probability. + * large payments. The penalty is computed as the product of this multiplier and `2^20`ths + * of the amount flowing over this channel, weighted by the negative `log10` of the success + * probability. * * This penalty is similar to [`liquidity_penalty_amount_multiplier_msat`], however, instead * of using only our latest estimate for the current liquidity available in the channel, it @@ -39590,13 +42604,15 @@ void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multipli uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * A multiplier used in conjunction with the payment amount and the negative `log10` of the - * channel's success probability for the payment, as determined based on the history of our - * estimates of the channel's available liquidity, to determine a penalty. + * A multiplier used in conjunction with the total amount flowing over a channel and the + * negative `log10` of the channel's success probability for the payment, as determined based + * on the history of our estimates of the channel's available liquidity, to determine a + * penalty. * * The purpose of the amount penalty is to avoid having fees dominate the channel cost for - * large payments. The penalty is computed as the product of this multiplier and the `2^20`ths - * of the payment amount, weighted by the negative `log10` of the success probability. + * large payments. The penalty is computed as the product of this multiplier and `2^20`ths + * of the amount flowing over this channel, weighted by the negative `log10` of the success + * probability. * * This penalty is similar to [`liquidity_penalty_amount_multiplier_msat`], however, instead * of using only our latest estimate for the current liquidity available in the channel, it @@ -39634,8 +42650,9 @@ uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const s void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); /** - * This penalty is applied when the amount we're attempting to send over a channel exceeds our - * current estimate of the channel's available liquidity. + * This penalty is applied when the total amount flowing over a channel exceeds our current + * estimate of the channel's available liquidity. The total amount is the amount of the + * current HTLC plus any HTLCs which we've sent over the same channel. * * Note that in this case all other penalties, including the * [`liquidity_penalty_multiplier_msat`] and [`liquidity_penalty_amount_multiplier_msat`]-based @@ -39655,8 +42672,9 @@ void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKP uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); /** - * This penalty is applied when the amount we're attempting to send over a channel exceeds our - * current estimate of the channel's available liquidity. + * This penalty is applied when the total amount flowing over a channel exceeds our current + * estimate of the channel's available liquidity. The total amount is the amount of the + * current HTLC plus any HTLCs which we've sent over the same channel. * * Note that in this case all other penalties, including the * [`liquidity_penalty_multiplier_msat`] and [`liquidity_penalty_amount_multiplier_msat`]-based @@ -39675,6 +42693,54 @@ uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msa */ void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val); +/** + * In order to calculate most of the scores above, we must first convert a lower and upper + * bound on the available liquidity in a channel into the probability that we think a payment + * will succeed. That probability is derived from a Probability Density Function for where we + * think the liquidity in a channel likely lies, given such bounds. + * + * If this flag is set, that PDF is simply a constant - we assume that the actual available + * liquidity in a channel is just as likely to be at any point between our lower and upper + * bounds. + * + * If this flag is *not* set, that PDF is `(x - 0.5*capacity) ^ 2`. That is, we use an + * exponential curve which expects the liquidity of a channel to lie \"at the edges\". This + * matches experimental results - most routing nodes do not aggressively rebalance their + * channels and flows in the network are often unbalanced, leaving liquidity usually + * unavailable. + * + * Thus, for the \"best\" routes, leave this flag `false`. However, the flag does imply a number + * of floating-point multiplications in the hottest routing code, which may lead to routing + * performance degradation on some machines. + * + * Default value: false + */ +bool ProbabilisticScoringFeeParameters_get_linear_success_probability(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr); + +/** + * In order to calculate most of the scores above, we must first convert a lower and upper + * bound on the available liquidity in a channel into the probability that we think a payment + * will succeed. That probability is derived from a Probability Density Function for where we + * think the liquidity in a channel likely lies, given such bounds. + * + * If this flag is set, that PDF is simply a constant - we assume that the actual available + * liquidity in a channel is just as likely to be at any point between our lower and upper + * bounds. + * + * If this flag is *not* set, that PDF is `(x - 0.5*capacity) ^ 2`. That is, we use an + * exponential curve which expects the liquidity of a channel to lie \"at the edges\". This + * matches experimental results - most routing nodes do not aggressively rebalance their + * channels and flows in the network are often unbalanced, leaving liquidity usually + * unavailable. + * + * Thus, for the \"best\" routes, leave this flag `false`. However, the flag does imply a number + * of floating-point multiplications in the hottest routing code, which may lead to routing + * performance degradation on some machines. + * + * Default value: false + */ +void ProbabilisticScoringFeeParameters_set_linear_success_probability(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, bool val); + /** * Creates a copy of the ProbabilisticScoringFeeParameters */ @@ -39837,26 +42903,54 @@ MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_ch * Query the historical estimated minimum and maximum liquidity available for sending a * payment over the channel with `scid` towards the given `target` node. * - * Returns two sets of 8 buckets. The first set describes the octiles for lower-bound - * liquidity estimates, the second set describes the octiles for upper-bound liquidity - * estimates. Each bucket describes the relative frequency at which we've seen a liquidity - * bound in the octile relative to the channel's total capacity, on an arbitrary scale. - * Because the values are slowly decayed, more recent data points are weighted more heavily - * than older datapoints. + * Returns two sets of 32 buckets. The first set describes the lower-bound liquidity history, + * the second set describes the upper-bound liquidity history. Each bucket describes the + * relative frequency at which we've seen a liquidity bound in the bucket's range relative to + * the channel's total capacity, on an arbitrary scale. Because the values are slowly decayed, + * more recent data points are weighted more heavily than older datapoints. + * + * Note that the range of each bucket varies by its location to provide more granular results + * at the edges of a channel's capacity, where it is more likely to sit. * - * When scoring, the estimated probability that an upper-/lower-bound lies in a given octile - * relative to the channel's total capacity is calculated by dividing that bucket's value with - * the total of all buckets for the given bound. + * When scoring, the estimated probability that an upper-/lower-bound lies in a given bucket + * is calculated by dividing that bucket's value with the total value of all buckets. * - * For example, a value of `[0, 0, 0, 0, 0, 0, 32]` indicates that we believe the probability - * of a bound being in the top octile to be 100%, and have never (recently) seen it in any - * other octiles. A value of `[31, 0, 0, 0, 0, 0, 0, 32]` indicates we've seen the bound being - * both in the top and bottom octile, and roughly with similar (recent) frequency. + * For example, using a lower bucket count for illustrative purposes, a value of + * `[0, 0, 0, ..., 0, 32]` indicates that we believe the probability of a bound being very + * close to the channel's capacity to be 100%, and have never (recently) seen it in any other + * bucket. A value of `[31, 0, 0, ..., 0, 0, 32]` indicates we've seen the bound being both + * in the top and bottom bucket, and roughly with similar (recent) frequency. * * Because the datapoints are decayed slowly over time, values will eventually return to - * `Some(([0; 8], [0; 8]))`. + * `Some(([1; 32], [1; 32]))` and then to `None` once no datapoints remain. + * + * In order to fetch a single success probability from the buckets provided here, as used in + * the scoring model, see [`Self::historical_estimated_payment_success_probability`]. + */ +MUST_USE_RES struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target); + +/** + * Query the probability of payment success sending the given `amount_msat` over the channel + * with `scid` towards the given `target` node, based on the historical estimated liquidity + * bounds. + * + * These are the same bounds as returned by + * [`Self::historical_estimated_channel_liquidity_probabilities`] (but not those returned by + * [`Self::estimated_channel_liquidity_range`]). + */ +MUST_USE_RES struct LDKCOption_f64Z ProbabilisticScorer_historical_estimated_payment_success_probability(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target, uint64_t amount_msat, const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR params); + +/** + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is + */ +struct LDKScoreLookUp ProbabilisticScorer_as_ScoreLookUp(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); + +/** + * Constructs a new ScoreUpdate which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreUpdate must be freed before this_arg is */ -MUST_USE_RES struct LDKCOption_C2Tuple_EightU16sEightU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target); +struct LDKScoreUpdate ProbabilisticScorer_as_ScoreUpdate(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg); /** * Constructs a new Score which calls the relevant methods on this_arg. @@ -39965,6 +43059,11 @@ MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescri */ struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the DelayedPaymentOutputDescriptor. + */ +uint64_t DelayedPaymentOutputDescriptor_hash(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR o); + /** * Checks if two DelayedPaymentOutputDescriptors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -40029,16 +43128,43 @@ uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct L */ void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val); +/** + * The necessary channel parameters that need to be provided to the re-derived signer through + * [`ChannelSigner::provide_channel_parameters`]. + * + * Added as optional, but always `Some` if the descriptor was produced in v0.0.117 or later. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +struct LDKChannelTransactionParameters StaticPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr); + +/** + * The necessary channel parameters that need to be provided to the re-derived signer through + * [`ChannelSigner::provide_channel_parameters`]. + * + * Added as optional, but always `Some` if the descriptor was produced in v0.0.117 or later. + * + * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val); + /** * Constructs a new StaticPaymentOutputDescriptor given each field + * + * Note that channel_transaction_parameters_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ -MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg); +MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg, struct LDKChannelTransactionParameters channel_transaction_parameters_arg); /** * Creates a copy of the StaticPaymentOutputDescriptor */ struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig); +/** + * Generates a non-cryptographic 64-bit hash of the StaticPaymentOutputDescriptor. + */ +uint64_t StaticPaymentOutputDescriptor_hash(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR o); + /** * Checks if two StaticPaymentOutputDescriptors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -40046,6 +43172,21 @@ struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(cons */ bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b); +/** + * Returns the `witness_script` of the spendable output. + * + * Note that this will only return `Some` for [`StaticPaymentOutputDescriptor`]s that + * originated from an anchor outputs channel, as they take the form of a P2WSH script. + */ +MUST_USE_RES struct LDKCOption_CVec_u8ZZ StaticPaymentOutputDescriptor_witness_script(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg); + +/** + * The maximum length a well-formed witness spending one of these should have. + * Note: If you have the grind_signatures feature enabled, this will be at least 1 byte + * shorter. + */ +MUST_USE_RES uintptr_t StaticPaymentOutputDescriptor_max_witness_length(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg); + /** * Serialize the StaticPaymentOutputDescriptor object into a byte array which can be read by StaticPaymentOutputDescriptor_read */ @@ -40081,6 +43222,11 @@ struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_ou */ struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a); +/** + * Generates a non-cryptographic 64-bit hash of the SpendableOutputDescriptor. + */ +uint64_t SpendableOutputDescriptor_hash(const struct LDKSpendableOutputDescriptor *NONNULL_PTR o); + /** * Checks if two SpendableOutputDescriptors contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -40115,7 +43261,7 @@ struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescripto * * We do not enforce that outputs meet the dust limit or that any output scripts are standard. */ -MUST_USE_RES struct LDKCResult_C2Tuple_PartiallySignedTransactionusizeZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_PackedLockTimeZ locktime); +MUST_USE_RES struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ SpendableOutputDescriptor_create_spendable_outputs_psbt(struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); /** * Calls the free function if one is set @@ -40247,7 +43393,10 @@ MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey fun /** * Returns the counterparty's pubkeys. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40256,30 +43405,36 @@ MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(con * transactions, i.e., the amount of time that we have to wait to recover our funds if we * broadcast a transaction. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ -MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); /** * Returns the `contest_delay` value specified by us and applied on transactions broadcastable * by our counterparty, i.e., the amount of time that they have to wait to recover their funds * if they broadcast a transaction. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ -MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg); /** * Returns whether the holder is the initiator. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. */ -MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_boolZ InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg); /** * Funding outpoint * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40287,7 +43442,10 @@ MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDK * Returns a [`ChannelTransactionParameters`] for this channel, to be used when verifying or * building transactions. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40295,7 +43453,10 @@ MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_p * Returns the channel type features of the channel parameters. Should be helpful for * determining a channel's category, i. e. legacy/anchors/taproot/etc. * - * Will panic if [`ChannelSigner::provide_channel_parameters`] has not been called before. + * Will return `None` if [`ChannelSigner::provide_channel_parameters`] has not been called. + * In general, this is safe to `unwrap` only in [`ChannelSigner`] implementation. + * + * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg); @@ -40405,7 +43566,7 @@ MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const stru * May panic if the [`SpendableOutputDescriptor`]s were not generated by channels which used * this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`]. */ -MUST_USE_RES struct LDKCResult_PartiallySignedTransactionNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt); +MUST_USE_RES struct LDKCResult_CVec_u8ZNoneZ KeysManager_sign_spendable_outputs_psbt(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_u8Z psbt); /** * Creates a [`Transaction`] which spends the given descriptors to the given outputs, plus an @@ -40426,7 +43587,7 @@ MUST_USE_RES struct LDKCResult_PartiallySignedTransactionNoneZ KeysManager_sign_ * May panic if the [`SpendableOutputDescriptor`]s were not generated by channels which used * this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`]. */ -MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_PackedLockTimeZ locktime); +MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); /** * Constructs a new EntropySource which calls the relevant methods on this_arg. @@ -40487,7 +43648,7 @@ MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t ( /** * See [`KeysManager::spend_spendable_outputs`] for documentation on this method. */ -MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_PackedLockTimeZ locktime); +MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); /** * See [`KeysManager::derive_channel_keys`] for documentation on this method. @@ -40649,6 +43810,14 @@ bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSend */ void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr); +/** + * Create an onion message with contents `message` to the destination of `path`. + * Returns (introduction_node_id, onion_msg) + * + * Note that reply_path (or a relevant inner pointer) may be NULL or all-0s to represent None + */ +struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, struct LDKOnionMessagePath path, struct LDKOnionMessageContents message, struct LDKBlindedPath reply_path); + /** * Constructs a new `OnionMessenger` to send, forward, and delegate received onion messages to * their respective handlers. @@ -40726,6 +43895,75 @@ struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PT */ struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b); +/** + * Frees any resources used by the Packet, if is_owned is set and inner is non-NULL. + */ +void Packet_free(struct LDKPacket this_obj); + +/** + * Bolt 04 version number + */ +uint8_t Packet_get_version(const struct LDKPacket *NONNULL_PTR this_ptr); + +/** + * Bolt 04 version number + */ +void Packet_set_version(struct LDKPacket *NONNULL_PTR this_ptr, uint8_t val); + +/** + * A random sepc256k1 point, used to build the ECDH shared secret to decrypt hop_data + */ +struct LDKPublicKey Packet_get_public_key(const struct LDKPacket *NONNULL_PTR this_ptr); + +/** + * A random sepc256k1 point, used to build the ECDH shared secret to decrypt hop_data + */ +void Packet_set_public_key(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * Encrypted payload for the next hop + * + * Returns a copy of the field. + */ +struct LDKCVec_u8Z Packet_get_hop_data(const struct LDKPacket *NONNULL_PTR this_ptr); + +/** + * Encrypted payload for the next hop + */ +void Packet_set_hop_data(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + +/** + * HMAC to verify the integrity of hop_data + */ +const uint8_t (*Packet_get_hmac(const struct LDKPacket *NONNULL_PTR this_ptr))[32]; + +/** + * HMAC to verify the integrity of hop_data + */ +void Packet_set_hmac(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + +/** + * Constructs a new Packet given each field + */ +MUST_USE_RES struct LDKPacket Packet_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg); + +/** + * Creates a copy of the Packet + */ +struct LDKPacket Packet_clone(const struct LDKPacket *NONNULL_PTR orig); + +/** + * Checks if two Packets contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + * Two objects with NULL inner values will be considered "equal" here. + */ +bool Packet_eq(const struct LDKPacket *NONNULL_PTR a, const struct LDKPacket *NONNULL_PTR b); + +/** + * Serialize the Packet object into a byte array which can be read by Packet_read + */ +struct LDKCVec_u8Z Packet_write(const struct LDKPacket *NONNULL_PTR obj); + /** * Frees any resources used by the OnionMessageContents */ @@ -40761,6 +43999,55 @@ void CustomOnionMessageContents_free(struct LDKCustomOnionMessageContents this_p */ void BlindedPath_free(struct LDKBlindedPath this_obj); +/** + * To send to a blinded path, the sender first finds a route to the unblinded + * `introduction_node_id`, which can unblind its [`encrypted_payload`] to find out the onion + * message or payment's next hop and forward it along. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +struct LDKPublicKey BlindedPath_get_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + +/** + * To send to a blinded path, the sender first finds a route to the unblinded + * `introduction_node_id`, which can unblind its [`encrypted_payload`] to find out the onion + * message or payment's next hop and forward it along. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +void BlindedPath_set_introduction_node_id(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * Used by the introduction node to decrypt its [`encrypted_payload`] to forward the onion + * message or payment. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + +/** + * Used by the introduction node to decrypt its [`encrypted_payload`] to forward the onion + * message or payment. + * + * [`encrypted_payload`]: BlindedHop::encrypted_payload + */ +void BlindedPath_set_blinding_point(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * The hops composing the blinded path. + */ +struct LDKCVec_BlindedHopZ BlindedPath_get_blinded_hops(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + +/** + * The hops composing the blinded path. + */ +void BlindedPath_set_blinded_hops(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val); + +/** + * Constructs a new BlindedPath given each field + */ +MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKPublicKey introduction_node_id_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg); + /** * Creates a copy of the BlindedPath */ @@ -40783,6 +44070,33 @@ bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDK */ void BlindedHop_free(struct LDKBlindedHop this_obj); +/** + * The blinded node id of this hop in a [`BlindedPath`]. + */ +struct LDKPublicKey BlindedHop_get_blinded_node_id(const struct LDKBlindedHop *NONNULL_PTR this_ptr); + +/** + * The blinded node id of this hop in a [`BlindedPath`]. + */ +void BlindedHop_set_blinded_node_id(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * The encrypted payload intended for this hop in a [`BlindedPath`]. + * + * Returns a copy of the field. + */ +struct LDKCVec_u8Z BlindedHop_get_encrypted_payload(const struct LDKBlindedHop *NONNULL_PTR this_ptr); + +/** + * The encrypted payload intended for this hop in a [`BlindedPath`]. + */ +void BlindedHop_set_encrypted_payload(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + +/** + * Constructs a new BlindedHop given each field + */ +MUST_USE_RES struct LDKBlindedHop BlindedHop_new(struct LDKPublicKey blinded_node_id_arg, struct LDKCVec_u8Z encrypted_payload_arg); + /** * Creates a copy of the BlindedHop */ @@ -40808,6 +44122,11 @@ bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBl */ MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source); +/** + * Create a one-hop blinded path for a payment. + */ +MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, const struct LDKEntropySource *NONNULL_PTR entropy_source); + /** * Serialize the BlindedPath object into a byte array which can be read by BlindedPath_read */ @@ -40828,6 +44147,270 @@ struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj) */ struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser); +/** + * Frees any resources used by the ForwardNode, if is_owned is set and inner is non-NULL. + */ +void ForwardNode_free(struct LDKForwardNode this_obj); + +/** + * The TLVs for this node's [`BlindedHop`], where the fee parameters contained within are also + * used for [`BlindedPayInfo`] construction. + */ +struct LDKForwardTlvs ForwardNode_get_tlvs(const struct LDKForwardNode *NONNULL_PTR this_ptr); + +/** + * The TLVs for this node's [`BlindedHop`], where the fee parameters contained within are also + * used for [`BlindedPayInfo`] construction. + */ +void ForwardNode_set_tlvs(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKForwardTlvs val); + +/** + * This node's pubkey. + */ +struct LDKPublicKey ForwardNode_get_node_id(const struct LDKForwardNode *NONNULL_PTR this_ptr); + +/** + * This node's pubkey. + */ +void ForwardNode_set_node_id(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKPublicKey val); + +/** + * The maximum value, in msat, that may be accepted by this node. + */ +uint64_t ForwardNode_get_htlc_maximum_msat(const struct LDKForwardNode *NONNULL_PTR this_ptr); + +/** + * The maximum value, in msat, that may be accepted by this node. + */ +void ForwardNode_set_htlc_maximum_msat(struct LDKForwardNode *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Constructs a new ForwardNode given each field + */ +MUST_USE_RES struct LDKForwardNode ForwardNode_new(struct LDKForwardTlvs tlvs_arg, struct LDKPublicKey node_id_arg, uint64_t htlc_maximum_msat_arg); + +/** + * Creates a copy of the ForwardNode + */ +struct LDKForwardNode ForwardNode_clone(const struct LDKForwardNode *NONNULL_PTR orig); + +/** + * Frees any resources used by the ForwardTlvs, if is_owned is set and inner is non-NULL. + */ +void ForwardTlvs_free(struct LDKForwardTlvs this_obj); + +/** + * The short channel id this payment should be forwarded out over. + */ +uint64_t ForwardTlvs_get_short_channel_id(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * The short channel id this payment should be forwarded out over. + */ +void ForwardTlvs_set_short_channel_id(struct LDKForwardTlvs *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Payment parameters for relaying over [`Self::short_channel_id`]. + */ +struct LDKPaymentRelay ForwardTlvs_get_payment_relay(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * Payment parameters for relaying over [`Self::short_channel_id`]. + */ +void ForwardTlvs_set_payment_relay(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentRelay val); + +/** + * Payment constraints for relaying over [`Self::short_channel_id`]. + */ +struct LDKPaymentConstraints ForwardTlvs_get_payment_constraints(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * Payment constraints for relaying over [`Self::short_channel_id`]. + */ +void ForwardTlvs_set_payment_constraints(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val); + +/** + * Supported and required features when relaying a payment onion containing this object's + * corresponding [`BlindedHop::encrypted_payload`]. + * + * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload + */ +struct LDKBlindedHopFeatures ForwardTlvs_get_features(const struct LDKForwardTlvs *NONNULL_PTR this_ptr); + +/** + * Supported and required features when relaying a payment onion containing this object's + * corresponding [`BlindedHop::encrypted_payload`]. + * + * [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload + */ +void ForwardTlvs_set_features(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val); + +/** + * Constructs a new ForwardTlvs given each field + */ +MUST_USE_RES struct LDKForwardTlvs ForwardTlvs_new(uint64_t short_channel_id_arg, struct LDKPaymentRelay payment_relay_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKBlindedHopFeatures features_arg); + +/** + * Creates a copy of the ForwardTlvs + */ +struct LDKForwardTlvs ForwardTlvs_clone(const struct LDKForwardTlvs *NONNULL_PTR orig); + +/** + * Frees any resources used by the ReceiveTlvs, if is_owned is set and inner is non-NULL. + */ +void ReceiveTlvs_free(struct LDKReceiveTlvs this_obj); + +/** + * Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together. + */ +const uint8_t (*ReceiveTlvs_get_payment_secret(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr))[32]; + +/** + * Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together. + */ +void ReceiveTlvs_set_payment_secret(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + +/** + * Constraints for the receiver of this payment. + */ +struct LDKPaymentConstraints ReceiveTlvs_get_payment_constraints(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr); + +/** + * Constraints for the receiver of this payment. + */ +void ReceiveTlvs_set_payment_constraints(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val); + +/** + * Constructs a new ReceiveTlvs given each field + */ +MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg); + +/** + * Creates a copy of the ReceiveTlvs + */ +struct LDKReceiveTlvs ReceiveTlvs_clone(const struct LDKReceiveTlvs *NONNULL_PTR orig); + +/** + * Frees any resources used by the PaymentRelay, if is_owned is set and inner is non-NULL. + */ +void PaymentRelay_free(struct LDKPaymentRelay this_obj); + +/** + * Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`]. + */ +uint16_t PaymentRelay_get_cltv_expiry_delta(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); + +/** + * Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`]. + */ +void PaymentRelay_set_cltv_expiry_delta(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint16_t val); + +/** + * Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over + * this [`BlindedHop`], (i.e., 10,000 is 1%). + */ +uint32_t PaymentRelay_get_fee_proportional_millionths(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); + +/** + * Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over + * this [`BlindedHop`], (i.e., 10,000 is 1%). + */ +void PaymentRelay_set_fee_proportional_millionths(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val); + +/** + * Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`]. + */ +uint32_t PaymentRelay_get_fee_base_msat(const struct LDKPaymentRelay *NONNULL_PTR this_ptr); + +/** + * Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`]. + */ +void PaymentRelay_set_fee_base_msat(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val); + +/** + * Constructs a new PaymentRelay given each field + */ +MUST_USE_RES struct LDKPaymentRelay PaymentRelay_new(uint16_t cltv_expiry_delta_arg, uint32_t fee_proportional_millionths_arg, uint32_t fee_base_msat_arg); + +/** + * Creates a copy of the PaymentRelay + */ +struct LDKPaymentRelay PaymentRelay_clone(const struct LDKPaymentRelay *NONNULL_PTR orig); + +/** + * Frees any resources used by the PaymentConstraints, if is_owned is set and inner is non-NULL. + */ +void PaymentConstraints_free(struct LDKPaymentConstraints this_obj); + +/** + * The maximum total CLTV delta that is acceptable when relaying a payment over this + * [`BlindedHop`]. + */ +uint32_t PaymentConstraints_get_max_cltv_expiry(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr); + +/** + * The maximum total CLTV delta that is acceptable when relaying a payment over this + * [`BlindedHop`]. + */ +void PaymentConstraints_set_max_cltv_expiry(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint32_t val); + +/** + * The minimum value, in msat, that may be accepted by the node corresponding to this + * [`BlindedHop`]. + */ +uint64_t PaymentConstraints_get_htlc_minimum_msat(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr); + +/** + * The minimum value, in msat, that may be accepted by the node corresponding to this + * [`BlindedHop`]. + */ +void PaymentConstraints_set_htlc_minimum_msat(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Constructs a new PaymentConstraints given each field + */ +MUST_USE_RES struct LDKPaymentConstraints PaymentConstraints_new(uint32_t max_cltv_expiry_arg, uint64_t htlc_minimum_msat_arg); + +/** + * Creates a copy of the PaymentConstraints + */ +struct LDKPaymentConstraints PaymentConstraints_clone(const struct LDKPaymentConstraints *NONNULL_PTR orig); + +/** + * Serialize the ForwardTlvs object into a byte array which can be read by ForwardTlvs_read + */ +struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj); + +/** + * Serialize the ReceiveTlvs object into a byte array which can be read by ReceiveTlvs_read + */ +struct LDKCVec_u8Z ReceiveTlvs_write(const struct LDKReceiveTlvs *NONNULL_PTR obj); + +/** + * Read a ReceiveTlvs from a byte array, created by ReceiveTlvs_write + */ +struct LDKCResult_ReceiveTlvsDecodeErrorZ ReceiveTlvs_read(struct LDKu8slice ser); + +/** + * Serialize the PaymentRelay object into a byte array which can be read by PaymentRelay_read + */ +struct LDKCVec_u8Z PaymentRelay_write(const struct LDKPaymentRelay *NONNULL_PTR obj); + +/** + * Read a PaymentRelay from a byte array, created by PaymentRelay_write + */ +struct LDKCResult_PaymentRelayDecodeErrorZ PaymentRelay_read(struct LDKu8slice ser); + +/** + * Serialize the PaymentConstraints object into a byte array which can be read by PaymentConstraints_read + */ +struct LDKCVec_u8Z PaymentConstraints_write(const struct LDKPaymentConstraints *NONNULL_PTR obj); + +/** + * Read a PaymentConstraints from a byte array, created by PaymentConstraints_write + */ +struct LDKCResult_PaymentConstraintsDecodeErrorZ PaymentConstraints_read(struct LDKu8slice ser); + /** * Frees any resources used by the PaymentPurpose */ @@ -40841,7 +44424,7 @@ struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NO /** * Utility method to constructs a new InvoicePayment-variant PaymentPurpose */ -struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_PaymentPreimageZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); +struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); /** * Utility method to constructs a new SpontaneousPayment-variant PaymentPurpose @@ -40864,6 +44447,102 @@ struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_ */ struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser); +/** + * Frees any resources used by the ClaimedHTLC, if is_owned is set and inner is non-NULL. + */ +void ClaimedHTLC_free(struct LDKClaimedHTLC this_obj); + +/** + * The `channel_id` of the channel over which the HTLC was received. + */ +const uint8_t (*ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr))[32]; + +/** + * The `channel_id` of the channel over which the HTLC was received. + */ +void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + +/** + * The `user_channel_id` of the channel over which the HTLC was received. This is the value + * passed in to [`ChannelManager::create_channel`] for outbound channels, or to + * [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. + * + * This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This + * should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but + * was not actually claimed until after upgrading.) + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels + */ +struct LDKU128 ClaimedHTLC_get_user_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); + +/** + * The `user_channel_id` of the channel over which the HTLC was received. This is the value + * passed in to [`ChannelManager::create_channel`] for outbound channels, or to + * [`ChannelManager::accept_inbound_channel`] for inbound channels if + * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise + * `user_channel_id` will be randomized for an inbound channel. + * + * This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This + * should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but + * was not actually claimed until after upgrading.) + * + * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel + * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel + * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels + */ +void ClaimedHTLC_set_user_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKU128 val); + +/** + * The block height at which this HTLC expires. + */ +uint32_t ClaimedHTLC_get_cltv_expiry(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); + +/** + * The block height at which this HTLC expires. + */ +void ClaimedHTLC_set_cltv_expiry(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint32_t val); + +/** + * The amount (in msats) of this part of an MPP. + */ +uint64_t ClaimedHTLC_get_value_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); + +/** + * The amount (in msats) of this part of an MPP. + */ +void ClaimedHTLC_set_value_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val); + +/** + * Constructs a new ClaimedHTLC given each field + */ +MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg); + +/** + * Creates a copy of the ClaimedHTLC + */ +struct LDKClaimedHTLC ClaimedHTLC_clone(const struct LDKClaimedHTLC *NONNULL_PTR orig); + +/** + * Checks if two ClaimedHTLCs contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + * Two objects with NULL inner values will be considered "equal" here. + */ +bool ClaimedHTLC_eq(const struct LDKClaimedHTLC *NONNULL_PTR a, const struct LDKClaimedHTLC *NONNULL_PTR b); + +/** + * Serialize the ClaimedHTLC object into a byte array which can be read by ClaimedHTLC_read + */ +struct LDKCVec_u8Z ClaimedHTLC_write(const struct LDKClaimedHTLC *NONNULL_PTR obj); + +/** + * Read a ClaimedHTLC from a byte array, created by ClaimedHTLC_write + */ +struct LDKCResult_ClaimedHTLCDecodeErrorZ ClaimedHTLC_read(struct LDKu8slice ser); + /** * Frees any resources used by the PathFailure */ @@ -40955,6 +44634,11 @@ struct LDKClosureReason ClosureReason_outdated_channel_manager(void); */ struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void); +/** + * Utility method to constructs a new FundingBatchClosure-variant ClosureReason + */ +struct LDKClosureReason ClosureReason_funding_batch_closure(void); + /** * Checks if two ClosureReasons contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. @@ -41086,17 +44770,17 @@ struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporar /** * Utility method to constructs a new PaymentClaimable-variant Event */ -struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); +struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKCOption_ThirtyTwoBytesZ via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); /** * Utility method to constructs a new PaymentClaimed-variant Event */ -struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose); +struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKCVec_ClaimedHTLCZ htlcs, struct LDKCOption_u64Z sender_intended_total_msat); /** * Utility method to constructs a new PaymentSent-variant Event */ -struct LDKEvent Event_payment_sent(struct LDKCOption_PaymentIdZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat); +struct LDKEvent Event_payment_sent(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat); /** * Utility method to constructs a new PaymentFailed-variant Event @@ -41106,12 +44790,12 @@ struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct /** * Utility method to constructs a new PaymentPathSuccessful-variant Event */ -struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_PaymentHashZ payment_hash, struct LDKPath path); +struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKPath path); /** * Utility method to constructs a new PaymentPathFailed-variant Event */ -struct LDKEvent Event_payment_path_failed(struct LDKCOption_PaymentIdZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id); +struct LDKEvent Event_payment_path_failed(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id); /** * Utility method to constructs a new ProbeSuccessful-variant Event @@ -41136,17 +44820,17 @@ struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uin /** * Utility method to constructs a new SpendableOutputs-variant Event */ -struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs); +struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKCOption_ThirtyTwoBytesZ channel_id); /** * Utility method to constructs a new PaymentForwarded-variant Event */ -struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); +struct LDKEvent Event_payment_forwarded(struct LDKCOption_ThirtyTwoBytesZ prev_channel_id, struct LDKCOption_ThirtyTwoBytesZ next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); /** * Utility method to constructs a new ChannelPending-variant Event */ -struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKThirtyTwoBytes former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo); +struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo); /** * Utility method to constructs a new ChannelReady-variant Event @@ -41156,7 +44840,7 @@ struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct /** * Utility method to constructs a new ChannelClosed-variant Event */ -struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason); +struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats); /** * Utility method to constructs a new DiscardFunding-variant Event @@ -41277,7 +44961,7 @@ struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey /** * Utility method to constructs a new SendTxAbort-variant MessageSendEvent */ -struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAddInput msg); +struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAbort msg); /** * Utility method to constructs a new SendChannelReady-variant MessageSendEvent @@ -41442,6 +45126,16 @@ struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const st */ bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b); +/** + * Serialize the ChannelDerivationParameters object into a byte array which can be read by ChannelDerivationParameters_read + */ +struct LDKCVec_u8Z ChannelDerivationParameters_write(const struct LDKChannelDerivationParameters *NONNULL_PTR obj); + +/** + * Read a ChannelDerivationParameters from a byte array, created by ChannelDerivationParameters_write + */ +struct LDKCResult_ChannelDerivationParametersDecodeErrorZ ChannelDerivationParameters_read(struct LDKu8slice ser); + /** * Frees any resources used by the AnchorDescriptor, if is_owned is set and inner is non-NULL. */ @@ -41507,7 +45201,7 @@ MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDK * Returns the fully signed witness required to spend the anchor output in the commitment * transaction. */ -MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKSignature signature); +MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature); /** * Derives the channel signer required to sign the anchor input. @@ -41571,23 +45265,23 @@ void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, str * The preimage, if `Some`, to claim the HTLC output with. If `None`, the timeout path must be * taken. */ -struct LDKCOption_PaymentPreimageZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); +struct LDKCOption_ThirtyTwoBytesZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); /** * The preimage, if `Some`, to claim the HTLC output with. If `None`, the timeout path must be * taken. */ -void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_PaymentPreimageZ val); +void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /** * The counterparty's signature required to spend the HTLC output. */ -struct LDKSignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); +struct LDKECDSASignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); /** * The counterparty's signature required to spend the HTLC output. */ -void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKSignature val); +void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKECDSASignature val); /** * Creates a copy of the HTLCDescriptor @@ -41601,6 +45295,16 @@ struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NO */ bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b); +/** + * Serialize the HTLCDescriptor object into a byte array which can be read by HTLCDescriptor_read + */ +struct LDKCVec_u8Z HTLCDescriptor_write(const struct LDKHTLCDescriptor *NONNULL_PTR obj); + +/** + * Read a HTLCDescriptor from a byte array, created by HTLCDescriptor_write + */ +struct LDKCResult_HTLCDescriptorDecodeErrorZ HTLCDescriptor_read(struct LDKu8slice ser); + /** * Returns the outpoint of the HTLC output in the commitment transaction. This is the outpoint * being spent by the HTLC input in the HTLC transaction. @@ -41634,7 +45338,7 @@ MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHT * Returns the fully signed witness required to spend the HTLC output in the commitment * transaction. */ -MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKSignature signature, struct LDKu8slice witness_script); +MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature, struct LDKu8slice witness_script); /** * Derives the channel signer required to sign the HTLC input. @@ -41882,25 +45586,25 @@ MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_n void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event); /** - * Frees any resources used by the FilesystemPersister, if is_owned is set and inner is non-NULL. + * Frees any resources used by the FilesystemStore, if is_owned is set and inner is non-NULL. */ -void FilesystemPersister_free(struct LDKFilesystemPersister this_obj); +void FilesystemStore_free(struct LDKFilesystemStore this_obj); /** - * Initialize a new FilesystemPersister and set the path to the individual channels' - * files. + * Constructs a new [`FilesystemStore`]. */ -MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data); +MUST_USE_RES struct LDKFilesystemStore FilesystemStore_new(struct LDKStr data_dir); /** - * Get the directory which was provided when this persister was initialized. + * Returns the data directory. */ -MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKStr FilesystemStore_get_data_dir(const struct LDKFilesystemStore *NONNULL_PTR this_arg); /** - * Read `ChannelMonitor`s from disk. + * Constructs a new KVStore which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned KVStore must be freed before this_arg is */ -MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKEntropySource entropy_source, const struct LDKSignerProvider *NONNULL_PTR signer_provider); +struct LDKKVStore FilesystemStore_as_KVStore(const struct LDKFilesystemStore *NONNULL_PTR this_arg); /** * Frees any resources used by the BackgroundProcessor, if is_owned is set and inner is non-NULL. @@ -41986,7 +45690,7 @@ MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKP * * [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager */ -MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg); +MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg); /** * Stop `BackgroundProcessor`'s thread, returning any error that occurred while persisting @@ -41999,7 +45703,7 @@ MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBac * * [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager */ -MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg); +MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg); /** * Frees any resources used by the Bolt11ParseError @@ -42586,7 +46290,7 @@ MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(c /** * Recovers the public key used for signing the invoice from the recoverable signature. */ -MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCResult_PayeePubKeySecp256k1ErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg); /** * Checks if the signature is valid for the included payee public key or if none exists if it's @@ -42635,7 +46339,7 @@ MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKR */ MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); -MUST_USE_RES struct LDKCOption_PaymentSecretZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg); @@ -42780,7 +46484,7 @@ MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struc * Returns the Duration since the Unix epoch at which the invoice expires. * Returning None if overflow occurred. */ -MUST_USE_RES struct LDKCOption_DurationZ Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); /** * Returns the invoice's expiry time, if present, otherwise [`DEFAULT_EXPIRY_TIME`]. @@ -42818,7 +46522,7 @@ MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDK /** * Returns a list of all fallback addresses as [`Address`]es */ -MUST_USE_RES struct LDKCVec_AddressZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); +MUST_USE_RES struct LDKCVec_StrZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); /** * Returns a list of all routes included in the invoice @@ -43035,7 +46739,7 @@ struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NO * * If you wish to use a different payment idempotency token, see [`pay_invoice_with_id`]. */ -struct LDKCResult_PaymentIdPaymentErrorZ pay_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ pay_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); /** * Pays the given [`Bolt11Invoice`] with a custom idempotency key, retrying if needed based on @@ -43062,7 +46766,7 @@ struct LDKCResult_NonePaymentErrorZ pay_invoice_with_id(const struct LDKBolt11In * If you wish to use a different payment idempotency token, see * [`pay_zero_value_invoice_with_id`]. */ -struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); +struct LDKCResult_ThirtyTwoBytesPaymentErrorZ pay_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); /** * Pays the given zero-value [`Bolt11Invoice`] using the given amount and custom idempotency key, @@ -43079,6 +46783,21 @@ struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDK */ struct LDKCResult_NonePaymentErrorZ pay_zero_value_invoice_with_id(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager); +/** + * Sends payment probes over all paths of a route that would be used to pay the given invoice. + * + * See [`ChannelManager::send_preflight_probes`] for more information. + */ +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ preflight_probe_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKCOption_u64Z liquidity_limit_multiplier); + +/** + * Sends payment probes over all paths of a route that would be used to pay the given zero-value + * invoice using the given amount. + * + * See [`ChannelManager::send_preflight_probes`] for more information. + */ +struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ preflight_probe_zero_value_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msat, const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKCOption_u64Z liquidity_limit_multiplier); + /** * Frees any resources used by the PaymentError */ @@ -43105,6 +46824,32 @@ struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a); */ bool PaymentError_eq(const struct LDKPaymentError *NONNULL_PTR a, const struct LDKPaymentError *NONNULL_PTR b); +/** + * Frees any resources used by the ProbingError + */ +void ProbingError_free(struct LDKProbingError this_ptr); + +/** + * Creates a copy of the ProbingError + */ +struct LDKProbingError ProbingError_clone(const struct LDKProbingError *NONNULL_PTR orig); + +/** + * Utility method to constructs a new Invoice-variant ProbingError + */ +struct LDKProbingError ProbingError_invoice(struct LDKStr a); + +/** + * Utility method to constructs a new Sending-variant ProbingError + */ +struct LDKProbingError ProbingError_sending(struct LDKProbeSendFailure a); + +/** + * Checks if two ProbingErrors contain equal inner contents. + * This ignores pointers and is_owned flags and looks at the values in fields. + */ +bool ProbingError_eq(const struct LDKProbingError *NONNULL_PTR a, const struct LDKProbingError *NONNULL_PTR b); + /** * Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\" * See [`PhantomKeysManager`] for more information on phantom node payments. @@ -43147,7 +46892,7 @@ bool PaymentError_eq(const struct LDKPaymentError *NONNULL_PTR a, const struct L * This can be used in a `no_std` environment, where [`std::time::SystemTime`] is not * available and the current time is supplied by the caller. */ -struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_PaymentHashZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); +struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); /** * Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\" @@ -43189,7 +46934,7 @@ struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice(struc * This can be used in a `no_std` environment, where [`std::time::SystemTime`] is not * available and the current time is supplied by the caller. */ -struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_PaymentHashZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); +struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKCOption_ThirtyTwoBytesZ payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch); /** * Utility to construct an invoice. Generally, unless you want to do something like a custom diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Info.plist b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Info.plist index 4bd4f76f..7495c942 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Info.plist and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Info.plist differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/LightningDevKit b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/LightningDevKit index 8b5d41dd..c4f4118f 100755 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/LightningDevKit and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/LightningDevKit differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc index 5077a016..e923e3b6 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface index 9472702a..f02ce290 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -7,561 +7,1358 @@ import Foundation @_exported import LightningDevKit import Swift import _Concurrency -public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput +public typealias Result_SocketAddressDecodeErrorZ = LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias TxComplete = LightningDevKit.Bindings.TxComplete +public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool + public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public func intoTransaction() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler +public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) - public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + @objc deinit + } +} +public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? + public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) + public func getMessage() -> LightningDevKit.Bindings.UntrustedString + public func setMessage(val: LightningDevKit.Bindings.UntrustedString) + public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? @objc deinit } } -public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC +public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getFailureCode() -> Swift.UInt16 - public func setFailureCode(val: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) + public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider +public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] - open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner - open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - open func getDestinationScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? @objc deinit } } -public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getEnabled() -> Swift.Bool - public func setEnabled(val: Swift.Bool) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? - public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) - public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func getA() -> [Swift.UInt8] + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func channel() -> LightningDevKit.Bindings.ChannelInfo + public func htlcMaximumMsat() -> Swift.UInt64 + public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ +public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? @objc deinit } } -public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField +public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTlvFieldnum() -> Swift.UInt64 - public func setTlvFieldnum(val: Swift.UInt64) - public func getSuggestedValue() -> [Swift.UInt8]? - public func setSuggestedValue(val: [Swift.UInt8]?) - public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeId? @objc deinit } } -public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ +public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +public typealias Record = LightningDevKit.Bindings.Record extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OffersMessage? + public func getLevel() -> LightningDevKit.Bindings.Level + public func setLevel(val: LightningDevKit.Bindings.Level) + public func getArgs() -> Swift.String + public func setArgs(val: Swift.String) + public func getModulePath() -> Swift.String + public func setModulePath(val: Swift.String) + public func getFile() -> Swift.String + public func setFile(val: Swift.String) + public func getLine() -> Swift.UInt32 + public func setLine(val: Swift.UInt32) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ +public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxComplete? + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getOnionRoutingPacket() -> LightningDevKit.Bindings.Packet + public func setOnionRoutingPacket(val: LightningDevKit.Bindings.Packet) + public init(blindingPointArg: [Swift.UInt8], onionRoutingPacketArg: LightningDevKit.Bindings.Packet) + public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ +public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? + public func getValue() -> LightningDevKit.Bindings.MonitorEvent? @objc deinit } } -public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor +public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SpendableOutputDescriptorType { - case StaticOutput - case DelayedPaymentOutput - case StaticPaymentOutput - public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public enum EffectiveCapacityType { + case ExactLiquidity + case AdvertisedMaxHTLC + case Total + case Infinite + case HintMaxHTLC + case Unknown + public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType - public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? - public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? - public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType + public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity + public func asMsat() -> Swift.UInt64 + public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? + public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? + public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? + public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? @objc deinit - @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getOutput() -> LightningDevKit.Bindings.TxOut + public func getLiquidityMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCapacityMsat() -> Swift.UInt64 + public func getHtlcMaximumMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 @objc deinit } } } -public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ +public typealias PathFailure = LightningDevKit.Bindings.PathFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? + public enum PathFailureType { + case InitialSend + case OnPath + public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType + public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure + public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure + public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? + public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? @objc deinit + @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> LightningDevKit.Bindings.APIError + @objc deinit + } + @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? + @objc deinit + } } } -public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ +public typealias Result_SchnorrSignatureNoneZ = LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SchnorrSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ +public typealias Watch = LightningDevKit.Bindings.Watch extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public init() + open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] @objc deinit } } -public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ +public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InvoiceError? + public func getValue() -> LightningDevKit.Bindings.BigSize? @objc deinit } } -public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? @objc deinit } } -public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore +public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asLockableScore() -> LightningDevKit.Bindings.LockableScore - public func write() -> [Swift.UInt8] - public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore - public init(score: LightningDevKit.Bindings.Score) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? @objc deinit } } -public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice - public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func timestamp() -> Swift.UInt64 - public func durationSinceEpoch() -> Swift.UInt64 - public func paymentHash() -> [Swift.UInt8]? - public func payeePubKey() -> [Swift.UInt8]? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func recoverPayeePubKey() -> [Swift.UInt8] - public func expiresAt() -> Swift.UInt64? - public func expiryTime() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func durationUntilExpiry() -> Swift.UInt64 - public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 - public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool - public func minFinalCltvExpiryDelta() -> Swift.UInt64 - public func fallbackAddresses() -> [Swift.String] - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func routeHints() -> [LightningDevKit.Bindings.RouteHint] - public func currency() -> LightningDevKit.Bindings.Currency - public func amountMilliSatoshis() -> Swift.UInt64? - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func toStr() -> Swift.String - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RoutingFees? @objc deinit } } -public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs +public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(scorer: LightningDevKit.Bindings.Score, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias Currency = LightningDevKit.Bindings.Currency -extension LightningDevKit.Bindings { - public enum Currency { - case Bitcoin - case BitcoinTestnet - case Regtest - case Simnet - case Signet - public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? @objc deinit } } -public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ClosureReasonType { - case CounterpartyForceClosed - case HolderForceClosed - case CooperativeClosure - case CommitmentTxConfirmed - case FundingTimedOut - case ProcessingError - case DisconnectedPeer - case OutdatedChannelManager - case CounterpartyCoopClosedUnfundedChannel - public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool + public enum MaxDustHTLCExposureType { + case FixedLimitMsat + case FeeRateMultiplier + public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType - public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason - public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason - public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason - public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason - public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason - public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType + public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? - public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public func getValueAsFixedLimitMsat() -> Swift.UInt64? + public func getValueAsFeeRateMultiplier() -> Swift.UInt64? @objc deinit - @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } } } -public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter +public typealias Result_ThirtyTwoBytesNoneZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) - public func asRouter() -> LightningDevKit.Bindings.Router + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + @objc deinit + } +} +public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias ReceiveTlvs = LightningDevKit.Bindings.ReceiveTlvs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ReceiveTlvs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public init(paymentSecretArg: [Swift.UInt8], paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ +public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) + public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) + public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbingError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.ProbingError? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? + @objc deinit + } +} +public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOffered() -> Swift.Bool + public func setOffered(val: Swift.Bool) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getTransactionOutputIndex() -> Swift.UInt32? + public func setTransactionOutputIndex(val: Swift.UInt32?) + public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) + public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias BigSize = LightningDevKit.Bindings.BigSize +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(lockableScore: LightningDevKit.Bindings.LockableScore) + open func write() -> [Swift.UInt8] + public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + @objc deinit + } +} +public typealias Result_HTLCDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_HTLCDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSigned? + public func getValue() -> LightningDevKit.Bindings.HTLCDescriptor? @objc deinit } } -public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError +public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ extension LightningDevKit.Bindings { - public enum Bolt12SemanticError { - case AlreadyExpired - case UnsupportedChain - case UnexpectedChain - case MissingAmount - case InvalidAmount - case InsufficientAmount - case UnexpectedAmount - case UnsupportedCurrency - case UnknownRequiredFeatures - case UnexpectedFeatures - case MissingDescription - case MissingSigningPubkey - case InvalidSigningPubkey - case UnexpectedSigningPubkey - case MissingQuantity - case InvalidQuantity - case UnexpectedQuantity - case InvalidMetadata - case UnexpectedMetadata - case MissingPayerMetadata - case MissingPayerId - case MissingPaths - case InvalidPayInfo - case MissingCreationTime - case MissingPaymentHash - case MissingSignature - public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsType? + @objc deinit } } -public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures +public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + @objc deinit + } +} +public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures public func requiresUnknownBitsFrom() -> Swift.Bool public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setPaymentMetadataOptional() - public func setPaymentMetadataRequired() - public func supportsPaymentMetadata() -> Swift.Bool - public func requiresPaymentMetadata() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public enum RetryableSendFailure { + case PaymentExpired + case RouteNotFound + case DuplicatePayment + public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MessageSendEventType { - case SendAcceptChannel - case SendAcceptChannelV2 - case SendOpenChannel + public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + @objc deinit + } +} +public typealias Result_ThirtyTwoBytesPaymentSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + @objc deinit + } +} +public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice + public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func timestamp() -> Swift.UInt64 + public func durationSinceEpoch() -> Swift.UInt64 + public func paymentHash() -> [Swift.UInt8]? + public func payeePubKey() -> [Swift.UInt8]? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func recoverPayeePubKey() -> [Swift.UInt8] + public func expiresAt() -> Swift.UInt64? + public func expiryTime() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func durationUntilExpiry() -> Swift.UInt64 + public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 + public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool + public func minFinalCltvExpiryDelta() -> Swift.UInt64 + public func fallbackAddresses() -> [Swift.String] + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func routeHints() -> [LightningDevKit.Bindings.RouteHint] + public func currency() -> LightningDevKit.Bindings.Currency + public func amountMilliSatoshis() -> Swift.UInt64? + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public func toStr() -> Swift.String + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func signature() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? + public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) + public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? + public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) + public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? + public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) + public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? + public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) + public func getChainMonitor() -> LightningDevKit.Bindings.Watch? + public func setChainMonitor(val: LightningDevKit.Bindings.Watch) + public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? + public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) + public func getRouter() -> LightningDevKit.Bindings.Router? + public func setRouter(val: LightningDevKit.Bindings.Router) + public func getLogger() -> LightningDevKit.Bindings.Logger? + public func setLogger(val: LightningDevKit.Bindings.Logger) + public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig + public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Currency = LightningDevKit.Bindings.Currency +extension LightningDevKit.Bindings { + public enum Currency { + case Bitcoin + case BitcoinTestnet + case Regtest + case Simnet + case Signet + public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_ECDSASignatureNoneZ = LightningDevKit.Bindings.Result_ECDSASignatureNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ECDSASignatureNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum PaymentPurposeType { + case InvoicePayment + case SpontaneousPayment + public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType + public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? + public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentPreimage() -> [Swift.UInt8]? + public func getPaymentSecret() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + @objc deinit + } +} +public typealias ForwardNode = LightningDevKit.Bindings.ForwardNode +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ForwardNode : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTlvs() -> LightningDevKit.Bindings.ForwardTlvs + public func setTlvs(val: LightningDevKit.Bindings.ForwardTlvs) + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public init(tlvsArg: LightningDevKit.Bindings.ForwardTlvs, nodeIdArg: [Swift.UInt8], htlcMaximumMsatArg: Swift.UInt64) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsInit? + @objc deinit + } +} +public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty + public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? + public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getShortChannelId() -> Swift.UInt64? + public func setShortChannelId(val: Swift.UInt64?) + public func getOutboundScidAlias() -> Swift.UInt64? + public func setOutboundScidAlias(val: Swift.UInt64?) + public func getInboundScidAlias() -> Swift.UInt64? + public func setInboundScidAlias(val: Swift.UInt64?) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getUnspendablePunishmentReserve() -> Swift.UInt64? + public func setUnspendablePunishmentReserve(val: Swift.UInt64?) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getFeerateSatPer1000Weight() -> Swift.UInt32? + public func setFeerateSatPer1000Weight(val: Swift.UInt32?) + public func getBalanceMsat() -> Swift.UInt64 + public func setBalanceMsat(val: Swift.UInt64) + public func getOutboundCapacityMsat() -> Swift.UInt64 + public func setOutboundCapacityMsat(val: Swift.UInt64) + public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 + public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) + public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 + public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) + public func getInboundCapacityMsat() -> Swift.UInt64 + public func setInboundCapacityMsat(val: Swift.UInt64) + public func getConfirmationsRequired() -> Swift.UInt32? + public func setConfirmationsRequired(val: Swift.UInt32?) + public func getConfirmations() -> Swift.UInt32? + public func setConfirmations(val: Swift.UInt32?) + public func getForceCloseSpendDelay() -> Swift.UInt16? + public func setForceCloseSpendDelay(val: Swift.UInt16?) + public func getIsOutbound() -> Swift.Bool + public func setIsOutbound(val: Swift.Bool) + public func getIsChannelReady() -> Swift.Bool + public func setIsChannelReady(val: Swift.Bool) + public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? + public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) + public func getIsUsable() -> Swift.Bool + public func setIsUsable(val: Swift.Bool) + public func getIsPublic() -> Swift.Bool + public func setIsPublic(val: Swift.Bool) + public func getInboundHtlcMinimumMsat() -> Swift.UInt64? + public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getInboundHtlcMaximumMsat() -> Swift.UInt64? + public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) + public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? + public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) + public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) + public func getInboundPaymentScid() -> Swift.UInt64? + public func getOutboundPaymentScid() -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias TaggedHash = LightningDevKit.Bindings.TaggedHash +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TaggedHash : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + @objc deinit + } +} +public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.UtxoLookupError? + public func getValue() -> LightningDevKit.Bindings.TxOut? + @objc deinit + } +} +public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func builtTransaction() -> [Swift.UInt8] + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_ChannelDerivationParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ChannelDerivationParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDerivationParameters) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDerivationParameters? + @objc deinit + } +} +public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getHtlcSignatures() -> [[Swift.UInt8]] + public func setHtlcSignatures(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ProbeSendFailure = LightningDevKit.Bindings.ProbeSendFailure +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ProbeSendFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ProbeSendFailureType { + case RouteNotFound + case SendingFailed + public static func == (a: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType, b: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType + public class func initWithRouteNotFound() -> LightningDevKit.Bindings.ProbeSendFailure + public class func initWithSendingFailed(a: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.ProbeSendFailure + public class func eq(a: LightningDevKit.Bindings.ProbeSendFailure, b: LightningDevKit.Bindings.ProbeSendFailure) -> Swift.Bool + public func getValueAsSendingFailed() -> LightningDevKit.Bindings.PaymentSendFailure? + @objc deinit + } +} +public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MonitorEventType { + case HTLCEvent + case HolderForceClosed + case Completed + public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType + public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithHolderForceClosed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent + public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValueAsHolderForceClosed() -> LightningDevKit.Bindings.OutPoint? + public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? + @objc deinit + @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + public func getMonitorUpdateId() -> Swift.UInt64 + @objc deinit + } + } +} +public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingSigned? + @objc deinit + } +} +public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getBlockHash() -> [Swift.UInt8]? + public func setBlockHash(val: [Swift.UInt8]?) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getScriptPubkey() -> [Swift.UInt8] + public func setScriptPubkey(val: [Swift.UInt8]) + public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum OffersMessageType { + case InvoiceRequest + case Invoice + case InvoiceError + public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType + public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage + public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool + public func tlvType() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? + public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? + public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + @objc deinit + } +} +public typealias Input = LightningDevKit.Bindings.Input +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut + public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt + open func disconnectSocket() + open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool + open func hash() -> Swift.UInt64 + @objc deinit + } +} +public typealias PaymentRelay = LightningDevKit.Bindings.PaymentRelay +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentRelay : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public init(cltvExpiryDeltaArg: Swift.UInt16, feeProportionalMillionthsArg: Swift.UInt32, feeBaseMsatArg: Swift.UInt32) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +extension LightningDevKit.Bindings { + public enum SiPrefix { + case Milli + case Micro + case Nano + case Pico + public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.InMemorySigner? + @objc deinit + } +} +public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHop? + @objc deinit + } +} +public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getFlags() -> Swift.UInt8 + public func setFlags(val: Swift.UInt8) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Offer? + @objc deinit + } +} +public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MessageSendEventType { + case SendAcceptChannel + case SendAcceptChannelV2 + case SendOpenChannel case SendOpenChannelV2 case SendFundingCreated case SendFundingSigned @@ -612,7 +1409,7 @@ extension LightningDevKit.Bindings { public class func initWithSendTxSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxInitRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxAckRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.MessageSendEvent - public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.MessageSendEvent + public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendChannelReady(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendAnnouncementSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithUpdateHtlcs(nodeId: [Swift.UInt8], updates: LightningDevKit.Bindings.CommitmentUpdate) -> LightningDevKit.Bindings.MessageSendEvent @@ -765,7 +1562,7 @@ extension LightningDevKit.Bindings { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.TxAddInput + public func getMsg() -> LightningDevKit.Bindings.TxAbort @objc deinit } @_hasMissingDesignatedInitializers public class SendChannelReady : LightningDevKit.NativeTypeWrapper { @@ -854,553 +1651,257 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class HandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getAction() -> LightningDevKit.Bindings.ErrorAction - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter - @objc deinit - } - } -} -public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOk() -> Swift.Bool - @objc deinit - } -} -public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getRevocationPubkey() -> [Swift.UInt8] - public func setRevocationPubkey(val: [Swift.UInt8]) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? - @objc deinit - } -} -public typealias Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? - @objc deinit - } -} -public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) - open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] - open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] - open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func channelKeysId() -> [Swift.UInt8] - open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - @objc deinit - } -} -public typealias Result__u832APIErrorZ = LightningDevKit.Bindings.Result__u832APIErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result__u832APIErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.BlindedHop] - public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 - public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? - @objc deinit - } -} -public typealias BestBlock = LightningDevKit.Bindings.BestBlock -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool - public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock - public init(blockHash: [Swift.UInt8], height: Swift.UInt32) - public func blockHash() -> [Swift.UInt8] - public func height() -> Swift.UInt32 - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 - public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) - public func getLiquidityOffsetHalfLife() -> Swift.UInt64 - public func setLiquidityOffsetHalfLife(val: Swift.UInt64) - public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget -extension LightningDevKit.Bindings { - public enum ConfirmationTarget { - case MempoolMinimum - case Background - case Normal - case HighPriority - public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.BlindedPath? - @objc deinit - } -} -public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public func getSats() -> Swift.UInt64 - public func setSats(val: Swift.UInt64) - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getHtlcSignatures() -> [[Swift.UInt8]] - public func setHtlcSignatures(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FailureCode = LightningDevKit.Bindings.FailureCode -extension LightningDevKit.Bindings { - public enum FailureCode { - case TemporaryNodeFailure - case RequiredNodeFeatureMissing - case IncorrectOrUnknownPaymentDetails - public static func == (a: LightningDevKit.Bindings.FailureCode, b: LightningDevKit.Bindings.FailureCode) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + public func getNodeId() -> [Swift.UInt8] + public func getAction() -> LightningDevKit.Bindings.ErrorAction + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter + @objc deinit } } } -public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ +public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? + public func getValue() -> LightningDevKit.Bindings.Shutdown? @objc deinit } } -public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +public typealias ScoreUpdate = LightningDevKit.Bindings.ScoreUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreUpdate : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) - public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) - public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getInflightHtlcMsat() -> Swift.UInt64 - public func setInflightHtlcMsat(val: Swift.UInt64) - public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) - public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Input = LightningDevKit.Bindings.Input -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut - public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias TxOut = LightningDevKit.Bindings.TxOut -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) - public func getScriptPubkey() -> [Swift.UInt8] - public func getValue() -> Swift.UInt64 + open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) + open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func probeSuccessful(path: LightningDevKit.Bindings.Path) @objc deinit } } -public typealias KeysManager = LightningDevKit.Bindings.KeysManager +public typealias WalletSource = LightningDevKit.Bindings.WalletSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) - public func getNodeSecretKey() -> [Swift.UInt8] - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public func isOwned() -> Swift.Bool + public init() + open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + open func getChangeScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias BigSize = LightningDevKit.Bindings.BigSize +public typealias Offer = LightningDevKit.Bindings.Offer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool + public func isExpired() -> Swift.Bool + public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool + public func expectsQuantity() -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - @objc deinit - } -} -public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannel? - @objc deinit - } -} -public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PrivateRoute? - @objc deinit - } -} -public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? - @objc deinit - } -} -public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? - @objc deinit - } -} -public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim +public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError extension LightningDevKit.Bindings { - public enum HTLCClaim { - case OfferedTimeout - case OfferedPreimage - case AcceptedTimeout - case AcceptedPreimage - case Revocation - public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public enum Bolt12SemanticError { + case AlreadyExpired + case UnsupportedChain + case UnexpectedChain + case MissingAmount + case InvalidAmount + case InsufficientAmount + case UnexpectedAmount + case UnsupportedCurrency + case UnknownRequiredFeatures + case UnexpectedFeatures + case MissingDescription + case MissingSigningPubkey + case InvalidSigningPubkey + case UnexpectedSigningPubkey + case MissingQuantity + case InvalidQuantity + case UnexpectedQuantity + case InvalidMetadata + case UnexpectedMetadata + case MissingPayerMetadata + case MissingPayerId + case MissingPaths + case InvalidPayInfo + case MissingCreationTime + case MissingPaymentHash + case MissingSignature + public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Score = LightningDevKit.Bindings.Score +public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 - open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) - open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func probeSuccessful(path: LightningDevKit.Bindings.Path) - open func write() -> [Swift.UInt8] + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getPerCommitmentNumber() -> Swift.UInt64 + public func setPerCommitmentNumber(val: Swift.UInt64) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment + public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) + public func getPreimage() -> [Swift.UInt8]? + public func setPreimage(val: [Swift.UInt8]?) + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public func outpoint() -> LightningDevKit.Bindings.OutPoint + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func txOutput() -> LightningDevKit.Bindings.TxOut + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Fallback = LightningDevKit.Bindings.Fallback +public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum FallbackType { - case SegWitProgram - case PubKeyHash - case ScriptHash - public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public enum Bech32ErrorType { + case MissingSeparator + case InvalidChecksum + case InvalidLength + case InvalidChar + case InvalidData + case InvalidPadding + case MixedCase + public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType - public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool - public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? - public func getValueAsPubKeyHash() -> [Swift.UInt8]? - public func getValueAsScriptHash() -> [Swift.UInt8]? + public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType + public func getValueAsInvalidChar() -> Swift.UInt32? + public func getValueAsInvalidData() -> Swift.UInt8? @objc deinit - @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getVersion() -> Swift.UInt8 - public func getProgram() -> [Swift.UInt8] - @objc deinit - } } } -public typealias Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ +public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? - public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? + public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getHolderSelectedContestDelay() -> Swift.UInt16 + public func setHolderSelectedContestDelay(val: Swift.UInt16) + public func getIsOutboundFromHolder() -> Swift.Bool + public func setIsOutboundFromHolder(val: Swift.Bool) + public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) + public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool + public func isPopulated() -> Swift.Bool + public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature +public typealias Amount = LightningDevKit.Bindings.Amount extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MultiThreadedScoreLock = LightningDevKit.Bindings.MultiThreadedScoreLock +public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedScoreLock : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAlias? @objc deinit } } -public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +public typealias Sleeper = LightningDevKit.Bindings.Sleeper extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public init(futures: [LightningDevKit.Bindings.Future]) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } @@ -1416,1046 +1917,1181 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool - public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func intoInner() -> LightningDevKit.Bindings.RouteHint - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias GossipSync = LightningDevKit.Bindings.GossipSync -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum GossipSyncType { - case P2P - case Rapid - case None - public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType - public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func none() -> LightningDevKit.Bindings.GossipSync - public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? - public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? - @objc deinit - } -} -public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeSignature() -> [Swift.UInt8] - public func setNodeSignature(val: [Swift.UInt8]) - public func getBitcoinSignature() -> [Swift.UInt8] - public func setBitcoinSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError -extension LightningDevKit.Bindings { - public enum UtxoLookupError { - case UnknownChain - case UnknownTx - public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Refund? - @objc deinit - } -} -public typealias Network = LightningDevKit.Bindings.Network +public typealias SocketAddressParseError = LightningDevKit.Bindings.SocketAddressParseError extension LightningDevKit.Bindings { - public enum Network { - case Bitcoin - case Testnet - case Regtest - case Signet - public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public enum SocketAddressParseError { + case SocketAddrParse + case InvalidInput + case InvalidPort + case InvalidOnionV3 + public static func == (a: LightningDevKit.Bindings.SocketAddressParseError, b: LightningDevKit.Bindings.SocketAddressParseError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Ping = LightningDevKit.Bindings.Ping +public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPonglen() -> Swift.UInt16 - public func setPonglen(val: Swift.UInt16) - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getLatestUpdateId() -> Swift.UInt64 + public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) + public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] + public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) + public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] + public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func initialCounterpartyCommitmentTx() -> LightningDevKit.Bindings.CommitmentTransaction? + public func counterpartyCommitmentTxsFromUpdate(update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> [LightningDevKit.Bindings.CommitmentTransaction] + public func signToLocalJusticeTx(justiceTx: [Swift.UInt8], inputIdx: Swift.UInt, value: Swift.UInt64, commitmentNumber: Swift.UInt64) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func getCounterpartyNodeId() -> [Swift.UInt8]? + public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] + public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func getSpendableOutputs(tx: [Swift.UInt8], confirmationHeight: Swift.UInt32) -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentIdPaymentErrorZ = LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentIdPaymentErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ +public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelDetails? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias Result_PayeePubKeyErrorZ = LightningDevKit.Bindings.Result_PayeePubKeyErrorZ +public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PayeePubKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? @objc deinit } } -public typealias Route = LightningDevKit.Bindings.Route +public typealias Payee = LightningDevKit.Bindings.Payee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaths() -> [LightningDevKit.Bindings.Path] - public func setPaths(val: [LightningDevKit.Bindings.Path]) - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters? - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public init(pathsArg: [LightningDevKit.Bindings.Path], paymentParamsArg: LightningDevKit.Bindings.PaymentParameters) + public enum PayeeType { + case Blinded + case Clear + public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType + public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee + public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool - public func getTotalFees() -> Swift.UInt64 - public func getTotalAmount() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool + public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? + public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? @objc deinit + @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] + public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] + public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func getFinalCltvExpiryDelta() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ +public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Ping? @objc deinit } } -public typealias Future = LightningDevKit.Bindings.Future +public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters +public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBasePenaltyMsat() -> Swift.UInt64 - public func setBasePenaltyMsat(val: Swift.UInt64) - public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getAntiProbingPenaltyMsat() -> Swift.UInt64 - public func setAntiProbingPenaltyMsat(val: Swift.UInt64) - public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 - public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters - public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) - public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) - public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) - public func clearManualPenalties() + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public func commitmentNumber() -> Swift.UInt64 + public func toBroadcasterValueSat() -> Swift.UInt64 + public func toCountersignatoryValueSat() -> Swift.UInt64 + public func feeratePerKw() -> Swift.UInt32 + public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction + public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ +public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) + public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 + public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ +public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? + public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func intoInner() -> [Swift.UInt8] + public func asLegacyPubkey() -> [Swift.UInt8]? + public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Level = LightningDevKit.Bindings.Level -extension LightningDevKit.Bindings { - public enum Level { - case Gossip - case Trace - case Debug - case Info - case Warn - case Error - public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } +@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { + public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + @objc deinit + open var hashValue: Swift.Int { + get } } -public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? - @objc deinit +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { + public func activate() -> Self + public func activateOnce() -> Self + @objc deinit +} +@_hasMissingDesignatedInitializers public class Bindings { + public enum PrintSeverity : Swift.UInt { + case DEBUG + case WARNING + case ERROR + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } } + public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) + public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) + public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer + public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper + public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String + public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func ldkGetCompiledVersion() -> Swift.String + public class func ldkCBindingsGetCompiledVersion() -> Swift.String + public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool + public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] + public class func readChannelMonitors(kvStore: LightningDevKit.Bindings.KVStore, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures + public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func parseOnionAddress(host: Swift.String, port: Swift.UInt16) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] + public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] + public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCounterpartyPaymentScript(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, paymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] + public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] + public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 + public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.ScoreLookUp, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func createOnionMessage(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func preflightProbeInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func preflightProbeZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsat: Swift.UInt64, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") + public class func readThirtyTwoBytesChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func readThirtyTwoBytesChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + @objc deinit } -public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func metadata() -> [Swift.UInt8] - public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64? - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func quantity() -> Swift.UInt64? - public func payerId() -> [Swift.UInt8] - public func payerNote() -> LightningDevKit.Bindings.PrintableString? - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } +@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { + public init() + public func getPointer() -> Swift.UnsafeMutableRawPointer + @objc deinit } -public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ +public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InitFeatures? + public func getValue() -> LightningDevKit.Bindings.Pong? @objc deinit } } -public typealias Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ +public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], Swift.UInt)? - @objc deinit - } -} -public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func broadcastTransactions(txs: [[Swift.UInt8]]) - @objc deinit - } -} -public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getHolderSelectedContestDelay() -> Swift.UInt16 - public func setHolderSelectedContestDelay(val: Swift.UInt16) - public func getIsOutboundFromHolder() -> Swift.Bool - public func setIsOutboundFromHolder(val: Swift.Bool) - public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? - public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) - public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? - public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool - public func isPopulated() -> Swift.Bool - public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.Description? @objc deinit } } -public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler +public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? - open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func processingQueueHigh() -> Swift.Bool - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? @objc deinit } } -public typealias Router = LightningDevKit.Bindings.Router +public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? @objc deinit } } -public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK +public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getPerCommitmentSecret() -> [Swift.UInt8]? - public func setPerCommitmentSecret(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getFailureCode() -> Swift.UInt16 + public func setFailureCode(val: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ +public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? @objc deinit } } -public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? - public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) - public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? - public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) - public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? - public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) - public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? - public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) - public func getChainMonitor() -> LightningDevKit.Bindings.Watch? - public func setChainMonitor(val: LightningDevKit.Bindings.Watch) - public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? - public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) - public func getRouter() -> LightningDevKit.Bindings.Router? - public func setRouter(val: LightningDevKit.Bindings.Router) - public func getLogger() -> LightningDevKit.Bindings.Logger? - public func setLogger(val: LightningDevKit.Bindings.Logger) - public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig - public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit } } -public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures +public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public init() + open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage @objc deinit } } -public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty +public typealias Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func setNodeId(val: [Swift.UInt8]) - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getUnspendablePunishmentReserve() -> Swift.UInt64 - public func setUnspendablePunishmentReserve(val: Swift.UInt64) - public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? - public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) - public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? - public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? - public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) - public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? @objc deinit } } -public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + public func getValue() -> LightningDevKit.Bindings.UntrustedString? @objc deinit } } -public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +public typealias Level = LightningDevKit.Bindings.Level extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InMemorySigner? - @objc deinit + public enum Level { + case Gossip + case Trace + case Debug + case Info + case Warn + case Error + public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ +public typealias Result_PaymentConstraintsDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentConstraintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentConstraints) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? + public func getValue() -> LightningDevKit.Bindings.PaymentConstraints? @objc deinit } } -public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction +public typealias Retry = LightningDevKit.Bindings.Retry extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] - public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public enum RetryType { + case Attempts + case Timeout + public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType + public class func initWithAttempts(a: Swift.UInt32) -> LightningDevKit.Bindings.Retry + public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry + public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool + public func hash() -> Swift.UInt64 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public func getValueAsAttempts() -> Swift.UInt32? + public func getValueAsTimeout() -> Swift.UInt64? @objc deinit } } -public typealias PrintableString = LightningDevKit.Bindings.PrintableString +public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? @objc deinit } } -public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(lockableScore: LightningDevKit.Bindings.LockableScore) - open func write() -> [Swift.UInt8] - public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getSelectedContestDelay() -> Swift.UInt16 + public func setSelectedContestDelay(val: Swift.UInt16) + public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NetAddressDecodeErrorZ = LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ +public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetAddress) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetAddress? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture +public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeFeatures? @objc deinit } } -public typealias Persister = LightningDevKit.Bindings.Persister +public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneErrorZ + public enum Bolt11ParseErrorType { + case Bech32Error + case ParseAmountError + case MalformedSignature + case BadPrefix + case UnknownCurrency + case UnknownSiPrefix + case MalformedHRP + case TooShortDataPart + case UnexpectedEndOfTaggedFields + case DescriptionDecodeError + case PaddingError + case IntegerOverflowError + case InvalidSegWitProgramLength + case InvalidPubKeyHashLength + case InvalidScriptHashLength + case InvalidRecoveryId + case InvalidSliceLength + case Skip + public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType + public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError + public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? + public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsInvalidSliceLength() -> Swift.String? @objc deinit } } -public typealias Filter = LightningDevKit.Bindings.Filter +public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) - open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? @objc deinit } } -public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart +public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp - public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) - public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func asLockableScore() -> LightningDevKit.Bindings.LockableScore + public func write() -> [Swift.UInt8] + public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore + public init(score: LightningDevKit.Bindings.Score) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Listen = LightningDevKit.Bindings.Listen +public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) - open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(scriptArg: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ +public typealias Result_ThirtyTwoBytesRetryableSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady +public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public func getShortChannelIdAlias() -> Swift.UInt64? - public func setShortChannelIdAlias(val: Swift.UInt64?) - public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getNetworks() -> [[Swift.UInt8]]? + public func setNetworks(val: [[Swift.UInt8]]?) + public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.SocketAddress? + public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.SocketAddress?) + public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.SocketAddress?) + public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError -extension LightningDevKit.Bindings { - public enum Bolt11SemanticError { - case NoPaymentHash - case MultiplePaymentHashes - case NoDescription - case MultipleDescriptions - case NoPaymentSecret - case MultiplePaymentSecrets - case InvalidFeatures - case InvalidRecoveryId - case InvalidSignature - case ImpreciseAmount - public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteParameters? + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getInflightHtlcMsat() -> Swift.UInt64 + public func setInflightHtlcMsat(val: Swift.UInt64) + public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity + public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) + public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ +public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> Swift.Bool? + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? + open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func processingQueueHigh() -> Swift.Bool + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ +public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? + public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? @objc deinit } } -public typealias Logger = LightningDevKit.Bindings.Logger +public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func log(record: LightningDevKit.Bindings.Record) + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannel? @objc deinit } } -public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +public typealias Event = LightningDevKit.Bindings.Event extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OffersMessageType { - case InvoiceRequest - case Invoice - case InvoiceError - public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public enum EventType { + case FundingGenerationReady + case PaymentClaimable + case PaymentClaimed + case PaymentSent + case PaymentFailed + case PaymentPathSuccessful + case PaymentPathFailed + case ProbeSuccessful + case ProbeFailed + case PendingHTLCsForwardable + case HTLCIntercepted + case SpendableOutputs + case PaymentForwarded + case ChannelPending + case ChannelReady + case ChannelClosed + case DiscardFunding + case OpenChannelRequest + case HTLCHandlingFailed + case BumpTransaction + public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType - public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage - public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool - public func tlvType() -> Swift.UInt64 + public func getValueType() -> LightningDevKit.Bindings.Event.EventType + public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8]?, viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, htlcs: [LightningDevKit.Bindings.ClaimedHTLC], senderIntendedTotalMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor], channelId: [Swift.UInt8]?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8]?, nextChannelId: [Swift.UInt8]?, feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8]?, counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event + public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason, counterpartyNodeId: [Swift.UInt8], channelCapacitySats: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event + public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event + public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? - public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? - public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? + public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? + public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? + public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? + public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? + public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? + public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? + public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? + public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? + public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? + public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? + public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? + public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? + public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? + public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? + public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? + public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? + public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? + public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? + public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? @objc deinit - } -} -public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentPurposeType { - case InvoicePayment - case SpontaneousPayment - public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelValueSatoshis() -> Swift.UInt64 + public func getOutputScript() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields + public func getAmountMsat() -> Swift.UInt64 + public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getViaChannelId() -> [Swift.UInt8]? + public func getViaUserChannelId() -> [Swift.UInt8]? + public func getClaimDeadline() -> Swift.UInt32? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getAmountMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getHtlcs() -> [LightningDevKit.Bindings.ClaimedHTLC] + public func getSenderIntendedTotalMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentPreimage() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getFeePaidMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentFailedPermanently() -> Swift.Bool + public func getFailure() -> LightningDevKit.Bindings.PathFailure + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTimeForwardable() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getInterceptId() -> [Swift.UInt8] + public func getRequestedNextHopScid() -> Swift.UInt64 + public func getPaymentHash() -> [Swift.UInt8] + public func getInboundAmountMsat() -> Swift.UInt64 + public func getExpectedOutboundAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getChannelId() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8]? + public func getNextChannelId() -> [Swift.UInt8]? + public func getFeeEarnedMsat() -> Swift.UInt64? + public func getClaimFromOnchainTx() -> Swift.Bool + public func getOutboundAmountForwardedMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getFormerTemporaryChannelId() -> [Swift.UInt8]? + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.ClosureReason + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelCapacitySats() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getTransaction() -> [Swift.UInt8] + @objc deinit } - public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType - public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? - public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? - @objc deinit - @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentPreimage() -> [Swift.UInt8]? - public func getPaymentSecret() -> [Swift.UInt8] + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingSatoshis() -> Swift.UInt64 + public func getPushMsat() -> Swift.UInt64 + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8] + public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination @objc deinit } } } -public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ +public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? + public func getValue() -> LightningDevKit.Bindings.InitFeatures? @objc deinit } } -public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync +public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func isInitialSyncComplete() -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit + public enum Option_NoneZ { + case Some + case None + public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ +public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFee? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getPerCommitmentSecret() -> [Swift.UInt8]? + public func setPerCommitmentSecret(val: [Swift.UInt8]) + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SendError = LightningDevKit.Bindings.SendError +public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SendErrorType { - case Secp256k1 - case TooBigPacket - case TooFewBlindedHops - case InvalidFirstHop - case InvalidMessage - case BufferFull - case GetNodeIdFailed - case BlindedPathAdvanceFailed - public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType - public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError - public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError - public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError - public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError - public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError - public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError - public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool - public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getNodeId() -> LightningDevKit.Bindings.NodeId + public func setNodeId(val: LightningDevKit.Bindings.NodeId) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAddresses() -> [LightningDevKit.Bindings.SocketAddress] + public func setAddresses(val: [LightningDevKit.Bindings.SocketAddress]) + public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentHashRetryableSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ +public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) - public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 - public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SignOrCreationError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +public typealias LockableScore = LightningDevKit.Bindings.LockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public init() + open func readLock() -> LightningDevKit.Bindings.ScoreLookUp + open func writeLock() -> LightningDevKit.Bindings.ScoreUpdate @objc deinit } } -public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage +public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UnsignedGossipMessageType { - case ChannelAnnouncement - case ChannelUpdate - case NodeAnnouncement - public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType - public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getNodeOne() -> LightningDevKit.Bindings.NodeId + public func setNodeOne(val: LightningDevKit.Bindings.NodeId) + public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getNodeTwo() -> LightningDevKit.Bindings.NodeId + public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) + public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getCapacitySats() -> Swift.UInt64? + public func setCapacitySats(val: Swift.UInt64?) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool + public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? public func write() -> [Swift.UInt8] - public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? - public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? - public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Destination = LightningDevKit.Bindings.Destination +public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DestinationType { - case Node - case BlindedPath - public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType - public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination - public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination - public func getValueAsNode() -> [Swift.UInt8]? - public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? + public init() + open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + @objc deinit + } +} +public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ +public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? @objc deinit } } -public typealias Result_SharedSecretNoneZ = LightningDevKit.Bindings.Result_SharedSecretNoneZ +public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SharedSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SharedSecretNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } @@ -2472,576 +3108,592 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination +public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum HTLCDestinationType { - case NextHopChannel - case UnknownNextHop - case InvalidForward - case FailedPayment - public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + @objc deinit + } +} +public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ClosureReasonType { + case CounterpartyForceClosed + case HolderForceClosed + case CooperativeClosure + case CommitmentTxConfirmed + case FundingTimedOut + case ProcessingError + case DisconnectedPeer + case OutdatedChannelManager + case CounterpartyCoopClosedUnfundedChannel + case FundingBatchClosure + public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType - public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType + public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason + public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason + public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason + public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason + public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingBatchClosure() -> LightningDevKit.Bindings.ClosureReason + public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? - public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? - public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? - public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? + public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? @objc deinit - @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 + public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString @objc deinit } - @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String @objc deinit } } } -public typealias EventHandler = LightningDevKit.Bindings.EventHandler -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func handleEvent(event: LightningDevKit.Bindings.Event) - @objc deinit - } -} -public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func builtTransaction() -> [Swift.UInt8] - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ +public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.GraphSyncError? - public func getValue() -> Swift.UInt32? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAckRbf? @objc deinit } } -public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ +public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? - @objc deinit - } -} -public typealias EntropySource = LightningDevKit.Bindings.EntropySource -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func getSecureRandomBytes() -> [Swift.UInt8] - @objc deinit - } -} -public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum MaxDustHTLCExposureType { - case FixedLimitMsat - case FeeRateMultiplier - public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType - public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public func getValueAsFixedLimitMsat() -> Swift.UInt64? - public func getValueAsFeeRateMultiplier() -> Swift.UInt64? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? @objc deinit } } -public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError +public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bolt11ParseErrorType { - case Bech32Error - case ParseAmountError - case MalformedSignature - case BadPrefix - case UnknownCurrency - case UnknownSiPrefix - case MalformedHRP - case TooShortDataPart - case UnexpectedEndOfTaggedFields - case DescriptionDecodeError - case PaddingError - case IntegerOverflowError - case InvalidSegWitProgramLength - case InvalidPubKeyHashLength - case InvalidScriptHashLength - case InvalidRecoveryId - case InvalidSliceLength - case Skip - public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType - public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError - public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? - public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsInvalidSliceLength() -> Swift.String? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ +public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? + public func getValue() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Amount = LightningDevKit.Bindings.Amount +public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited + public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) + public func getPrevtxOut() -> Swift.UInt32 + public func setPrevtxOut(val: Swift.UInt32) + public func getSequence() -> Swift.UInt32 + public func setSequence(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.UtxoLookupError? - public func getValue() -> LightningDevKit.Bindings.TxOut? + public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 + public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) + public func getLiquidityOffsetHalfLife() -> Swift.UInt64 + public func setLiquidityOffsetHalfLife(val: Swift.UInt64) + public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath +public typealias BestBlock = LightningDevKit.Bindings.BestBlock extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool - public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool + public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock + public init(blockHash: [Swift.UInt8], height: Swift.UInt32) + public func blockHash() -> [Swift.UInt8] + public func height() -> Swift.UInt32 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator +public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - public class func getLDKSwiftBindingsSerializationHash() -> Swift.String - public class func getLDKSwiftBindingsVersion() -> Swift.String - public class func getLDKSwiftBindingsCommitHash() -> Swift.String -} -public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? @objc deinit } } -public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ +public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MonitorEvent? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? @objc deinit } } -public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func tlvType() -> Swift.UInt64 - open func write() -> [Swift.UInt8] + open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) @objc deinit } } -public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC +public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) + open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner @objc deinit } } -public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +public typealias Balance = LightningDevKit.Bindings.Balance extension LightningDevKit.Bindings { - public enum SiPrefix { - case Milli - case Micro - case Nano - case Pico - public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum BalanceType { + case ClaimableOnChannelClose + case ClaimableAwaitingConfirmations + case ContentiousClaimable + case MaybeTimeoutClaimableHTLC + case MaybePreimageClaimableHTLC + case CounterpartyRevokedOutputClaimable + public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType + public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance + public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool + public func claimableAmountSatoshis() -> Swift.UInt64 + public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? + public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? + public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? + public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? + public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? + public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? + @objc deinit + @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getConfirmationHeight() -> Swift.UInt32 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getTimeoutHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentPreimage() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getClaimableHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getExpiryHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit } } } -public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - @objc deinit - } -} -public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? - public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) - public func getMessage() -> LightningDevKit.Bindings.UntrustedString - public func setMessage(val: LightningDevKit.Bindings.UntrustedString) - public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) + public func getGenesisHash() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) + public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph + public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? + public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) + public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func channelFailedPermanent(shortChannelId: Swift.UInt64) + public func nodeFailedPermanent(nodeId: [Swift.UInt8]) + public func removeStaleChannelsAndTracking() + public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) + public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader +public typealias Confirm = LightningDevKit.Bindings.Confirm extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - @objc deinit - } -} -public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.APIError? + open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func transactionUnconfirmed(txid: [Swift.UInt8]?) + open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) + open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] @objc deinit } } -public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error +public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason extension LightningDevKit.Bindings { - public enum Secp256k1Error { - case IncorrectSignature - case InvalidMessage - case InvalidPublicKey - case InvalidSignature - case InvalidSecretKey - case InvalidSharedSecret - case InvalidRecoveryId - case InvalidTweak - case NotEnoughMemory - case InvalidPublicKeySum - case InvalidParityValue - public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public enum PaymentFailureReason { + case RecipientRejected + case UserAbandoned + case RetriesExhausted + case PaymentExpired + case RouteNotFound + case UnexpectedError + public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput +public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? + public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) + public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? + public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) + public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? + public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) + public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? + public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) + public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentParameters? - @objc deinit - } -} -public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ +public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddOutput? + public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) + public func getPhantomScid() -> Swift.UInt64 + public func setPhantomScid(val: Swift.UInt64) + public func getRealNodePubkey() -> [Swift.UInt8] + public func setRealNodePubkey(val: [Swift.UInt8]) + public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ +public typealias Pong = LightningDevKit.Bindings.Pong extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ScriptNoneZ = LightningDevKit.Bindings.Result_ScriptNoneZ +public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ScriptNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) + public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ +public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAbort? + public func getValue() -> LightningDevKit.Bindings.InvoiceError? @objc deinit } } -public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ +public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelConfig? + public func getValue() -> LightningDevKit.Bindings.ChannelReady? @objc deinit } } -public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction +public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func txid() -> [Swift.UInt8] - public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction - public func keys() -> LightningDevKit.Bindings.TxCreationKeys - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOwned() -> Swift.Bool + public enum UnsignedGossipMessageType { + case ChannelAnnouncement + case ChannelUpdate + case NodeAnnouncement + public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType + public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func write() -> [Swift.UInt8] + public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? @objc deinit } } -public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [LightningDevKit.Bindings.Utxo]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAddOutput? @objc deinit } } -public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ +public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeId? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction +public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public func commitmentNumber() -> Swift.UInt64 - public func toBroadcasterValueSat() -> Swift.UInt64 - public func toCountersignatoryValueSat() -> Swift.UInt64 - public func feeratePerKw() -> Swift.UInt32 - public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction - public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } @@ -3064,598 +3716,781 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ +public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? - @objc deinit - } -} -public typealias PeerManager = LightningDevKit.Bindings.PeerManager -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") - public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) - public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.NetAddress?)] - public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func processEvents() - public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) - public func disconnectByNodeId(nodeId: [Swift.UInt8]) - public func disconnectAllPeers() - public func timerTickOccurred() - public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.NetAddress]) - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxComplete? @objc deinit } } -public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ +public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError +public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum GraphSyncErrorType { - case DecodeError - case LightningError - public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType - public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError - public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError - public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? - public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getNextLocalCommitmentNumber() -> Swift.UInt64 + public func setNextLocalCommitmentNumber(val: Swift.UInt64) + public func getNextRemoteCommitmentNumber() -> Swift.UInt64 + public func setNextRemoteCommitmentNumber(val: Swift.UInt64) + public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? + public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) + public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] + public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) + public func getNextFundingTxid() -> [Swift.UInt8]? + public func setNextFundingTxid(val: [Swift.UInt8]?) + public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo +public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? @objc deinit } } -public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +public typealias Result_CVec_u8ZNoneZ = LightningDevKit.Bindings.Result_CVec_u8ZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd +public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFullInformation() -> Swift.Bool - public func setFullInformation(val: Swift.Bool) - public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func getNetwork() -> LightningDevKit.Bindings.Network + public func setNetwork(val: LightningDevKit.Bindings.Network) + public func getBestBlock() -> LightningDevKit.Bindings.BestBlock + public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) + public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ +public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? + public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? @objc deinit } } -public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ +public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Shutdown? + public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool + public func endBlocknum() -> Swift.UInt32 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage +public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func getPayee() -> LightningDevKit.Bindings.Payee + public func setPayee(val: LightningDevKit.Bindings.Payee) + public func getExpiryTime() -> Swift.UInt64? + public func setExpiryTime(val: Swift.UInt64?) + public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 + public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) + public func getMaxPathCount() -> Swift.UInt8 + public func setMaxPathCount(val: Swift.UInt8) + public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 + public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) + public func getPreviouslyFailedChannels() -> [Swift.UInt64] + public func setPreviouslyFailedChannels(val: [Swift.UInt64]) + public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters + public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBlinded(blindedRouteHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)]) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript +public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(scriptArg: [Swift.UInt8]) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) + public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler + public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync +public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) - public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) - public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + @objc deinit + } +} +public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement +public typealias Recipient = LightningDevKit.Bindings.Recipient extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public enum Recipient { + case Node + case PhantomNode + public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Hostname = LightningDevKit.Bindings.Hostname +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getNodeId() -> LightningDevKit.Bindings.NodeId - public func setNodeId(val: LightningDevKit.Bindings.NodeId) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAddresses() -> [LightningDevKit.Bindings.NetAddress] - public func setAddresses(val: [LightningDevKit.Bindings.NetAddress]) - public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool + public func len() -> Swift.UInt8 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString +public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) + open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) + open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) + open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) + open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) + open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) + open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) + open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) + open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) + open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) + open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) + open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) + open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) + open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) + open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) + open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) + open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) + open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) + open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) + open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) + open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) + open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) + open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) + open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) + open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) + open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) + open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) + open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + open func getGenesisHashes() -> [[Swift.UInt8]]? + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Sleeper = LightningDevKit.Bindings.Sleeper +public typealias ClaimedHTLC = LightningDevKit.Bindings.ClaimedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClaimedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public init(futures: [LightningDevKit.Bindings.Future]) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getValueMsat() -> Swift.UInt64 + public func setValueMsat(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], userChannelIdArg: [Swift.UInt8], cltvExpiryArg: Swift.UInt32, valueMsatArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClaimedHTLC, b: LightningDevKit.Bindings.ClaimedHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? + public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? @objc deinit } } -public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor +public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeId1() -> LightningDevKit.Bindings.NodeId + public func setNodeId1(val: LightningDevKit.Bindings.NodeId) + public func getNodeId2() -> LightningDevKit.Bindings.NodeId + public func setNodeId2(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(featuresArg: LightningDevKit.Bindings.ChannelFeatures, chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeId1Arg: LightningDevKit.Bindings.NodeId, nodeId2Arg: LightningDevKit.Bindings.NodeId, bitcoinKey1Arg: LightningDevKit.Bindings.NodeId, bitcoinKey2Arg: LightningDevKit.Bindings.NodeId, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup +public typealias UserConfig = LightningDevKit.Bindings.UserConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult + public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) + public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits + public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) + public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig + public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) + public func getAcceptForwardsToPrivChannels() -> Swift.Bool + public func setAcceptForwardsToPrivChannels(val: Swift.Bool) + public func getAcceptInboundChannels() -> Swift.Bool + public func setAcceptInboundChannels(val: Swift.Bool) + public func getManuallyAcceptInboundChannels() -> Swift.Bool + public func setManuallyAcceptInboundChannels(val: Swift.Bool) + public func getAcceptInterceptHtlcs() -> Swift.Bool + public func setAcceptInterceptHtlcs(val: Swift.Bool) + public func getAcceptMppKeysend() -> Swift.Bool + public func setAcceptMppKeysend(val: Swift.Bool) + public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstTimestamp() -> Swift.UInt32 - public func setFirstTimestamp(val: Swift.UInt32) - public func getTimestampRange() -> Swift.UInt32 - public func setTimestampRange(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setPaymentMetadataOptional() + public func setPaymentMetadataRequired() + public func supportsPaymentMetadata() -> Swift.Bool + public func requiresPaymentMetadata() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp +public typealias Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool - public func hash() -> Swift.UInt64 - public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public func asUnixTimestamp() -> Swift.UInt64 - public func asDurationSinceEpoch() -> Swift.UInt64 - public func asTime() -> Swift.UInt64 - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? @objc deinit } } -public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures +public typealias PeerManager = LightningDevKit.Bindings.PeerManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getTxHash() -> [Swift.UInt8]? - public func setTxHash(val: [Swift.UInt8]) - public func getWitnesses() -> [[Swift.UInt8]] - public func setWitnesses(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") + public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) + public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.SocketAddress?)] + public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public func processEvents() + public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) + public func disconnectByNodeId(nodeId: [Swift.UInt8]) + public func disconnectAllPeers() + public func timerTickOccurred() + public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.SocketAddress]) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf +public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned +public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeSatoshis() -> Swift.UInt64 - public func setFeeSatoshis(val: Swift.UInt64) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? - public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) - public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) - public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public enum NetworkUpdateType { + case ChannelUpdateMessage + case ChannelFailure + case NodeFailure + public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType + public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? + public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? + public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getShortChannelId() -> Swift.UInt64 + public func isPermanent() -> Swift.Bool + @objc deinit + } + @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func isPermanent() -> Swift.Bool + @objc deinit + } } } -public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets +public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func getMinSeenSecret() -> Swift.UInt64 - public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func getTlvFieldnum() -> Swift.UInt64 + public func setTlvFieldnum(val: Swift.UInt64) + public func getSuggestedValue() -> [Swift.UInt8]? + public func setSuggestedValue(val: [Swift.UInt8]?) + public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Path = LightningDevKit.Bindings.Path +public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.RouteHop] - public func setHops(val: [LightningDevKit.Bindings.RouteHop]) - public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? - public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) - public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool - public func feeMsat() -> Swift.UInt64 - public func finalValueMsat() -> Swift.UInt64 - public func finalCltvExpiryDelta() -> Swift.UInt32? + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getOurToSelfDelay() -> Swift.UInt16 + public func setOurToSelfDelay(val: Swift.UInt16) + public func getOurHtlcMinimumMsat() -> Swift.UInt64 + public func setOurHtlcMinimumMsat(val: Swift.UInt64) + public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 + public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) + public func getNegotiateScidPrivacy() -> Swift.Bool + public func setNegotiateScidPrivacy(val: Swift.Bool) + public func getAnnouncedChannel() -> Swift.Bool + public func setAnnouncedChannel(val: Swift.Bool) + public func getCommitUpfrontShutdownPubkey() -> Swift.Bool + public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) + public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 + public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) + public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) + public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 + public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) + public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ +public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? + public func getValue() -> LightningDevKit.Bindings.ClosureReason? @objc deinit } } -public typealias Utxo = LightningDevKit.Bindings.Utxo +public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool - public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo - public func isOwned() -> Swift.Bool + public init() + open func broadcastTransactions(txs: [[Swift.UInt8]]) @objc deinit } } -public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason +public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey extension LightningDevKit.Bindings { - public enum PaymentFailureReason { - case RecipientRejected - case UserAbandoned - case RetriesExhausted - case PaymentExpired - case RouteNotFound - case UnexpectedError - public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(keyMaterial: [Swift.UInt8]) + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias PathFailure = LightningDevKit.Bindings.PathFailure +public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PathFailureType { - case InitialSend - case OnPath - public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType - public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure - public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure - public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFullInformation() -> Swift.Bool + public func setFullInformation(val: Swift.Bool) + public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? - public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> LightningDevKit.Bindings.APIError - @objc deinit - } - @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? - @objc deinit - } } } -@_hasMissingDesignatedInitializers public class LDKExampleClass { - public class func printSomething() - public func printInstance() - @objc deinit -} -public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction +public typealias Result_ReceiveTlvsDecodeErrorZ = LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReceiveTlvsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool - public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) - public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction - public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public func toHolderValueSat() -> Swift.UInt64 - public func toCounterpartyValueSat() -> Swift.UInt64 - public func toHolderScript() -> [Swift.UInt8] - public func toCounterpartyScript() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReceiveTlvs) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReceiveTlvs? @objc deinit } } -public typealias Recipient = LightningDevKit.Bindings.Recipient +public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures extension LightningDevKit.Bindings { - public enum Recipient { - case Node - case PhantomNode - public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setInitialRoutingSyncOptional() + public func setInitialRoutingSyncRequired() + public func initialRoutingSync() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner +public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) - open func write() -> [Swift.UInt8] - public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt - open func disconnectSocket() - open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool - open func hash() -> Swift.UInt64 + public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? @objc deinit } } -public typealias RouteHop = LightningDevKit.Bindings.RouteHop +public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkey() -> [Swift.UInt8] - public func setPubkey(val: [Swift.UInt8]) - public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getFeeMsat() -> Swift.UInt64 - public func setFeeMsat(val: Swift.UInt64) - public func getCltvExpiryDelta() -> Swift.UInt32 - public func setCltvExpiryDelta(val: Swift.UInt32) - public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) + public func getForwardingFeeBaseMsat() -> Swift.UInt32 + public func setForwardingFeeBaseMsat(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure + public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) + public func getAcceptUnderpayingHtlcs() -> Swift.Bool + public func setAcceptUnderpayingHtlcs(val: Swift.Bool) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool + public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_CVec_ECDSASignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_ECDSASignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? + @objc deinit + } +} public typealias BackgroundProcessor = LightningDevKit.Bindings.BackgroundProcessor extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class BackgroundProcessor : LightningDevKit.NativeTypeWrapper { @@ -3664,573 +4499,654 @@ extension LightningDevKit.Bindings { @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `gossipSync`.") public class func start(persister: LightningDevKit.Bindings.Persister, eventHandler: LightningDevKit.Bindings.EventHandler, chainMonitor: LightningDevKit.Bindings.ChainMonitor, channelManager: LightningDevKit.Bindings.ChannelManager, gossipSync: LightningDevKit.Bindings.GossipSync, peerManager: LightningDevKit.Bindings.PeerManager, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.WriteableScore?) -> LightningDevKit.Bindings.BackgroundProcessor @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func join() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func join() -> LightningDevKit.Bindings.Result_NoneIOErrorZ @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func stop() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func stop() -> LightningDevKit.Bindings.Result_NoneIOErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned +public typealias PrintableString = LightningDevKit.Bindings.PrintableString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getSkimmedFeeMsat() -> Swift.UInt64? + public func setSkimmedFeeMsat(val: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey +public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public enum Secp256k1Error { + case IncorrectSignature + case InvalidMessage + case InvalidPublicKey + case InvalidSignature + case InvalidSecretKey + case InvalidSharedSecret + case InvalidRecoveryId + case InvalidTweak + case NotEnoughMemory + case InvalidPublicKeySum + case InvalidParityValue + public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget +extension LightningDevKit.Bindings { + public enum ConfirmationTarget { + case MempoolMinimum + case Background + case Normal + case HighPriority + public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(keyMaterial: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias Offer = LightningDevKit.Bindings.Offer +public typealias Refund = LightningDevKit.Bindings.Refund extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func chains() -> [[Swift.UInt8]] - public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool - public func metadata() -> [Swift.UInt8]? - public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString - public func features() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func supportedQuantity() -> LightningDevKit.Bindings.Quantity - public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool - public func expectsQuantity() -> Swift.Bool - public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +public typealias CreationError = LightningDevKit.Bindings.CreationError +extension LightningDevKit.Bindings { + public enum CreationError { + case DescriptionTooLong + case RouteTooLong + case TimestampOutOfBounds + case InvalidAmount + case MissingRouteHints + case MinFinalCltvExpiryDeltaTooShort + public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum RecentPaymentDetailsType { + case AwaitingInvoice + case Pending + case Fulfilled + case Abandoned + public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType + public class func initWithAwaitingInvoice(paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithPending(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithFulfilled(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithAbandoned(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public func getValueAsAwaitingInvoice() -> LightningDevKit.Bindings.RecentPaymentDetails.AwaitingInvoice? + public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? + public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? + public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + @objc deinit + @_hasMissingDesignatedInitializers public class AwaitingInvoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getTotalMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_PayeePubKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PayeePubKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + @objc deinit + } +} +public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentParameters? + @objc deinit + } +} +public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHop? + public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func contestDelay() -> Swift.UInt16 + public func isOutbound() -> Swift.Bool + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ +public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? + public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp + public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) + public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Payee = LightningDevKit.Bindings.Payee +public typealias Destination = LightningDevKit.Bindings.Destination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PayeeType { - case Blinded - case Clear - public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public enum DestinationType { + case Node + case BlindedPath + public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType - public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee - public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool - public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? - public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? + public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType + public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination + public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination + public func getValueAsNode() -> [Swift.UInt8]? + public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? @objc deinit - @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] - public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] - public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures - public func getFinalCltvExpiryDelta() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish +public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextLocalCommitmentNumber() -> Swift.UInt64 - public func setNextLocalCommitmentNumber(val: Swift.UInt64) - public func getNextRemoteCommitmentNumber() -> Swift.UInt64 - public func setNextRemoteCommitmentNumber(val: Swift.UInt64) - public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? - public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) - public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] - public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) - public func getNextFundingTxid() -> [Swift.UInt8]? - public func setNextFundingTxid(val: [Swift.UInt8]?) - public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? @objc deinit } } -public typealias Sha256 = LightningDevKit.Bindings.Sha256 +public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 + public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool - public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 + public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler +public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) - open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) - open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) - open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) - open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) - open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) - open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) - open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) - open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) - open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) - open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) - open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) - open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) - open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) - open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) - open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) - open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) - open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) - open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) - open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) - open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) - open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) - open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) - open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) - open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) - open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) - open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) - open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - open func getGenesisHashes() -> [[Swift.UInt8]]? - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - @objc deinit + public enum ChannelShutdownState { + case NotShuttingDown + case ShutdownInitiated + case ResolvingHTLCs + case NegotiatingClosingFee + case ShutdownComplete + public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent +public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum BumpTransactionEventType { - case ChannelClose - case HTLCResolution - public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public enum UtxoResultType { + case Sync + case Async + public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType - public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool - public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? - public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? + public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType + public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult + public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult + public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? + public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + @objc deinit + } +} +public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + @objc deinit + } +} +public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getCommitmentTx() -> [Swift.UInt8] - public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 - public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor - public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] - public func getTxLockTime() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor +public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getLatestUpdateId() -> Swift.UInt64 - public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) - public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] - public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) - public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] - public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) - public func getCounterpartyNodeId() -> [Swift.UInt8]? - public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] - public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] + public func txid() -> [Swift.UInt8] + public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction + public func keys() -> LightningDevKit.Bindings.TxCreationKeys + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func revokeableOutputIndex() -> Swift.UInt? + public func buildToLocalJusticeTx(feeratePerKw: Swift.UInt64, destinationScript: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo +public typealias Result_ChannelMonitorUpdateStatusNoneZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateStatusNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures - public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus? @objc deinit } } -public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys +public typealias Result_SocketAddressSocketAddressParseErrorZ = LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressSocketAddressParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getRevocationKey() -> [Swift.UInt8] - public func setRevocationKey(val: [Swift.UInt8]) - public func getBroadcasterHtlcKey() -> [Swift.UInt8] - public func setBroadcasterHtlcKey(val: [Swift.UInt8]) - public func getCountersignatoryHtlcKey() -> [Swift.UInt8] - public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) - public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] - public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) - public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SocketAddressParseError) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SocketAddressParseError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias BindingsError = LightningDevKit.Bindings.BindingsError +public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getDummy() -> Swift.UInt8 + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias Pong = LightningDevKit.Bindings.Pong +public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeSignature() -> [Swift.UInt8] + public func setNodeSignature(val: [Swift.UInt8]) + public func getBitcoinSignature() -> [Swift.UInt8] + public func setBitcoinSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Persist = LightningDevKit.Bindings.Persist +public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ @objc deinit } } -public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? @objc deinit } } -public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime +public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool - public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public func asSeconds() -> Swift.UInt64 - public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAbort = LightningDevKit.Bindings.TxAbort +public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> [Swift.UInt8] - public func setData(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ +public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? @objc deinit } } -public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement +public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeId1() -> LightningDevKit.Bindings.NodeId - public func setNodeId1(val: LightningDevKit.Bindings.NodeId) - public func getNodeId2() -> LightningDevKit.Bindings.NodeId - public func setNodeId2(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func getMinFundingSatoshis() -> Swift.UInt64 + public func setMinFundingSatoshis(val: Swift.UInt64) + public func getMaxFundingSatoshis() -> Swift.UInt64 + public func setMaxFundingSatoshis(val: Swift.UInt64) + public func getMaxHtlcMinimumMsat() -> Swift.UInt64 + public func setMaxHtlcMinimumMsat(val: Swift.UInt64) + public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getMaxChannelReserveSatoshis() -> Swift.UInt64 + public func setMaxChannelReserveSatoshis(val: Swift.UInt64) + public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) + public func getMaxMinimumDepth() -> Swift.UInt32 + public func setMaxMinimumDepth(val: Swift.UInt32) + public func getTrustOwnFunding0conf() -> Swift.Bool + public func setTrustOwnFunding0conf(val: Swift.Bool) + public func getForceAnnouncedChannelPreference() -> Swift.Bool + public func setForceAnnouncedChannelPreference(val: Swift.Bool) + public func getTheirToSelfDelay() -> Swift.UInt16 + public func setTheirToSelfDelay(val: Swift.UInt16) + public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +public typealias MonitorUpdatingPersister = LightningDevKit.Bindings.MonitorUpdatingPersister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdatingPersister : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(kvStore: LightningDevKit.Bindings.KVStore, logger: LightningDevKit.Bindings.Logger, maximumPendingUpdates: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) + public func readAllChannelMonitorsWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public func readChannelMonitorWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, monitorKey: Swift.String) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public func cleanupStaleUpdates(lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func asPersist() -> LightningDevKit.Bindings.Persist + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey +public typealias Persist = LightningDevKit.Bindings.Persist extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8] - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init() + open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus @objc deinit } } -public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig +public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) - public func getForwardingFeeBaseMsat() -> Swift.UInt32 - public func setForwardingFeeBaseMsat(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure - public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) - public func getAcceptUnderpayingHtlcs() -> Swift.Bool - public func setAcceptUnderpayingHtlcs(val: Swift.Bool) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool - public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingCreated? @objc deinit } } -public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath +public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getIntermediateNodes() -> [[Swift.UInt8]] - public func setIntermediateNodes(val: [[Swift.UInt8]]) - public func getDestination() -> LightningDevKit.Bindings.Destination - public func setDestination(val: LightningDevKit.Bindings.Destination) - public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTransaction() -> [Swift.UInt8] + public func setTransaction(val: [Swift.UInt8]) + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ +public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedTail? + public func getValue() -> LightningDevKit.Bindings.TxSignatures? @objc deinit } } -public typealias Description = LightningDevKit.Bindings.Description +public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getRevocationPubkey() -> [Swift.UInt8] + public func setRevocationPubkey(val: [Swift.UInt8]) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool - public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public func intoInner() -> Swift.String + public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage +public typealias KVStore = LightningDevKit.Bindings.KVStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class KVStore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + open func write(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, buf: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func remove(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func list(primaryNamespace: Swift.String, secondaryNamespace: Swift.String) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ @objc deinit } } @@ -4246,1979 +5162,1797 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? - @objc deinit - } -} -public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits +public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFundingSatoshis() -> Swift.UInt64 - public func setMinFundingSatoshis(val: Swift.UInt64) - public func getMaxFundingSatoshis() -> Swift.UInt64 - public func setMaxFundingSatoshis(val: Swift.UInt64) - public func getMaxHtlcMinimumMsat() -> Swift.UInt64 - public func setMaxHtlcMinimumMsat(val: Swift.UInt64) - public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getMaxChannelReserveSatoshis() -> Swift.UInt64 - public func setMaxChannelReserveSatoshis(val: Swift.UInt64) - public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) - public func getMaxMinimumDepth() -> Swift.UInt32 - public func setMaxMinimumDepth(val: Swift.UInt32) - public func getTrustOwnFunding0conf() -> Swift.Bool - public func setTrustOwnFunding0conf(val: Swift.Bool) - public func getForceAnnouncedChannelPreference() -> Swift.Bool - public func setForceAnnouncedChannelPreference(val: Swift.Bool) - public func getTheirToSelfDelay() -> Swift.UInt16 - public func setTheirToSelfDelay(val: Swift.UInt16) - public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func isOwned() -> Swift.Bool + public init() + open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] + open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + open func getDestinationScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ @objc deinit } } -public typealias Confirm = LightningDevKit.Bindings.Confirm +public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func transactionUnconfirmed(txid: [Swift.UInt8]?) - open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) - open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public enum BumpTransactionEventType { + case ChannelClose + case HTLCResolution + public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType + public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool + public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? + public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getCommitmentTx() -> [Swift.UInt8] + public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 + public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor + public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] + public func getTxLockTime() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ +public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger +public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) - public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler - public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider - public func isOwned() -> Swift.Bool - @objc deinit + public enum UtxoLookupError { + case UnknownChain + case UnknownTx + public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures +public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setInitialRoutingSyncOptional() - public func setInitialRoutingSyncRequired() - public func initialRoutingSync() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool + public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public func asSeconds() -> Swift.UInt64 + public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) - public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig - public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] - public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] - public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseAllChannelsBroadcastingLatestTxn() - public func forceCloseAllChannelsWithoutBroadcastingTxn() - public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ - public func abandonPayment(paymentId: [Swift.UInt8]) - public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func processPendingHtlcForwards() - public func timerTickOccurred() - public func failHtlcBackwards(paymentHash: [Swift.UInt8]) - public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) - public func claimFunds(paymentPreimage: [Swift.UInt8]) - public func getOurNodeId() -> [Swift.UInt8] - public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func getPhantomScid() -> Swift.UInt64 - public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints - public func getInterceptScid() -> Swift.UInt64 - public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func getPersistableUpdateFuture() -> LightningDevKit.Bindings.Future - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func initFeatures() -> LightningDevKit.Bindings.InitFeatures - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFee? @objc deinit } } -public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters +public typealias MultiThreadedScoreLockWrite = LightningDevKit.Bindings.MultiThreadedScoreLockWrite extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockWrite : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getValueSatoshis() -> Swift.UInt64 - public func setValueSatoshis(val: Swift.UInt64) - public func getKeysId() -> [Swift.UInt8]? - public func setKeysId(val: [Swift.UInt8]) - public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) - public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) - public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Hostname = LightningDevKit.Bindings.Hostname +public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool - public func len() -> Swift.UInt8 + public func getChannels() -> [Swift.UInt64] + public func setChannels(val: [Swift.UInt64]) + public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) + public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) + public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult +public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UtxoResultType { - case Sync - case Async - public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType - public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult - public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult - public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? - public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannel? @objc deinit } } -public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ +public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Hostname? + public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? @objc deinit } } -public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement +public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeSignature1() -> [Swift.UInt8] - public func setNodeSignature1(val: [Swift.UInt8]) - public func getNodeSignature2() -> [Swift.UInt8] - public func setNodeSignature2(val: [Swift.UInt8]) - public func getBitcoinSignature1() -> [Swift.UInt8] - public func setBitcoinSignature1(val: [Swift.UInt8]) - public func getBitcoinSignature2() -> [Swift.UInt8] - public func setBitcoinSignature2(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] + open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + open func signBolt12InvoiceRequest(invoiceRequest: LightningDevKit.Bindings.UnsignedInvoiceRequest) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signBolt12Invoice(invoice: LightningDevKit.Bindings.UnsignedBolt12Invoice) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ @objc deinit } } -public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ +public typealias Fallback = LightningDevKit.Bindings.Fallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public enum FallbackType { + case SegWitProgram + case PubKeyHash + case ScriptHash + public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType + public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool + public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? + public func getValueAsPubKeyHash() -> [Swift.UInt8]? + public func getValueAsScriptHash() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getVersion() -> Swift.UInt8 + public func getProgram() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHop? + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> Swift.Bool? @objc deinit } } -public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter +public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias +public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8]? - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ @objc deinit } } -public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ +public typealias Result_RecipientOnionFieldsNoneZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> Swift.Bool? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool + public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public func intoInner() -> LightningDevKit.Bindings.RouteHint + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error +public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bech32ErrorType { - case MissingSeparator - case InvalidChecksum - case InvalidLength - case InvalidChar - case InvalidData - case InvalidPadding - case MixedCase - public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType - public func getValueAsInvalidChar() -> Swift.UInt32? - public func getValueAsInvalidData() -> Swift.UInt8? + public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.GraphSyncError? + public func getValue() -> Swift.UInt32? @objc deinit } } -public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate +public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) - public func getForwardingFeeBaseMsat() -> Swift.UInt32? - public func setForwardingFeeBaseMsat(val: Swift.UInt32?) - public func getCltvExpiryDelta() -> Swift.UInt16? - public func setCltvExpiryDelta(val: Swift.UInt16?) - public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? - public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func getValueSatoshis() -> Swift.UInt64 + public func setValueSatoshis(val: Swift.UInt64) + public func getKeysId() -> [Swift.UInt8]? + public func setKeysId(val: [Swift.UInt8]) + public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters + public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit +public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getNetworks() -> [[Swift.UInt8]]? - public func setNetworks(val: [[Swift.UInt8]]?) - public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.NetAddress? - public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.NetAddress?) - public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.NetAddress?) - public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) + public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice + public func signableHash() -> [Swift.UInt8]? + public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature + public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func checkSignature() -> Swift.Bool + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func toStr() -> Swift.String public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus +public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ extension LightningDevKit.Bindings { - public enum ChannelMonitorUpdateStatus { - case Completed - case InProgress - case PermanentFailure - public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + @objc deinit } } -public typealias CreationError = LightningDevKit.Bindings.CreationError +public typealias Wallet = LightningDevKit.Bindings.Wallet extension LightningDevKit.Bindings { - public enum CreationError { - case DescriptionTooLong - case RouteTooLong - case TimestampOutOfBounds - case InvalidAmount - case MissingRouteHints - case MinFinalCltvExpiryDeltaTooShort - public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) + public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor +public typealias Router = LightningDevKit.Bindings.Router extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ @objc deinit } } -public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SignOrCreationError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public func getError() -> LightningDevKit.Bindings.ProbeSendFailure? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? @objc deinit } } -public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ +public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHint? + public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? @objc deinit } } -public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate +public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetworkUpdateType { - case ChannelUpdateMessage - case ChannelFailure - case NodeFailure - public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public enum ErrorActionType { + case DisconnectPeer + case DisconnectPeerWithWarning + case IgnoreError + case IgnoreAndLog + case IgnoreDuplicateGossip + case SendErrorMessage + case SendWarningMessage + public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType - public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? - public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? - public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? + public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType + public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? + public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? + public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? + public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? + public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getShortChannelId() -> Swift.UInt64 - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.WarningMessage @objc deinit } - @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - } -} -public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentSendFailureType { - case ParameterError - case PathParameterError - case AllFailedResendSafe - case DuplicatePayment - case PartialFailure - public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType - public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure - public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? - public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? - public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? - public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? - @objc deinit - @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] - public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters - public func getPaymentId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.WarningMessage + public func getLogLevel() -> LightningDevKit.Bindings.Level @objc deinit } } } -public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? - @objc deinit - } -} -public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ +public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? - @objc deinit - } -} -public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ -extension LightningDevKit.Bindings { - public enum Option_NoneZ { - case Some - case None - public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ +public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? + public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? @objc deinit } } -public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ +public typealias GossipSync = LightningDevKit.Bindings.GossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCDestination? + public enum GossipSyncType { + case P2P + case Rapid + case None + public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType + public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func none() -> LightningDevKit.Bindings.GossipSync + public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? + public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? @objc deinit } } -public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ +public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum HTLCClaim { + case OfferedTimeout + case OfferedPreimage + case AcceptedTimeout + case AcceptedPreimage + case Revocation + public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingCreated? + public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? @objc deinit } } -public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited +public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool - public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public func intoTransaction() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ +public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PathFailure? + public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? @objc deinit } } -public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ +public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + public func getValue() -> LightningDevKit.Bindings.TxAddInput? @objc deinit } } -public typealias WalletSource = LightningDevKit.Bindings.WalletSource +public typealias Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - open func getChangeScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)? @objc deinit } } -public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getData() -> LightningDevKit.Bindings.RawDataPart - public func setData(val: LightningDevKit.Bindings.RawDataPart) - public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func getSrcNodeId() -> [Swift.UInt8] + public func setSrcNodeId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64? + public func setHtlcMinimumMsat(val: Swift.UInt64?) + public func getHtlcMaximumMsat() -> Swift.UInt64? + public func setHtlcMaximumMsat(val: Swift.UInt64?) + public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func paymentHash() -> LightningDevKit.Bindings.Sha256? - public func description() -> LightningDevKit.Bindings.Description? - public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? - public func descriptionHash() -> LightningDevKit.Bindings.Sha256? - public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? - public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func amountPicoBtc() -> Swift.UInt64? - public func currency() -> LightningDevKit.Bindings.Currency + public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate +public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateId() -> Swift.UInt64 - public func setUpdateId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) + public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool + public func addresses() -> [LightningDevKit.Bindings.SocketAddress] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput +public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) public func getSerialId() -> Swift.UInt64 public func setSerialId(val: Swift.UInt64) - public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited - public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) - public func getPrevtxOut() -> Swift.UInt32 - public func setPrevtxOut(val: Swift.UInt32) - public func getSequence() -> Swift.UInt32 - public func setSequence(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func getSats() -> Swift.UInt64 + public func setSats(val: Swift.UInt64) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func call() - @objc deinit - } -} -public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getOurToSelfDelay() -> Swift.UInt16 - public func setOurToSelfDelay(val: Swift.UInt16) - public func getOurHtlcMinimumMsat() -> Swift.UInt64 - public func setOurHtlcMinimumMsat(val: Swift.UInt64) - public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 - public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) - public func getNegotiateScidPrivacy() -> Swift.Bool - public func setNegotiateScidPrivacy(val: Swift.Bool) - public func getAnnouncedChannel() -> Swift.Bool - public func setAnnouncedChannel(val: Swift.Bool) - public func getCommitUpfrontShutdownPubkey() -> Swift.Bool - public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) - public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 - public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) - public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) - public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 - public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) - public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias RouteHint = LightningDevKit.Bindings.RouteHint +public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [LightningDevKit.Bindings.RouteHintHop] - public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) - public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? @objc deinit } } -public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ +public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? + public func getError() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Result_PaymentHashPaymentSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ +public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> [Swift.UInt8]? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents +public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OnionMessageContentsType { - case Offers - case Custom - public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType - public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents - public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents - public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? - public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func call() @objc deinit } } -public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ +public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsType? + public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? @objc deinit } } -public typealias Wallet = LightningDevKit.Bindings.Wallet +public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) - public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource - public func isOwned() -> Swift.Bool + public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) + open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] + open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] + open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func channelKeysId() -> [Swift.UInt8] + open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys @objc deinit } } -public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ +public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? + public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ +public typealias Path = LightningDevKit.Bindings.Path extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func getHops() -> [LightningDevKit.Bindings.RouteHop] + public func setHops(val: [LightningDevKit.Bindings.RouteHop]) + public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? + public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) + public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool + public func feeMsat() -> Swift.UInt64 + public func finalValueMsat() -> Swift.UInt64 + public func finalCltvExpiryDelta() -> Swift.UInt32? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ +public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? @objc deinit } } -public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo +public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [Swift.UInt64] - public func setChannels(val: [Swift.UInt64]) - public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? - public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) - public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) - public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ +public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ +public typealias Description = LightningDevKit.Bindings.Description extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool + public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public func intoInner() -> Swift.String + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor +public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getPerCommitmentNumber() -> Swift.UInt64 - public func setPerCommitmentNumber(val: Swift.UInt64) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment - public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) - public func getPreimage() -> [Swift.UInt8]? - public func setPreimage(val: [Swift.UInt8]?) - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool - public func outpoint() -> LightningDevKit.Bindings.OutPoint - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func txOutput() -> LightningDevKit.Bindings.TxOut - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getIntroductionNodeId() -> [Swift.UInt8] + public func setIntroductionNodeId(val: [Swift.UInt8]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getBlindedHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setBlindedHops(val: [LightningDevKit.Bindings.BlindedHop]) + public init(introductionNodeIdArg: [Swift.UInt8], blindingPointArg: [Swift.UInt8], blindedHopsArg: [LightningDevKit.Bindings.BlindedHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool + public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func oneHopForPayment(payeeNodeId: [Swift.UInt8], payeeTlvs: LightningDevKit.Bindings.ReceiveTlvs, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ +public typealias Route = LightningDevKit.Bindings.Route extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getPaths() -> [LightningDevKit.Bindings.Path] + public func setPaths(val: [LightningDevKit.Bindings.Path]) + public func getRouteParams() -> LightningDevKit.Bindings.RouteParameters? + public func setRouteParams(val: LightningDevKit.Bindings.RouteParameters) + public init(pathsArg: [LightningDevKit.Bindings.Path], routeParamsArg: LightningDevKit.Bindings.RouteParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool + public func getTotalFees() -> Swift.UInt64 + public func getTotalAmount() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getPushMsat() -> Swift.UInt64 - public func setPushMsat(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool +public typealias Shutdown = LightningDevKit.Bindings.Shutdown +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getScriptpubkey() -> [Swift.UInt8] + public func setScriptpubkey(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ +public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.CoinSelection? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedTail? @objc deinit } } -public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> [Swift.UInt8]? + public init(scorer: LightningDevKit.Bindings.ScoreLookUp, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_KeyPairZNoneZ = LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_KeyPairZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ +public typealias EntropySource = LightningDevKit.Bindings.EntropySource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public init() + open func getSecureRandomBytes() -> [Swift.UInt8] @objc deinit } } -public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript +public typealias TxIn = LightningDevKit.Bindings.TxIn extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func intoInner() -> [Swift.UInt8] - public func asLegacyPubkey() -> [Swift.UInt8]? - public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) + public func getWitness() -> [Swift.UInt8] + public func getScriptSig() -> [Swift.UInt8] + public func getSequence() -> Swift.UInt32 + public func getPreviousTxid() -> [Swift.UInt8] + public func getPreviousVout() -> Swift.UInt32 @objc deinit } } -public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ +public typealias ScoreLookUp = LightningDevKit.Bindings.ScoreLookUp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreLookUp : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 @objc deinit } } -public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ +public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? + public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ +public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isInitialSyncComplete() -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OutPoint = LightningDevKit.Bindings.OutPoint +public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public func getIndex() -> Swift.UInt16 - public func setIndex(val: Swift.UInt16) - public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func toChannelId() -> [Swift.UInt8] + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]?) + public func getPaymentMetadata() -> [Swift.UInt8]? + public func setPaymentMetadata(val: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields + public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public func withCustomTlvs(customTlvs: [(Swift.UInt64, [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public func customTlvs() -> [(Swift.UInt64, [Swift.UInt8])] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SignatureNoneZ = LightningDevKit.Bindings.Result_SignatureNoneZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SignatureNoneZ + public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? @objc deinit } } -public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ +public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? + public init() + public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOffered() -> Swift.Bool - public func setOffered(val: Swift.Bool) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getTransactionOutputIndex() -> Swift.UInt32? - public func setTransactionOutputIndex(val: Swift.UInt32?) - public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) - public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getChannelTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func setChannelTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64, channelTransactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool + public func witnessScript() -> [Swift.UInt8]? + public func maxWitnessLength() -> Swift.UInt public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Refund = LightningDevKit.Bindings.Refund +public typealias Logger = LightningDevKit.Bindings.Logger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func log(record: LightningDevKit.Bindings.Record) + @objc deinit + } +} +public typealias Network = LightningDevKit.Bindings.Network +extension LightningDevKit.Bindings { + public enum Network { + case Bitcoin + case Testnet + case Regtest + case Signet + public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } +} +public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? - public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func metadata() -> [Swift.UInt8] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures public func quantity() -> Swift.UInt64? public func payerId() -> [Swift.UInt8] public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer +public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func debugLogLiquidityStats() - public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? - public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? - public func asScore() -> LightningDevKit.Bindings.Score + public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? + public func listChannels() -> [Swift.UInt64] + public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? + public func listNodes() -> [LightningDevKit.Bindings.NodeId] + public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.SocketAddress]? + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) + public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig + public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] + public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] + public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseAllChannelsBroadcastingLatestTxn() + public func forceCloseAllChannelsWithoutBroadcastingTxn() + public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ + public func abandonPayment(paymentId: [Swift.UInt8]) + public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public func sendSpontaneousPreflightProbes(nodeId: [Swift.UInt8], amountMsat: Swift.UInt64, finalCltvExpiryDelta: Swift.UInt32, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func sendPreflightProbes(routeParams: LightningDevKit.Bindings.RouteParameters, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func batchFundingTransactionGenerated(temporaryChannels: [([Swift.UInt8], [Swift.UInt8])], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func processPendingHtlcForwards() + public func timerTickOccurred() + public func failHtlcBackwards(paymentHash: [Swift.UInt8]) + public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) + public func claimFunds(paymentPreimage: [Swift.UInt8]) + public func claimFundsWithKnownCustomTlvs(paymentPreimage: [Swift.UInt8]) + public func getOurNodeId() -> [Swift.UInt8] + public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func getPhantomScid() -> Swift.UInt64 + public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints + public func getInterceptScid() -> Swift.UInt64 + public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func getEventOrPersistenceNeededFuture() -> LightningDevKit.Bindings.Future + public func getAndClearNeedsPersistence() -> Swift.Bool + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func initFeatures() -> LightningDevKit.Bindings.InitFeatures + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ +public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? + public init() + open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? + open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ @objc deinit } } -public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys +public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func asUnixTimestamp() -> Swift.UInt64 + public func asDurationSinceEpoch() -> Swift.UInt64 + public func asTime() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Watch = LightningDevKit.Bindings.Watch +public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] - @objc deinit + public enum Bolt11SemanticError { + case NoPaymentHash + case MultiplePaymentHashes + case NoDescription + case MultipleDescriptions + case NoPaymentSecret + case MultiplePaymentSecrets + case InvalidFeatures + case InvalidRecoveryId + case InvalidSignature + case ImpreciseAmount + public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler +public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) - open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? @objc deinit } } -public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +public typealias Utxo = LightningDevKit.Bindings.Utxo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool + public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias LightningError = LightningDevKit.Bindings.LightningError +public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func setErr(val: Swift.String) - public func getAction() -> LightningDevKit.Bindings.ErrorAction - public func setAction(val: LightningDevKit.Bindings.ErrorAction) - public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ +public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RoutingFees? + public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? @objc deinit } } -public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ +public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeFeatures? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getPaymentPreimage() -> [Swift.UInt8]? + public func setPaymentPreimage(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler +public typealias Ping = LightningDevKit.Bindings.Ping extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? - open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public func getPonglen() -> Swift.UInt16 + public func setPonglen(val: Swift.UInt16) + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlockHash() -> [Swift.UInt8]? - public func setBlockHash(val: [Swift.UInt8]?) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getScriptPubkey() -> [Swift.UInt8] - public func setScriptPubkey(val: [Swift.UInt8]) - public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] + public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) + public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] + public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) + public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] + public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) + public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] + public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) + public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? + public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) + public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned + public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) + public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) + public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Event? @objc deinit } } -public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ +public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxSignatures? + public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) + open func write() -> [Swift.UInt8] + public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner @objc deinit } } -public typealias Result_CVec_SignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ +public typealias DecodeError = LightningDevKit.Bindings.DecodeError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_SignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? + public enum DecodeErrorType { + case UnknownVersion + case UnknownRequiredFeature + case InvalidValue + case ShortRead + case BadLengthDescriptor + case Io + case UnsupportedCompression + public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType + public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError + public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError + public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError + public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError + public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError + public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError + public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError + public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool + public func getValueAsIo() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ +public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getPushMsat() -> Swift.UInt64 + public func setPushMsat(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ +public typealias PaymentError = LightningDevKit.Bindings.PaymentError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? + public enum PaymentErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError + public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError + public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? @objc deinit } } -public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ +public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? + public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? @objc deinit } } -public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters +public typealias Packet = LightningDevKit.Bindings.Packet extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Packet : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNetwork() -> LightningDevKit.Bindings.Network - public func setNetwork(val: LightningDevKit.Bindings.Network) - public func getBestBlock() -> LightningDevKit.Bindings.BestBlock - public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) - public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) + public func getVersion() -> Swift.UInt8 + public func setVersion(val: Swift.UInt8) + public func getPublicKey() -> [Swift.UInt8] + public func setPublicKey(val: [Swift.UInt8]) + public func getHopData() -> [Swift.UInt8] + public func setHopData(val: [Swift.UInt8]) + public func getHmac() -> [Swift.UInt8]? + public func setHmac(val: [Swift.UInt8]) + public init(versionArg: Swift.UInt8, publicKeyArg: [Swift.UInt8], hopDataArg: [Swift.UInt8], hmacArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Packet, b: LightningDevKit.Bindings.Packet) -> Swift.Bool + public func write() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - @objc deinit - } + public class func getLDKSwiftBindingsSerializationHash() -> Swift.String + public class func getLDKSwiftBindingsVersion() -> Swift.String + public class func getLDKSwiftBindingsCommitHash() -> Swift.String } -public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor +public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) - public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getBaseMsat() -> Swift.UInt32 + public func setBaseMsat(val: Swift.UInt32) + public func getProportionalMillionths() -> Swift.UInt32 + public func setProportionalMillionths(val: Swift.UInt32) + public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider +public typealias Listen = LightningDevKit.Bindings.Listen extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage + open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) + open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) @objc deinit } } -public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ +public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PrivateRoute? @objc deinit } } -public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ +public typealias FilesystemStore = LightningDevKit.Bindings.FilesystemStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FilesystemStore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + public init(dataDir: Swift.String) + public func getDataDir() -> Swift.String + public func asKVStore() -> LightningDevKit.Bindings.KVStore + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph +public typealias EventHandler = LightningDevKit.Bindings.EventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? - public func listChannels() -> [Swift.UInt64] - public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? - public func listNodes() -> [LightningDevKit.Bindings.NodeId] - public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.NetAddress]? - public func isOwned() -> Swift.Bool + public init() + open func handleEvent(event: LightningDevKit.Bindings.Event) @objc deinit } } -public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner +public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingKey() -> [Swift.UInt8]? - public func setFundingKey(val: [Swift.UInt8]) - public func getRevocationBaseKey() -> [Swift.UInt8]? - public func setRevocationBaseKey(val: [Swift.UInt8]) - public func getPaymentKey() -> [Swift.UInt8]? - public func setPaymentKey(val: [Swift.UInt8]) - public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? - public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) - public func getHtlcBaseKey() -> [Swift.UInt8]? - public func setHtlcBaseKey(val: [Swift.UInt8]) - public func getCommitmentSeed() -> [Swift.UInt8]? - public func setCommitmentSeed(val: [Swift.UInt8]) - public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) - public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func counterpartySelectedContestDelay() -> Swift.UInt16 - public func holderSelectedContestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner - public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner - public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) - public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice - public func signableHash() -> [Swift.UInt8]? - public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature - public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public func checkSignature() -> Swift.Bool - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func toStr() -> Swift.String + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice +public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func description() -> LightningDevKit.Bindings.PrintableString - public func createdAt() -> Swift.UInt64 - public func relativeExpiry() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func paymentHash() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func signingPubkey() -> [Swift.UInt8] - public func signableHash() -> [Swift.UInt8] - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> Swift.Bool - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? @objc deinit } } -public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ +public typealias MultiThreadedScoreLockRead = LightningDevKit.Bindings.MultiThreadedScoreLockRead extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockRead : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OnionMessage? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Event = LightningDevKit.Bindings.Event +public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EventType { - case FundingGenerationReady - case PaymentClaimable - case PaymentClaimed - case PaymentSent - case PaymentFailed - case PaymentPathSuccessful - case PaymentPathFailed - case ProbeSuccessful - case ProbeFailed - case PendingHTLCsForwardable - case HTLCIntercepted - case SpendableOutputs - case PaymentForwarded - case ChannelPending - case ChannelReady - case ChannelClosed - case DiscardFunding - case OpenChannelRequest - case HTLCHandlingFailed - case BumpTransaction - public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Event.EventType - public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8], viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Event - public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8], nextChannelId: [Swift.UInt8], feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event - public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason) -> LightningDevKit.Bindings.Event - public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event - public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event - public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? - public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? - public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? - public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? - public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? - public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? - public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? - public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? - public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? - public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? - public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? - public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? - public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? - public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? - public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? - public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? - public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? - public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? - public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? - public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) + public func getForwardingFeeBaseMsat() -> Swift.UInt32? + public func setForwardingFeeBaseMsat(val: Swift.UInt32?) + public func getCltvExpiryDelta() -> Swift.UInt16? + public func setCltvExpiryDelta(val: Swift.UInt16?) + public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + @objc deinit + } +} +public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OutPoint? + @objc deinit + } +} +public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + @objc deinit + } +} +public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? + @objc deinit + } +} +public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SendError? + @objc deinit + } +} +public typealias TxAbort = LightningDevKit.Bindings.TxAbort +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> [Swift.UInt8] + public func setData(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelValueSatoshis() -> Swift.UInt64 - public func getOutputScript() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields - public func getAmountMsat() -> Swift.UInt64 - public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - public func getViaChannelId() -> [Swift.UInt8] - public func getViaUserChannelId() -> [Swift.UInt8]? - public func getClaimDeadline() -> Swift.UInt32? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getAmountMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentPreimage() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getFeePaidMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8]? - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentFailedPermanently() -> Swift.Bool - public func getFailure() -> LightningDevKit.Bindings.PathFailure - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTimeForwardable() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getInterceptId() -> [Swift.UInt8] - public func getRequestedNextHopScid() -> Swift.UInt64 - public func getPaymentHash() -> [Swift.UInt8] - public func getInboundAmountMsat() -> Swift.UInt64 - public func getExpectedOutboundAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getNextChannelId() -> [Swift.UInt8] - public func getFeeEarnedMsat() -> Swift.UInt64? - public func getClaimFromOnchainTx() -> Swift.Bool - public func getOutboundAmountForwardedMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getFormerTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.ClosureReason - @objc deinit - } - @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getTransaction() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingSatoshis() -> Swift.UInt64 - public func getPushMsat() -> Swift.UInt64 - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination - @objc deinit - } } } public typealias InvoiceRequestFeatures = LightningDevKit.Bindings.InvoiceRequestFeatures @@ -6226,880 +6960,1033 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class InvoiceRequestFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + @objc deinit + } +} +public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getData() -> LightningDevKit.Bindings.RawDataPart + public func setData(val: LightningDevKit.Bindings.RawDataPart) + public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func paymentHash() -> LightningDevKit.Bindings.Sha256? + public func description() -> LightningDevKit.Bindings.Description? + public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? + public func descriptionHash() -> LightningDevKit.Bindings.Sha256? + public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? + public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func amountPicoBtc() -> Swift.UInt64? + public func currency() -> LightningDevKit.Bindings.Currency + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getEnabled() -> Swift.Bool + public func setEnabled(val: Swift.Bool) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? + public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) + public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func setKeysendOptional() + public func setKeysendRequired() + public func supportsKeysend() -> Swift.Bool + public func requiresKeysend() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteParameters? @objc deinit } } -public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Offer? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHop? @objc deinit } } -public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage +public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func getTxHash() -> [Swift.UInt8]? + public func setTxHash(val: [Swift.UInt8]) + public func getWitnesses() -> [[Swift.UInt8]] + public func setWitnesses(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ +public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func getIntermediateNodes() -> [[Swift.UInt8]] + public func setIntermediateNodes(val: [[Swift.UInt8]]) + public func getDestination() -> LightningDevKit.Bindings.Destination + public func setDestination(val: LightningDevKit.Bindings.Destination) + public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [LightningDevKit.Bindings.Utxo]? + @objc deinit + } +} +@_hasMissingDesignatedInitializers public class LDKExampleClass { + public class func printSomething() + public func printInstance() + @objc deinit +} +public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + @objc deinit + } +} +public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeInfo? + public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? @objc deinit } } -public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction +public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ErrorActionType { - case DisconnectPeer - case DisconnectPeerWithWarning - case IgnoreError - case IgnoreAndLog - case IgnoreDuplicateGossip - case SendErrorMessage - case SendWarningMessage - public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType - public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? - public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? - public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? - public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? - public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeSatoshis() -> Swift.UInt64 + public func setFeeSatoshis(val: Swift.UInt64) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) + public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) + public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - public func getLogLevel() -> LightningDevKit.Bindings.Level - @objc deinit - } } } -public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer +public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer - public func asScore() -> LightningDevKit.Bindings.Score + public func getA() -> [Swift.UInt8]? + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPreimageAPIErrorZ = LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ +public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPreimageAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? + public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters + public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public func getMaxTotalRoutingFeeMsat() -> Swift.UInt64? + public func setMaxTotalRoutingFeeMsat(val: Swift.UInt64?) + public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64, maxTotalRoutingFeeMsatArg: Swift.UInt64?) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public class func initWithPaymentParamsAndValue(paymentParams: LightningDevKit.Bindings.PaymentParameters, finalValueMsat: Swift.UInt64) -> LightningDevKit.Bindings.RouteParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ +public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? + public enum SignOrCreationErrorType { + case SignError + case CreationError + public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType + public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError + public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError + public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? @objc deinit } } -public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingSigned? + public init() + open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult @objc deinit } } -public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints +public enum NetworkGraphArgument { + case serialized([Swift.UInt8]) + case instance(LightningDevKit.NetworkGraph) +} +public struct ChannelManagerConstructionParameters { + public var config: LightningDevKit.UserConfig + public var entropySource: LightningDevKit.EntropySource + public var nodeSigner: LightningDevKit.NodeSigner + public var signerProvider: LightningDevKit.SignerProvider + public var feeEstimator: LightningDevKit.FeeEstimator + public var chainMonitor: LightningDevKit.ChainMonitor + public var txBroadcaster: LightningDevKit.BroadcasterInterface + public var enableP2PGossip: Swift.Bool + public var scorer: LightningDevKit.MultiThreadedLockableScore? + public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? + public var payerRetries: LightningDevKit.Bindings.Retry + public var logger: LightningDevKit.Logger + public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt32(3))) +} +@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { + final public let channelManager: LightningDevKit.ChannelManager + final public let channel_manager_latest_block_hash: [Swift.UInt8]? + public var netGraph: LightningDevKit.NetworkGraph? { + get + } + final public let peerManager: LightningDevKit.PeerManager + public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { + get + } + public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws + public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) + public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) + public func interrupt() + public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler + @objc deinit +} +public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { + func handleEvent(event: LightningDevKit.Event) +} +@_hasMissingDesignatedInitializers public class TCPPeerHandler { + public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool + public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool + @objc deinit +} +public typealias KeysManager = LightningDevKit.Bindings.KeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) - public func getPhantomScid() -> Swift.UInt64 - public func setPhantomScid(val: Swift.UInt64) - public func getRealNodePubkey() -> [Swift.UInt8] - public func setRealNodePubkey(val: [Swift.UInt8]) - public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) + public func getNodeSecretKey() -> [Swift.UInt8] + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ +public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias UserConfig = LightningDevKit.Bindings.UserConfig +public typealias Filter = LightningDevKit.Bindings.Filter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig - public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) - public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) - public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig - public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) - public func getAcceptForwardsToPrivChannels() -> Swift.Bool - public func setAcceptForwardsToPrivChannels(val: Swift.Bool) - public func getAcceptInboundChannels() -> Swift.Bool - public func setAcceptInboundChannels(val: Swift.Bool) - public func getManuallyAcceptInboundChannels() -> Swift.Bool - public func setManuallyAcceptInboundChannels(val: Swift.Bool) - public func getAcceptInterceptHtlcs() -> Swift.Bool - public func setAcceptInterceptHtlcs(val: Swift.Bool) - public func getAcceptMppKeysend() -> Swift.Bool - public func setAcceptMppKeysend(val: Swift.Bool) - public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) - public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig - public func isOwned() -> Swift.Bool + public init() + open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) + open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) @objc deinit } } -public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ +public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.Description? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? @objc deinit } } -public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 +public typealias Sha256 = LightningDevKit.Bindings.Sha256 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool + public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ +public typealias BindingsError = LightningDevKit.Bindings.BindingsError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + public func getDummy() -> Swift.UInt8 @objc deinit } } -public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure -extension LightningDevKit.Bindings { - public enum RetryableSendFailure { - case PaymentExpired - case RouteNotFound - case DuplicatePayment - public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange +public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public func getSyncComplete() -> Swift.Bool - public func setSyncComplete(val: Swift.Bool) - public func getShortChannelIds() -> [Swift.UInt64] - public func setShortChannelIds(val: [Swift.UInt64]) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) - public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDetails? @objc deinit } } -public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +public typealias APIError = LightningDevKit.Bindings.APIError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RecentPaymentDetailsType { - case Pending - case Fulfilled - case Abandoned - public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public enum APIErrorType { + case APIMisuseError + case FeeRateTooHigh + case InvalidRoute + case ChannelUnavailable + case MonitorUpdateInProgress + case IncompatibleShutdownScript + public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType - public class func initWithPending(paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithFulfilled(paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithAbandoned(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails - public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? - public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? - public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType + public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError + public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError + public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError + public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? + public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? + public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? + public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? + public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? @objc deinit - @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] - public func getTotalMsat() -> Swift.UInt64 + public func getErr() -> Swift.String @objc deinit } - @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8]? + public func getErr() -> Swift.String + public func getFeerate() -> Swift.UInt32 @objc deinit } - @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getScript() -> LightningDevKit.Bindings.ShutdownScript @objc deinit } } } -public typealias Record = LightningDevKit.Bindings.Record +public typealias TxComplete = LightningDevKit.Bindings.TxComplete extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLevel() -> LightningDevKit.Bindings.Level - public func setLevel(val: LightningDevKit.Bindings.Level) - public func getArgs() -> Swift.String - public func setArgs(val: Swift.String) - public func getModulePath() -> Swift.String - public func setModulePath(val: Swift.String) - public func getFile() -> Swift.String - public func setFile(val: Swift.String) - public func getLine() -> Swift.UInt32 - public func setLine(val: Swift.UInt32) + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ +public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getBasePenaltyMsat() -> Swift.UInt64 + public func setBasePenaltyMsat(val: Swift.UInt64) + public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getAntiProbingPenaltyMsat() -> Swift.UInt64 + public func setAntiProbingPenaltyMsat(val: Swift.UInt64) + public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 + public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) + public func getLinearSuccessProbability() -> Swift.Bool + public func setLinearSuccessProbability(val: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters + public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) + public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) + public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) + public func clearManualPenalties() + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler +public typealias Result_C2Tuple_CVec_u8ZusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_CVec_u8ZusizeZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? - public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) - public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? - public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) - public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? - public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) - public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? - public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) - public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], Swift.UInt)? @objc deinit } } -public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields +public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentSecret() -> [Swift.UInt8]? - public func setPaymentSecret(val: [Swift.UInt8]?) - public func getPaymentMetadata() -> [Swift.UInt8]? - public func setPaymentMetadata(val: [Swift.UInt8]?) - public init(paymentSecretArg: [Swift.UInt8]?, paymentMetadataArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields - public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity +public typealias ForwardTlvs = LightningDevKit.Bindings.ForwardTlvs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ForwardTlvs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EffectiveCapacityType { - case ExactLiquidity - case AdvertisedMaxHTLC - case Total - case Infinite - case HintMaxHTLC - case Unknown - public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType - public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity - public func asMsat() -> Swift.UInt64 - public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? - public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? - public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? - public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getPaymentRelay() -> LightningDevKit.Bindings.PaymentRelay + public func setPaymentRelay(val: LightningDevKit.Bindings.PaymentRelay) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(shortChannelIdArg: Swift.UInt64, paymentRelayArg: LightningDevKit.Bindings.PaymentRelay, paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getLiquidityMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getCapacityMsat() -> Swift.UInt64 - public func getHtlcMaximumMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } } } -public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager +public typealias OutPoint = LightningDevKit.Bindings.OutPoint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func getNodeSecretKey() -> [Swift.UInt8] - public func getPhantomNodeSecretKey() -> [Swift.UInt8] + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public func getIndex() -> Swift.UInt16 + public func setIndex(val: Swift.UInt16) + public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func toChannelId() -> [Swift.UInt8] + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ +public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? + public func getValue() -> LightningDevKit.Bindings.TxAbort? @objc deinit } } -public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ +public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPath? + public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? @objc deinit } } -public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ +public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? + public func getUpdateId() -> Swift.UInt64 + public func setUpdateId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ +public typealias Persister = LightningDevKit.Bindings.Persister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosureReason? + public init() + open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneIOErrorZ @objc deinit } } -public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFeeSatoshis() -> Swift.UInt64 - public func setMinFeeSatoshis(val: Swift.UInt64) - public func getMaxFeeSatoshis() -> Swift.UInt64 - public func setMaxFeeSatoshis(val: Swift.UInt64) - public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public func getSyncComplete() -> Swift.Bool + public func setSyncComplete(val: Swift.Bool) + public func getShortChannelIds() -> [Swift.UInt64] + public func setShortChannelIds(val: [Swift.UInt64]) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) + public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction +public typealias Score = LightningDevKit.Bindings.Score +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(scoreLookUp: LightningDevKit.Bindings.ScoreLookUp, scoreUpdate: LightningDevKit.Bindings.ScoreUpdate) + open func write() -> [Swift.UInt8] + public func getScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func getScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + @objc deinit + } +} +public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + @objc deinit + } +} +public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func tlvType() -> Swift.UInt64 + open func write() -> [Swift.UInt8] + @objc deinit + } +} +public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTransaction() -> [Swift.UInt8] - public func setTransaction(val: [Swift.UInt8]) - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? @objc deinit } } -public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError +public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] + public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) + public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? + public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) + public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters +public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getSelectedContestDelay() -> Swift.UInt16 - public func setSelectedContestDelay(val: Swift.UInt16) - public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ +public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Event? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) + public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) + public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ +public typealias VerifiedInvoiceRequest = LightningDevKit.Bindings.VerifiedInvoiceRequest extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class VerifiedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? + public func getKeys() -> [Swift.UInt8]? + public func setKeys(val: [Swift.UInt8]?) + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ +public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValue() -> LightningDevKit.Bindings.Hostname? @objc deinit } } -public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated +public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingTxid() -> [Swift.UInt8]? - public func setFundingTxid(val: [Swift.UInt8]) - public func getFundingOutputIndex() -> Swift.UInt16 - public func setFundingOutputIndex(val: Swift.UInt16) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeInfo? @objc deinit } } -public enum NetworkGraphArgument { - case serialized([Swift.UInt8]) - case instance(LightningDevKit.NetworkGraph) -} -public struct ChannelManagerConstructionParameters { - public var config: LightningDevKit.UserConfig - public var entropySource: LightningDevKit.EntropySource - public var nodeSigner: LightningDevKit.NodeSigner - public var signerProvider: LightningDevKit.SignerProvider - public var feeEstimator: LightningDevKit.FeeEstimator - public var chainMonitor: LightningDevKit.ChainMonitor - public var txBroadcaster: LightningDevKit.BroadcasterInterface - public var enableP2PGossip: Swift.Bool - public var scorer: LightningDevKit.MultiThreadedLockableScore? - public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? - public var payerRetries: LightningDevKit.Bindings.Retry - public var logger: LightningDevKit.Logger - public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt(3))) -} -@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { - final public let channelManager: LightningDevKit.ChannelManager - final public let channel_manager_latest_block_hash: [Swift.UInt8]? - public var netGraph: LightningDevKit.NetworkGraph? { - get - } - final public let peerManager: LightningDevKit.PeerManager - public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { - get - } - public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws - public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) - public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) - public func interrupt() - public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler - @objc deinit -} -public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { - func handleEvent(event: LightningDevKit.Event) -} -@_hasMissingDesignatedInitializers public class TCPPeerHandler { - public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool - public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool - @objc deinit -} -public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC +public typealias Result_NoneIOErrorZ = LightningDevKit.Bindings.Result_NoneIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getPaymentPreimage() -> [Swift.UInt8]? - public func setPaymentPreimage(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias IOError = LightningDevKit.Bindings.IOError +public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ extension LightningDevKit.Bindings { - public enum IOError { - case NotFound - case PermissionDenied - case ConnectionRefused - case ConnectionReset - case ConnectionAborted - case NotConnected - case AddrInUse - case AddrNotAvailable - case BrokenPipe - case AlreadyExists - case WouldBlock - case InvalidInput - case InvalidData - case TimedOut - case WriteZero - case Interrupted - case Other - case UnexpectedEof - public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.CoinSelection? + @objc deinit } } -public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ +public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Ping? + public func getFundingKey() -> [Swift.UInt8]? + public func setFundingKey(val: [Swift.UInt8]) + public func getRevocationBaseKey() -> [Swift.UInt8]? + public func setRevocationBaseKey(val: [Swift.UInt8]) + public func getPaymentKey() -> [Swift.UInt8]? + public func setPaymentKey(val: [Swift.UInt8]) + public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? + public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) + public func getHtlcBaseKey() -> [Swift.UInt8]? + public func setHtlcBaseKey(val: [Swift.UInt8]) + public func getCommitmentSeed() -> [Swift.UInt8]? + public func setCommitmentSeed(val: [Swift.UInt8]) + public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) + public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys? + public func counterpartySelectedContestDelay() -> Swift.UInt16? + public func holderSelectedContestDelay() -> Swift.UInt16? + public func isOutbound() -> Swift.Bool? + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getSkimmedFeeMsat() -> Swift.UInt64? - public func setSkimmedFeeMsat(val: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public func getShortChannelIdAlias() -> Swift.UInt64? + public func setShortChannelIdAlias(val: Swift.UInt64?) + public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MonitorEventType { - case HTLCEvent - case CommitmentTxConfirmed - case Completed - case UpdateFailed - public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType - public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCommitmentTxConfirmed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithUpdateFailed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? - public func getValueAsCommitmentTxConfirmed() -> LightningDevKit.Bindings.OutPoint? - public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? - public func getValueAsUpdateFailed() -> LightningDevKit.Bindings.OutPoint? + public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxInitRbf? @objc deinit - @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - public func getMonitorUpdateId() -> Swift.UInt64 - @objc deinit - } } } -public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + public func getValue() -> LightningDevKit.Bindings.HTLCDestination? @objc deinit } } @@ -7120,373 +8007,189 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) - public func getGenesisHash() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) - public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph - public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? - public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) - public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func channelFailedPermanent(shortChannelId: Swift.UInt64) - public func nodeFailedPermanent(nodeId: [Swift.UInt8]) - public func removeStaleChannelsAndTracking() - public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) - public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Quantity = LightningDevKit.Bindings.Quantity +public typealias Result_ThirtyTwoBytesPaymentErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Shutdown = LightningDevKit.Bindings.Shutdown +public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getScriptpubkey() -> [Swift.UInt8] - public func setScriptpubkey(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? @objc deinit } } -public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo +public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getNodeOne() -> LightningDevKit.Bindings.NodeId - public func setNodeOne(val: LightningDevKit.Bindings.NodeId) - public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getNodeTwo() -> LightningDevKit.Bindings.NodeId - public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) - public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getCapacitySats() -> Swift.UInt64? - public func setCapacitySats(val: Swift.UInt64?) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool - public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? @objc deinit } } -public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError +public typealias TxOut = LightningDevKit.Bindings.TxOut extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ParseOrSemanticErrorType { - case ParseError - case SemanticError - public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType - public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) + public func getScriptPubkey() -> [Swift.UInt8] + public func getValue() -> Swift.UInt64 @objc deinit } } -@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { - public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - @objc deinit - open var hashValue: Swift.Int { - get - } -} -@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { - public func activate() -> Self - public func activateOnce() -> Self - @objc deinit -} -@_hasMissingDesignatedInitializers public class Bindings { - public enum PrintSeverity : Swift.UInt { - case DEBUG - case WARNING - case ERROR - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { - get - } - } - public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) - public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) - public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer - public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper - public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String - public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func ldkGetCompiledVersion() -> Swift.String - public class func ldkCBindingsGetCompiledVersion() -> Swift.String - public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool - public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] - public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures - public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] - public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] - public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] - public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] - public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] - public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 - public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.Score, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") - public class func readBlockHashChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func readBlockHashChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - @objc deinit -} -@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { - public init() - public func getPointer() -> Swift.UnsafeMutableRawPointer - @objc deinit -} -public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo +public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) - public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool - public func addresses() -> [LightningDevKit.Bindings.NetAddress] + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsInit? + public func getValue() -> LightningDevKit.Bindings.PathFailure? @objc deinit } } -public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop +public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) + open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader @objc deinit } } -public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice +public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func signingPubkey() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOk() -> Swift.Bool @objc deinit } } -public typealias APIError = LightningDevKit.Bindings.APIError +public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum APIErrorType { - case APIMisuseError - case FeeRateTooHigh - case InvalidRoute - case ChannelUnavailable - case MonitorUpdateInProgress - case IncompatibleShutdownScript - public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType - public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError - public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError - public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError - public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? - public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? - public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? - public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? - public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? + public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) + open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider @objc deinit - @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func getFeerate() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getScript() -> LightningDevKit.Bindings.ShutdownScript - @objc deinit - } } } -public typealias Result_NoneErrorZ = LightningDevKit.Bindings.Result_NoneErrorZ +public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? @objc deinit } } -public typealias NetAddress = LightningDevKit.Bindings.NetAddress +public typealias SocketAddress = LightningDevKit.Bindings.SocketAddress extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetAddress : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SocketAddress : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetAddressType { - case IPv4 - case IPv6 + public enum SocketAddressType { + case TcpIpV4 + case TcpIpV6 case OnionV2 case OnionV3 case Hostname - public static func == (a: LightningDevKit.Bindings.NetAddress.NetAddressType, b: LightningDevKit.Bindings.NetAddress.NetAddressType) -> Swift.Bool + public static func == (a: LightningDevKit.Bindings.SocketAddress.SocketAddressType, b: LightningDevKit.Bindings.SocketAddress.SocketAddressType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetAddress.NetAddressType - public class func initWithIpv4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithIpv6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func eq(a: LightningDevKit.Bindings.NetAddress, b: LightningDevKit.Bindings.NetAddress) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func getValueAsIPv4() -> LightningDevKit.Bindings.NetAddress.IPv4? - public func getValueAsIPv6() -> LightningDevKit.Bindings.NetAddress.IPv6? + public func getValueType() -> LightningDevKit.Bindings.SocketAddress.SocketAddressType + public class func initWithTcpIpV4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithTcpIpV6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func eq(a: LightningDevKit.Bindings.SocketAddress, b: LightningDevKit.Bindings.SocketAddress) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func getValueAsTcpIpV4() -> LightningDevKit.Bindings.SocketAddress.TcpIpV4? + public func getValueAsTcpIpV6() -> LightningDevKit.Bindings.SocketAddress.TcpIpV6? public func getValueAsOnionV2() -> [Swift.UInt8]? - public func getValueAsOnionV3() -> LightningDevKit.Bindings.NetAddress.OnionV3? - public func getValueAsHostname() -> LightningDevKit.Bindings.NetAddress.Hostname? + public func getValueAsOnionV3() -> LightningDevKit.Bindings.SocketAddress.OnionV3? + public func getValueAsHostname() -> LightningDevKit.Bindings.SocketAddress.Hostname? @objc deinit - @_hasMissingDesignatedInitializers public class IPv4 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV4 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] public func getPort() -> Swift.UInt16 @objc deinit } - @_hasMissingDesignatedInitializers public class IPv6 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV6 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] @@ -7511,1396 +8214,1367 @@ extension LightningDevKit.Bindings { } } } -public typealias NodeId = LightningDevKit.Bindings.NodeId +public typealias RouteHop = LightningDevKit.Bindings.RouteHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId - public func asSlice() -> [Swift.UInt8] - public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public func getPubkey() -> [Swift.UInt8] + public func setPubkey(val: [Swift.UInt8]) + public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getFeeMsat() -> Swift.UInt64 + public func setFeeMsat(val: Swift.UInt64) + public func getCltvExpiryDelta() -> Swift.UInt32 + public func setCltvExpiryDelta(val: Swift.UInt32) + public func getMaybeAnnouncedChannel() -> Swift.Bool + public func setMaybeAnnouncedChannel(val: Swift.Bool) + public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32, maybeAnnouncedChannelArg: Swift.Bool) public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ +public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) + public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] + public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] + public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] + public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func getUpdateFuture() -> LightningDevKit.Bindings.Future + public func rebroadcastPendingClaims() + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func asWatch() -> LightningDevKit.Bindings.Watch + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstTimestamp() -> Swift.UInt32 + public func setFirstTimestamp(val: Swift.UInt32) + public func getTimestampRange() -> Swift.UInt32 + public func setTimestampRange(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + @objc deinit + } +} +public typealias Result_RetryDecodeErrorZ = LightningDevKit.Bindings.Result_RetryDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RetryDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddInput? + public func getValue() -> LightningDevKit.Bindings.Retry? @objc deinit } } -public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate +public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] - public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) - public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] - public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) - public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] - public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) - public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] - public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) - public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? - public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) - public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned - public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) - public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) - public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> Swift.Bool? + @objc deinit + } +} +public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_SignatureCVec_SignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ +public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_SignatureCVec_SignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? + public init() + public func getMinSeenSecret() -> Swift.UInt64 + public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState -extension LightningDevKit.Bindings { - public enum ChannelShutdownState { - case NotShuttingDown - case ShutdownInitiated - case ResolvingHTLCs - case NegotiatingClosingFee - case ShutdownComplete - public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ +public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? @objc deinit } } -public typealias DecodeError = LightningDevKit.Bindings.DecodeError +public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DecodeErrorType { - case UnknownVersion - case UnknownRequiredFeature - case InvalidValue - case ShortRead - case BadLengthDescriptor - case Io - case UnsupportedCompression - public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType - public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError - public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError - public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError - public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError - public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError - public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError - public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError - public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool - public func getValueAsIo() -> LightningDevKit.Bindings.IOError? + public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WarningMessage? @objc deinit } } -public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider +public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ +public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReady? + public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? @objc deinit } } -public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +public typealias PaymentConstraints = LightningDevKit.Bindings.PaymentConstraints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentConstraints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + public func getMaxCltvExpiry() -> Swift.UInt32 + public func setMaxCltvExpiry(val: Swift.UInt32) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public init(maxCltvExpiryArg: Swift.UInt32, htlcMinimumMsatArg: Swift.UInt64) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ +public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannel? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? @objc deinit } } -public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate +public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? @objc deinit } } -public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor +public typealias Future = LightningDevKit.Bindings.Future extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) - public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] - public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] - public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] - public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func getUpdateFuture() -> LightningDevKit.Bindings.Future - public func rebroadcastPendingClaims() - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func asWatch() -> LightningDevKit.Bindings.Watch - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError +public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ClosingSigned? @objc deinit } } -public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner +public typealias RouteHint = LightningDevKit.Bindings.RouteHint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] - open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_SignatureNoneZ + public func getA() -> [LightningDevKit.Bindings.RouteHintHop] + public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) + public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures +public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } -public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection +public typealias Result_CVec_u8ZIOErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] - public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) - public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? - public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) - public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias FilesystemPersister = LightningDevKit.Bindings.FilesystemPersister +public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FilesystemPersister : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(pathToChannelData: Swift.String) - public func getDataDir() -> Swift.String - public func readChannelmonitors(entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ + public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func debugLogLiquidityStats() + public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? + public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? + public func historicalEstimatedPaymentSuccessProbability(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId, amountMsat: Swift.UInt64, params: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.Double? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func asScore() -> LightningDevKit.Bindings.Score + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool +public typealias NodeId = LightningDevKit.Bindings.NodeId +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId + public func asSlice() -> [Swift.UInt8] + public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner +public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) - open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func getNodeSignature1() -> [Swift.UInt8] + public func setNodeSignature1(val: [Swift.UInt8]) + public func getNodeSignature2() -> [Swift.UInt8] + public func setNodeSignature2(val: [Swift.UInt8]) + public func getBitcoinSignature1() -> [Swift.UInt8] + public func setBitcoinSignature1(val: [Swift.UInt8]) + public func getBitcoinSignature2() -> [Swift.UInt8] + public func setBitcoinSignature2(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ +public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum ChannelMonitorUpdateStatus { + case Completed + case InProgress + case UnrecoverableError + public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAckRbf? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters +public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func contestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func isOwned() -> Swift.Bool + public enum HTLCDestinationType { + case NextHopChannel + case UnknownNextHop + case InvalidForward + case FailedPayment + public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType + public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? + public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? + public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? + public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? @objc deinit + @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } } } -public typealias Result_PaymentSecretNoneZ = LightningDevKit.Bindings.Result_PaymentSecretNoneZ +public typealias Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ = LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.SendError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)? @objc deinit } } -public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty - public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? - public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getShortChannelId() -> Swift.UInt64? - public func setShortChannelId(val: Swift.UInt64?) - public func getOutboundScidAlias() -> Swift.UInt64? - public func setOutboundScidAlias(val: Swift.UInt64?) - public func getInboundScidAlias() -> Swift.UInt64? - public func setInboundScidAlias(val: Swift.UInt64?) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public func getUnspendablePunishmentReserve() -> Swift.UInt64? - public func setUnspendablePunishmentReserve(val: Swift.UInt64?) - public func getUserChannelId() -> [Swift.UInt8] - public func setUserChannelId(val: [Swift.UInt8]) - public func getFeerateSatPer1000Weight() -> Swift.UInt32? - public func setFeerateSatPer1000Weight(val: Swift.UInt32?) - public func getBalanceMsat() -> Swift.UInt64 - public func setBalanceMsat(val: Swift.UInt64) - public func getOutboundCapacityMsat() -> Swift.UInt64 - public func setOutboundCapacityMsat(val: Swift.UInt64) - public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 - public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) - public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 - public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) - public func getInboundCapacityMsat() -> Swift.UInt64 - public func setInboundCapacityMsat(val: Swift.UInt64) - public func getConfirmationsRequired() -> Swift.UInt32? - public func setConfirmationsRequired(val: Swift.UInt32?) - public func getConfirmations() -> Swift.UInt32? - public func setConfirmations(val: Swift.UInt32?) - public func getForceCloseSpendDelay() -> Swift.UInt16? - public func setForceCloseSpendDelay(val: Swift.UInt16?) - public func getIsOutbound() -> Swift.Bool - public func setIsOutbound(val: Swift.Bool) - public func getIsChannelReady() -> Swift.Bool - public func setIsChannelReady(val: Swift.Bool) - public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? - public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) - public func getIsUsable() -> Swift.Bool - public func setIsUsable(val: Swift.Bool) - public func getIsPublic() -> Swift.Bool - public func setIsPublic(val: Swift.Bool) - public func getInboundHtlcMinimumMsat() -> Swift.UInt64? - public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getInboundHtlcMaximumMsat() -> Swift.UInt64? - public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) - public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? - public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) - public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) - public func getInboundPaymentScid() -> Swift.UInt64? - public func getOutboundPaymentScid() -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias Result_PublicKeyErrorZ = LightningDevKit.Bindings.Result_PublicKeyErrorZ +public typealias Result_PaymentRelayDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentRelayDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentRelay) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentRelay? @objc deinit } } -public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId +public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool - public func isOwned() -> Swift.Bool + public enum ParseOrSemanticErrorType { + case ParseError + case SemanticError + public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType + public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? @objc deinit } } -public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentError = LightningDevKit.Bindings.PaymentError +public typealias SendError = LightningDevKit.Bindings.SendError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PaymentErrorType { - case Invoice - case Sending - public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public enum SendErrorType { + case Secp256k1 + case TooBigPacket + case TooFewBlindedHops + case InvalidFirstHop + case InvalidMessage + case BufferFull + case GetNodeIdFailed + case BlindedPathAdvanceFailed + public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType - public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError - public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError - public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool - public func getValueAsInvoice() -> Swift.String? - public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType + public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError + public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError + public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError + public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError + public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError + public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError + public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool + public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? @objc deinit } } -public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHint? @objc deinit } } -public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ +public typealias Result_VerifiedInvoiceRequestNoneZ = LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_VerifiedInvoiceRequestNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.VerifiedInvoiceRequest) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAlias? + public func getValue() -> LightningDevKit.Bindings.VerifiedInvoiceRequest? @objc deinit } } -public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? @objc deinit } } -public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ +public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BigSize? + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingTxid() -> [Swift.UInt8]? + public func setFundingTxid(val: [Swift.UInt8]) + public func getFundingOutputIndex() -> Swift.UInt16 + public func setFundingOutputIndex(val: Swift.UInt16) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ +public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Refund? @objc deinit } } -public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ +public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? @objc deinit } } -public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ +public typealias FailureCode = LightningDevKit.Bindings.FailureCode extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FailureCode : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UntrustedString? + public enum FailureCodeType { + case TemporaryNodeFailure + case RequiredNodeFeatureMissing + case IncorrectOrUnknownPaymentDetails + case InvalidOnionPayload + public static func == (a: LightningDevKit.Bindings.FailureCode.FailureCodeType, b: LightningDevKit.Bindings.FailureCode.FailureCodeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.FailureCode.FailureCodeType + public class func initWithTemporaryNodeFailure() -> LightningDevKit.Bindings.FailureCode + public class func initWithRequiredNodeFeatureMissing() -> LightningDevKit.Bindings.FailureCode + public class func initWithIncorrectOrUnknownPaymentDetails() -> LightningDevKit.Bindings.FailureCode + public class func initWithInvalidOnionPayload(a: (Swift.UInt64, Swift.UInt16)?) -> LightningDevKit.Bindings.FailureCode + public func getValueAsInvalidOnionPayload() -> (Swift.UInt64, Swift.UInt16)?? @objc deinit } } -public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ +public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] + public func signature() -> [Swift.UInt8] + public func signableHash() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ +public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool + public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) + public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction + public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public func toHolderValueSat() -> Swift.UInt64 + public func toCounterpartyValueSat() -> Swift.UInt64 + public func toHolderScript() -> [Swift.UInt8] + public func toCounterpartyScript() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PartiallySignedTransactionNoneZ = LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ +public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PartiallySignedTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? @objc deinit } } -public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters +public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getUnspendablePunishmentReserve() -> Swift.UInt64 + public func setUnspendablePunishmentReserve(val: Swift.UInt64) + public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) + public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? + public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? + public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) + public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters +public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPayee() -> LightningDevKit.Bindings.Payee - public func setPayee(val: LightningDevKit.Bindings.Payee) - public func getExpiryTime() -> Swift.UInt64? - public func setExpiryTime(val: Swift.UInt64?) - public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 - public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) - public func getMaxPathCount() -> Swift.UInt8 - public func setMaxPathCount(val: Swift.UInt8) - public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 - public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) - public func getPreviouslyFailedChannels() -> [Swift.UInt64] - public func setPreviouslyFailedChannels(val: [Swift.UInt64]) - public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters - public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters - public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ +public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? + public func getValue() -> LightningDevKit.Bindings.OnionMessage? @objc deinit } } -public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +public typealias Result_CVec_StrZIOErrorZ = LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_StrZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithOk(o: [Swift.String]) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? - @objc deinit - } -} -public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func channel() -> LightningDevKit.Bindings.ChannelInfo - public func htlcMaximumMsat() -> Swift.UInt64 - public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.String]? @objc deinit } } -public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler +public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) - open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider + public func getBlindedNodeId() -> [Swift.UInt8] + public func setBlindedNodeId(val: [Swift.UInt8]) + public func getEncryptedPayload() -> [Swift.UInt8] + public func setEncryptedPayload(val: [Swift.UInt8]) + public init(blindedNodeIdArg: [Swift.UInt8], encryptedPayloadArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxIn = LightningDevKit.Bindings.TxIn +public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) - public func getWitness() -> [Swift.UInt8] - public func getScriptSig() -> [Swift.UInt8] - public func getSequence() -> Swift.UInt32 - public func getPreviousTxid() -> [Swift.UInt8] - public func getPreviousVout() -> Swift.UInt32 + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? @objc deinit } } -public typealias Retry = LightningDevKit.Bindings.Retry +public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RetryType { - case Attempts - case Timeout - public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public enum GraphSyncErrorType { + case DecodeError + case LightningError + public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType - public class func initWithAttempts(a: Swift.UInt) -> LightningDevKit.Bindings.Retry - public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry - public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func getValueAsAttempts() -> Swift.UInt? - public func getValueAsTimeout() -> Swift.UInt64? - @objc deinit - } -} -public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getBaseMsat() -> Swift.UInt32 - public func setBaseMsat(val: Swift.UInt32) - public func getProportionalMillionths() -> Swift.UInt32 - public func setProportionalMillionths(val: Swift.UInt32) - public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType + public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError + public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError + public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? + public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop +public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSrcNodeId() -> [Swift.UInt8] - public func setSrcNodeId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64? - public func setHtlcMinimumMsat(val: Swift.UInt64?) - public func getHtlcMaximumMsat() -> Swift.UInt64? - public func setHtlcMaximumMsat(val: Swift.UInt64?) - public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) + public enum SpendableOutputDescriptorType { + case StaticOutput + case DelayedPaymentOutput + case StaticPaymentOutput + public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType + public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? + public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit + @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func getOutput() -> LightningDevKit.Bindings.TxOut + @objc deinit + } } } -public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ +public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? + public enum OnionMessageContentsType { + case Offers + case Custom + public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType + public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents + public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents + public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? + public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +public typealias Result_ThirtyTwoBytesAPIErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OutPoint? + public func getError() -> LightningDevKit.Bindings.APIError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange +public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool - public func endBlocknum() -> Swift.UInt32 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func getNodeSecretKey() -> [Swift.UInt8] + public func getPhantomNodeSecretKey() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SendError? - @objc deinit - } -} -public typealias LockableScore = LightningDevKit.Bindings.LockableScore +public typealias LightningError = LightningDevKit.Bindings.LightningError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func lock() -> LightningDevKit.Bindings.Score + public func getErr() -> Swift.String + public func setErr(val: Swift.String) + public func getAction() -> LightningDevKit.Bindings.ErrorAction + public func setAction(val: LightningDevKit.Bindings.ErrorAction) + public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +public typealias Quantity = LightningDevKit.Bindings.Quantity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool - public func setKeysendOptional() - public func setKeysendRequired() - public func supportsKeysend() -> Swift.Bool - public func requiresKeysend() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getFlags() -> Swift.UInt8 - public func setFlags(val: Swift.UInt8) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getExcessData() -> [Swift.UInt8] - public func setExcessData(val: [Swift.UInt8]) - public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getRevocationKey() -> [Swift.UInt8] + public func setRevocationKey(val: [Swift.UInt8]) + public func getBroadcasterHtlcKey() -> [Swift.UInt8] + public func setBroadcasterHtlcKey(val: [Swift.UInt8]) + public func getCountersignatoryHtlcKey() -> [Swift.UInt8] + public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) + public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] + public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) + public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ +public typealias Result_StrSecp256k1ErrorZ = LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StrSecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> Swift.String? @objc deinit } } -public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +public typealias ProbingError = LightningDevKit.Bindings.ProbingError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ProbingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + public enum ProbingErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.ProbingError.ProbingErrorType, b: LightningDevKit.Bindings.ProbingError.ProbingErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbingError.ProbingErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.ProbingError + public class func initWithSending(a: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.ProbingError + public class func eq(a: LightningDevKit.Bindings.ProbingError, b: LightningDevKit.Bindings.ProbingError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.ProbeSendFailure? @objc deinit } } -public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ +public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] + public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_PaymentHashPaymentSecretZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ +public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? @objc deinit } } -public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public enum PaymentSendFailureType { + case ParameterError + case PathParameterError + case AllFailedResendSafe + case DuplicatePayment + case PartialFailure + public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType + public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func eq(a: LightningDevKit.Bindings.PaymentSendFailure, b: LightningDevKit.Bindings.PaymentSendFailure) -> Swift.Bool + public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? + public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? + public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? + public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? @objc deinit + @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] + public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } } } -public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) + public func asRouter() -> LightningDevKit.Bindings.Router public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ +public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Pong? + public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? @objc deinit } } -public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError +public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SignOrCreationErrorType { - case SignError - case CreationError - public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType - public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError - public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError - public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? + public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelConfig? @objc deinit } } -public typealias Balance = LightningDevKit.Bindings.Balance +public typealias IOError = LightningDevKit.Bindings.IOError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum BalanceType { - case ClaimableOnChannelClose - case ClaimableAwaitingConfirmations - case ContentiousClaimable - case MaybeTimeoutClaimableHTLC - case MaybePreimageClaimableHTLC - case CounterpartyRevokedOutputClaimable - public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType - public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance - public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool - public func claimableAmountSatoshis() -> Swift.UInt64 - public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? - public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? - public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? - public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? - public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? - public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? - @objc deinit - @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getConfirmationHeight() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getTimeoutHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentPreimage() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getClaimableHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getExpiryHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit + public enum IOError { + case NotFound + case PermissionDenied + case ConnectionRefused + case ConnectionReset + case ConnectionAborted + case NotConnected + case AddrInUse + case AddrNotAvailable + case BrokenPipe + case AlreadyExists + case WouldBlock + case InvalidInput + case InvalidData + case TimedOut + case WriteZero + case Interrupted + case Other + case UnexpectedEof + public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get } } } -public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ +public typealias Result_ClaimedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClaimedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClaimedHTLC) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WarningMessage? + public func getValue() -> LightningDevKit.Bindings.ClaimedHTLC? @objc deinit } } -public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ +public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxInitRbf? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_StringErrorZ = LightningDevKit.Bindings.Result_StringErrorZ +public typealias Result_PublicKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StringErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PublicKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StringErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> Swift.String? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel +public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + @objc deinit + } +} +public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMinFeeSatoshis() -> Swift.UInt64 + public func setMinFeeSatoshis(val: Swift.UInt64) + public func getMaxFeeSatoshis() -> Swift.UInt64 + public func setMaxFeeSatoshis(val: Swift.UInt64) + public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} extension LightningDevKit.Bindings.Currency : Swift.Equatable {} extension LightningDevKit.Bindings.Currency : Swift.Hashable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Equatable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Equatable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} -extension LightningDevKit.Bindings.Network : Swift.Equatable {} -extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Hashable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} extension LightningDevKit.Bindings.Level : Swift.Equatable {} extension LightningDevKit.Bindings.Level : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Hashable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} extension LightningDevKit.Bindings.Recipient : Swift.Equatable {} extension LightningDevKit.Bindings.Recipient : Swift.Hashable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} -extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} -extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Equatable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} +extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} +extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Equatable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Hashable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} -extension LightningDevKit.Bindings.IOError : Swift.Equatable {} -extension LightningDevKit.Bindings.IOError : Swift.Hashable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Equatable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Equatable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} +extension LightningDevKit.Bindings.Network : Swift.Equatable {} +extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Equatable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Hashable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.IOError : Swift.Equatable {} +extension LightningDevKit.Bindings.IOError : Swift.Hashable {} diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc index 5077a016..e923e3b6 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftdoc differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface index 9472702a..f02ce290 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/arm64.swiftinterface @@ -7,561 +7,1358 @@ import Foundation @_exported import LightningDevKit import Swift import _Concurrency -public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput +public typealias Result_SocketAddressDecodeErrorZ = LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias TxComplete = LightningDevKit.Bindings.TxComplete +public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool + public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public func intoTransaction() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler +public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) - public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + @objc deinit + } +} +public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? + public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) + public func getMessage() -> LightningDevKit.Bindings.UntrustedString + public func setMessage(val: LightningDevKit.Bindings.UntrustedString) + public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? @objc deinit } } -public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC +public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getFailureCode() -> Swift.UInt16 - public func setFailureCode(val: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) + public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider +public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] - open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner - open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - open func getDestinationScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? @objc deinit } } -public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getEnabled() -> Swift.Bool - public func setEnabled(val: Swift.Bool) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? - public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) - public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func getA() -> [Swift.UInt8] + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func channel() -> LightningDevKit.Bindings.ChannelInfo + public func htlcMaximumMsat() -> Swift.UInt64 + public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ +public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? @objc deinit } } -public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField +public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTlvFieldnum() -> Swift.UInt64 - public func setTlvFieldnum(val: Swift.UInt64) - public func getSuggestedValue() -> [Swift.UInt8]? - public func setSuggestedValue(val: [Swift.UInt8]?) - public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeId? @objc deinit } } -public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ +public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +public typealias Record = LightningDevKit.Bindings.Record extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OffersMessage? + public func getLevel() -> LightningDevKit.Bindings.Level + public func setLevel(val: LightningDevKit.Bindings.Level) + public func getArgs() -> Swift.String + public func setArgs(val: Swift.String) + public func getModulePath() -> Swift.String + public func setModulePath(val: Swift.String) + public func getFile() -> Swift.String + public func setFile(val: Swift.String) + public func getLine() -> Swift.UInt32 + public func setLine(val: Swift.UInt32) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ +public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxComplete? + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getOnionRoutingPacket() -> LightningDevKit.Bindings.Packet + public func setOnionRoutingPacket(val: LightningDevKit.Bindings.Packet) + public init(blindingPointArg: [Swift.UInt8], onionRoutingPacketArg: LightningDevKit.Bindings.Packet) + public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ +public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? + public func getValue() -> LightningDevKit.Bindings.MonitorEvent? @objc deinit } } -public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor +public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SpendableOutputDescriptorType { - case StaticOutput - case DelayedPaymentOutput - case StaticPaymentOutput - public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public enum EffectiveCapacityType { + case ExactLiquidity + case AdvertisedMaxHTLC + case Total + case Infinite + case HintMaxHTLC + case Unknown + public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType - public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? - public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? - public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType + public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity + public func asMsat() -> Swift.UInt64 + public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? + public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? + public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? + public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? @objc deinit - @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getOutput() -> LightningDevKit.Bindings.TxOut + public func getLiquidityMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCapacityMsat() -> Swift.UInt64 + public func getHtlcMaximumMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 @objc deinit } } } -public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ +public typealias PathFailure = LightningDevKit.Bindings.PathFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? + public enum PathFailureType { + case InitialSend + case OnPath + public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType + public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure + public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure + public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? + public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? @objc deinit + @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> LightningDevKit.Bindings.APIError + @objc deinit + } + @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? + @objc deinit + } } } -public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ +public typealias Result_SchnorrSignatureNoneZ = LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SchnorrSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ +public typealias Watch = LightningDevKit.Bindings.Watch extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public init() + open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] @objc deinit } } -public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ +public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InvoiceError? + public func getValue() -> LightningDevKit.Bindings.BigSize? @objc deinit } } -public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? @objc deinit } } -public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore +public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asLockableScore() -> LightningDevKit.Bindings.LockableScore - public func write() -> [Swift.UInt8] - public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore - public init(score: LightningDevKit.Bindings.Score) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? @objc deinit } } -public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice - public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func timestamp() -> Swift.UInt64 - public func durationSinceEpoch() -> Swift.UInt64 - public func paymentHash() -> [Swift.UInt8]? - public func payeePubKey() -> [Swift.UInt8]? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func recoverPayeePubKey() -> [Swift.UInt8] - public func expiresAt() -> Swift.UInt64? - public func expiryTime() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func durationUntilExpiry() -> Swift.UInt64 - public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 - public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool - public func minFinalCltvExpiryDelta() -> Swift.UInt64 - public func fallbackAddresses() -> [Swift.String] - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func routeHints() -> [LightningDevKit.Bindings.RouteHint] - public func currency() -> LightningDevKit.Bindings.Currency - public func amountMilliSatoshis() -> Swift.UInt64? - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func toStr() -> Swift.String - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RoutingFees? @objc deinit } } -public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs +public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(scorer: LightningDevKit.Bindings.Score, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias Currency = LightningDevKit.Bindings.Currency -extension LightningDevKit.Bindings { - public enum Currency { - case Bitcoin - case BitcoinTestnet - case Regtest - case Simnet - case Signet - public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? @objc deinit } } -public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ClosureReasonType { - case CounterpartyForceClosed - case HolderForceClosed - case CooperativeClosure - case CommitmentTxConfirmed - case FundingTimedOut - case ProcessingError - case DisconnectedPeer - case OutdatedChannelManager - case CounterpartyCoopClosedUnfundedChannel - public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool + public enum MaxDustHTLCExposureType { + case FixedLimitMsat + case FeeRateMultiplier + public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType - public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason - public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason - public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason - public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason - public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason - public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType + public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? - public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public func getValueAsFixedLimitMsat() -> Swift.UInt64? + public func getValueAsFeeRateMultiplier() -> Swift.UInt64? @objc deinit - @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } } } -public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter +public typealias Result_ThirtyTwoBytesNoneZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) - public func asRouter() -> LightningDevKit.Bindings.Router + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + @objc deinit + } +} +public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias ReceiveTlvs = LightningDevKit.Bindings.ReceiveTlvs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ReceiveTlvs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public init(paymentSecretArg: [Swift.UInt8], paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ +public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) + public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) + public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbingError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.ProbingError? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? + @objc deinit + } +} +public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOffered() -> Swift.Bool + public func setOffered(val: Swift.Bool) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getTransactionOutputIndex() -> Swift.UInt32? + public func setTransactionOutputIndex(val: Swift.UInt32?) + public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) + public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias BigSize = LightningDevKit.Bindings.BigSize +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(lockableScore: LightningDevKit.Bindings.LockableScore) + open func write() -> [Swift.UInt8] + public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + @objc deinit + } +} +public typealias Result_HTLCDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_HTLCDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSigned? + public func getValue() -> LightningDevKit.Bindings.HTLCDescriptor? @objc deinit } } -public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError +public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ extension LightningDevKit.Bindings { - public enum Bolt12SemanticError { - case AlreadyExpired - case UnsupportedChain - case UnexpectedChain - case MissingAmount - case InvalidAmount - case InsufficientAmount - case UnexpectedAmount - case UnsupportedCurrency - case UnknownRequiredFeatures - case UnexpectedFeatures - case MissingDescription - case MissingSigningPubkey - case InvalidSigningPubkey - case UnexpectedSigningPubkey - case MissingQuantity - case InvalidQuantity - case UnexpectedQuantity - case InvalidMetadata - case UnexpectedMetadata - case MissingPayerMetadata - case MissingPayerId - case MissingPaths - case InvalidPayInfo - case MissingCreationTime - case MissingPaymentHash - case MissingSignature - public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsType? + @objc deinit } } -public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures +public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + @objc deinit + } +} +public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures public func requiresUnknownBitsFrom() -> Swift.Bool public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setPaymentMetadataOptional() - public func setPaymentMetadataRequired() - public func supportsPaymentMetadata() -> Swift.Bool - public func requiresPaymentMetadata() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public enum RetryableSendFailure { + case PaymentExpired + case RouteNotFound + case DuplicatePayment + public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MessageSendEventType { - case SendAcceptChannel - case SendAcceptChannelV2 - case SendOpenChannel + public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + @objc deinit + } +} +public typealias Result_ThirtyTwoBytesPaymentSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + @objc deinit + } +} +public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice + public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func timestamp() -> Swift.UInt64 + public func durationSinceEpoch() -> Swift.UInt64 + public func paymentHash() -> [Swift.UInt8]? + public func payeePubKey() -> [Swift.UInt8]? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func recoverPayeePubKey() -> [Swift.UInt8] + public func expiresAt() -> Swift.UInt64? + public func expiryTime() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func durationUntilExpiry() -> Swift.UInt64 + public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 + public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool + public func minFinalCltvExpiryDelta() -> Swift.UInt64 + public func fallbackAddresses() -> [Swift.String] + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func routeHints() -> [LightningDevKit.Bindings.RouteHint] + public func currency() -> LightningDevKit.Bindings.Currency + public func amountMilliSatoshis() -> Swift.UInt64? + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public func toStr() -> Swift.String + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func signature() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? + public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) + public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? + public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) + public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? + public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) + public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? + public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) + public func getChainMonitor() -> LightningDevKit.Bindings.Watch? + public func setChainMonitor(val: LightningDevKit.Bindings.Watch) + public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? + public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) + public func getRouter() -> LightningDevKit.Bindings.Router? + public func setRouter(val: LightningDevKit.Bindings.Router) + public func getLogger() -> LightningDevKit.Bindings.Logger? + public func setLogger(val: LightningDevKit.Bindings.Logger) + public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig + public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Currency = LightningDevKit.Bindings.Currency +extension LightningDevKit.Bindings { + public enum Currency { + case Bitcoin + case BitcoinTestnet + case Regtest + case Simnet + case Signet + public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_ECDSASignatureNoneZ = LightningDevKit.Bindings.Result_ECDSASignatureNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ECDSASignatureNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum PaymentPurposeType { + case InvoicePayment + case SpontaneousPayment + public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType + public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? + public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentPreimage() -> [Swift.UInt8]? + public func getPaymentSecret() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + @objc deinit + } +} +public typealias ForwardNode = LightningDevKit.Bindings.ForwardNode +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ForwardNode : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTlvs() -> LightningDevKit.Bindings.ForwardTlvs + public func setTlvs(val: LightningDevKit.Bindings.ForwardTlvs) + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public init(tlvsArg: LightningDevKit.Bindings.ForwardTlvs, nodeIdArg: [Swift.UInt8], htlcMaximumMsatArg: Swift.UInt64) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsInit? + @objc deinit + } +} +public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty + public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? + public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getShortChannelId() -> Swift.UInt64? + public func setShortChannelId(val: Swift.UInt64?) + public func getOutboundScidAlias() -> Swift.UInt64? + public func setOutboundScidAlias(val: Swift.UInt64?) + public func getInboundScidAlias() -> Swift.UInt64? + public func setInboundScidAlias(val: Swift.UInt64?) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getUnspendablePunishmentReserve() -> Swift.UInt64? + public func setUnspendablePunishmentReserve(val: Swift.UInt64?) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getFeerateSatPer1000Weight() -> Swift.UInt32? + public func setFeerateSatPer1000Weight(val: Swift.UInt32?) + public func getBalanceMsat() -> Swift.UInt64 + public func setBalanceMsat(val: Swift.UInt64) + public func getOutboundCapacityMsat() -> Swift.UInt64 + public func setOutboundCapacityMsat(val: Swift.UInt64) + public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 + public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) + public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 + public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) + public func getInboundCapacityMsat() -> Swift.UInt64 + public func setInboundCapacityMsat(val: Swift.UInt64) + public func getConfirmationsRequired() -> Swift.UInt32? + public func setConfirmationsRequired(val: Swift.UInt32?) + public func getConfirmations() -> Swift.UInt32? + public func setConfirmations(val: Swift.UInt32?) + public func getForceCloseSpendDelay() -> Swift.UInt16? + public func setForceCloseSpendDelay(val: Swift.UInt16?) + public func getIsOutbound() -> Swift.Bool + public func setIsOutbound(val: Swift.Bool) + public func getIsChannelReady() -> Swift.Bool + public func setIsChannelReady(val: Swift.Bool) + public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? + public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) + public func getIsUsable() -> Swift.Bool + public func setIsUsable(val: Swift.Bool) + public func getIsPublic() -> Swift.Bool + public func setIsPublic(val: Swift.Bool) + public func getInboundHtlcMinimumMsat() -> Swift.UInt64? + public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getInboundHtlcMaximumMsat() -> Swift.UInt64? + public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) + public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? + public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) + public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) + public func getInboundPaymentScid() -> Swift.UInt64? + public func getOutboundPaymentScid() -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias TaggedHash = LightningDevKit.Bindings.TaggedHash +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TaggedHash : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + @objc deinit + } +} +public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.UtxoLookupError? + public func getValue() -> LightningDevKit.Bindings.TxOut? + @objc deinit + } +} +public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func builtTransaction() -> [Swift.UInt8] + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_ChannelDerivationParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ChannelDerivationParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDerivationParameters) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDerivationParameters? + @objc deinit + } +} +public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getHtlcSignatures() -> [[Swift.UInt8]] + public func setHtlcSignatures(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ProbeSendFailure = LightningDevKit.Bindings.ProbeSendFailure +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ProbeSendFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ProbeSendFailureType { + case RouteNotFound + case SendingFailed + public static func == (a: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType, b: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType + public class func initWithRouteNotFound() -> LightningDevKit.Bindings.ProbeSendFailure + public class func initWithSendingFailed(a: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.ProbeSendFailure + public class func eq(a: LightningDevKit.Bindings.ProbeSendFailure, b: LightningDevKit.Bindings.ProbeSendFailure) -> Swift.Bool + public func getValueAsSendingFailed() -> LightningDevKit.Bindings.PaymentSendFailure? + @objc deinit + } +} +public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MonitorEventType { + case HTLCEvent + case HolderForceClosed + case Completed + public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType + public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithHolderForceClosed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent + public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValueAsHolderForceClosed() -> LightningDevKit.Bindings.OutPoint? + public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? + @objc deinit + @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + public func getMonitorUpdateId() -> Swift.UInt64 + @objc deinit + } + } +} +public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingSigned? + @objc deinit + } +} +public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getBlockHash() -> [Swift.UInt8]? + public func setBlockHash(val: [Swift.UInt8]?) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getScriptPubkey() -> [Swift.UInt8] + public func setScriptPubkey(val: [Swift.UInt8]) + public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum OffersMessageType { + case InvoiceRequest + case Invoice + case InvoiceError + public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType + public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage + public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool + public func tlvType() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? + public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? + public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + @objc deinit + } +} +public typealias Input = LightningDevKit.Bindings.Input +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut + public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt + open func disconnectSocket() + open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool + open func hash() -> Swift.UInt64 + @objc deinit + } +} +public typealias PaymentRelay = LightningDevKit.Bindings.PaymentRelay +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentRelay : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public init(cltvExpiryDeltaArg: Swift.UInt16, feeProportionalMillionthsArg: Swift.UInt32, feeBaseMsatArg: Swift.UInt32) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +extension LightningDevKit.Bindings { + public enum SiPrefix { + case Milli + case Micro + case Nano + case Pico + public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.InMemorySigner? + @objc deinit + } +} +public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHop? + @objc deinit + } +} +public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getFlags() -> Swift.UInt8 + public func setFlags(val: Swift.UInt8) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Offer? + @objc deinit + } +} +public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MessageSendEventType { + case SendAcceptChannel + case SendAcceptChannelV2 + case SendOpenChannel case SendOpenChannelV2 case SendFundingCreated case SendFundingSigned @@ -612,7 +1409,7 @@ extension LightningDevKit.Bindings { public class func initWithSendTxSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxInitRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxAckRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.MessageSendEvent - public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.MessageSendEvent + public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendChannelReady(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendAnnouncementSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithUpdateHtlcs(nodeId: [Swift.UInt8], updates: LightningDevKit.Bindings.CommitmentUpdate) -> LightningDevKit.Bindings.MessageSendEvent @@ -765,7 +1562,7 @@ extension LightningDevKit.Bindings { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.TxAddInput + public func getMsg() -> LightningDevKit.Bindings.TxAbort @objc deinit } @_hasMissingDesignatedInitializers public class SendChannelReady : LightningDevKit.NativeTypeWrapper { @@ -854,553 +1651,257 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class HandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getAction() -> LightningDevKit.Bindings.ErrorAction - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter - @objc deinit - } - } -} -public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOk() -> Swift.Bool - @objc deinit - } -} -public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getRevocationPubkey() -> [Swift.UInt8] - public func setRevocationPubkey(val: [Swift.UInt8]) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? - @objc deinit - } -} -public typealias Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? - @objc deinit - } -} -public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) - open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] - open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] - open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func channelKeysId() -> [Swift.UInt8] - open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - @objc deinit - } -} -public typealias Result__u832APIErrorZ = LightningDevKit.Bindings.Result__u832APIErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result__u832APIErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.BlindedHop] - public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 - public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? - @objc deinit - } -} -public typealias BestBlock = LightningDevKit.Bindings.BestBlock -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool - public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock - public init(blockHash: [Swift.UInt8], height: Swift.UInt32) - public func blockHash() -> [Swift.UInt8] - public func height() -> Swift.UInt32 - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 - public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) - public func getLiquidityOffsetHalfLife() -> Swift.UInt64 - public func setLiquidityOffsetHalfLife(val: Swift.UInt64) - public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget -extension LightningDevKit.Bindings { - public enum ConfirmationTarget { - case MempoolMinimum - case Background - case Normal - case HighPriority - public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.BlindedPath? - @objc deinit - } -} -public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public func getSats() -> Swift.UInt64 - public func setSats(val: Swift.UInt64) - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getHtlcSignatures() -> [[Swift.UInt8]] - public func setHtlcSignatures(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FailureCode = LightningDevKit.Bindings.FailureCode -extension LightningDevKit.Bindings { - public enum FailureCode { - case TemporaryNodeFailure - case RequiredNodeFeatureMissing - case IncorrectOrUnknownPaymentDetails - public static func == (a: LightningDevKit.Bindings.FailureCode, b: LightningDevKit.Bindings.FailureCode) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + public func getNodeId() -> [Swift.UInt8] + public func getAction() -> LightningDevKit.Bindings.ErrorAction + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter + @objc deinit } } } -public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ +public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? + public func getValue() -> LightningDevKit.Bindings.Shutdown? @objc deinit } } -public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +public typealias ScoreUpdate = LightningDevKit.Bindings.ScoreUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreUpdate : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) - public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) - public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getInflightHtlcMsat() -> Swift.UInt64 - public func setInflightHtlcMsat(val: Swift.UInt64) - public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) - public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Input = LightningDevKit.Bindings.Input -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut - public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias TxOut = LightningDevKit.Bindings.TxOut -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) - public func getScriptPubkey() -> [Swift.UInt8] - public func getValue() -> Swift.UInt64 + open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) + open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func probeSuccessful(path: LightningDevKit.Bindings.Path) @objc deinit } } -public typealias KeysManager = LightningDevKit.Bindings.KeysManager +public typealias WalletSource = LightningDevKit.Bindings.WalletSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) - public func getNodeSecretKey() -> [Swift.UInt8] - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public func isOwned() -> Swift.Bool + public init() + open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + open func getChangeScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias BigSize = LightningDevKit.Bindings.BigSize +public typealias Offer = LightningDevKit.Bindings.Offer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool + public func isExpired() -> Swift.Bool + public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool + public func expectsQuantity() -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - @objc deinit - } -} -public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannel? - @objc deinit - } -} -public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PrivateRoute? - @objc deinit - } -} -public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? - @objc deinit - } -} -public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? - @objc deinit - } -} -public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim +public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError extension LightningDevKit.Bindings { - public enum HTLCClaim { - case OfferedTimeout - case OfferedPreimage - case AcceptedTimeout - case AcceptedPreimage - case Revocation - public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public enum Bolt12SemanticError { + case AlreadyExpired + case UnsupportedChain + case UnexpectedChain + case MissingAmount + case InvalidAmount + case InsufficientAmount + case UnexpectedAmount + case UnsupportedCurrency + case UnknownRequiredFeatures + case UnexpectedFeatures + case MissingDescription + case MissingSigningPubkey + case InvalidSigningPubkey + case UnexpectedSigningPubkey + case MissingQuantity + case InvalidQuantity + case UnexpectedQuantity + case InvalidMetadata + case UnexpectedMetadata + case MissingPayerMetadata + case MissingPayerId + case MissingPaths + case InvalidPayInfo + case MissingCreationTime + case MissingPaymentHash + case MissingSignature + public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Score = LightningDevKit.Bindings.Score +public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 - open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) - open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func probeSuccessful(path: LightningDevKit.Bindings.Path) - open func write() -> [Swift.UInt8] + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getPerCommitmentNumber() -> Swift.UInt64 + public func setPerCommitmentNumber(val: Swift.UInt64) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment + public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) + public func getPreimage() -> [Swift.UInt8]? + public func setPreimage(val: [Swift.UInt8]?) + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public func outpoint() -> LightningDevKit.Bindings.OutPoint + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func txOutput() -> LightningDevKit.Bindings.TxOut + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Fallback = LightningDevKit.Bindings.Fallback +public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum FallbackType { - case SegWitProgram - case PubKeyHash - case ScriptHash - public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public enum Bech32ErrorType { + case MissingSeparator + case InvalidChecksum + case InvalidLength + case InvalidChar + case InvalidData + case InvalidPadding + case MixedCase + public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType - public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool - public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? - public func getValueAsPubKeyHash() -> [Swift.UInt8]? - public func getValueAsScriptHash() -> [Swift.UInt8]? + public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType + public func getValueAsInvalidChar() -> Swift.UInt32? + public func getValueAsInvalidData() -> Swift.UInt8? @objc deinit - @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getVersion() -> Swift.UInt8 - public func getProgram() -> [Swift.UInt8] - @objc deinit - } } } -public typealias Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ +public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? - public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? + public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getHolderSelectedContestDelay() -> Swift.UInt16 + public func setHolderSelectedContestDelay(val: Swift.UInt16) + public func getIsOutboundFromHolder() -> Swift.Bool + public func setIsOutboundFromHolder(val: Swift.Bool) + public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) + public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool + public func isPopulated() -> Swift.Bool + public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature +public typealias Amount = LightningDevKit.Bindings.Amount extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MultiThreadedScoreLock = LightningDevKit.Bindings.MultiThreadedScoreLock +public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedScoreLock : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAlias? @objc deinit } } -public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +public typealias Sleeper = LightningDevKit.Bindings.Sleeper extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public init(futures: [LightningDevKit.Bindings.Future]) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } @@ -1416,1046 +1917,1181 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool - public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func intoInner() -> LightningDevKit.Bindings.RouteHint - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias GossipSync = LightningDevKit.Bindings.GossipSync -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum GossipSyncType { - case P2P - case Rapid - case None - public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType - public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func none() -> LightningDevKit.Bindings.GossipSync - public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? - public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? - @objc deinit - } -} -public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeSignature() -> [Swift.UInt8] - public func setNodeSignature(val: [Swift.UInt8]) - public func getBitcoinSignature() -> [Swift.UInt8] - public func setBitcoinSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError -extension LightningDevKit.Bindings { - public enum UtxoLookupError { - case UnknownChain - case UnknownTx - public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Refund? - @objc deinit - } -} -public typealias Network = LightningDevKit.Bindings.Network +public typealias SocketAddressParseError = LightningDevKit.Bindings.SocketAddressParseError extension LightningDevKit.Bindings { - public enum Network { - case Bitcoin - case Testnet - case Regtest - case Signet - public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public enum SocketAddressParseError { + case SocketAddrParse + case InvalidInput + case InvalidPort + case InvalidOnionV3 + public static func == (a: LightningDevKit.Bindings.SocketAddressParseError, b: LightningDevKit.Bindings.SocketAddressParseError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Ping = LightningDevKit.Bindings.Ping +public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPonglen() -> Swift.UInt16 - public func setPonglen(val: Swift.UInt16) - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getLatestUpdateId() -> Swift.UInt64 + public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) + public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] + public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) + public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] + public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func initialCounterpartyCommitmentTx() -> LightningDevKit.Bindings.CommitmentTransaction? + public func counterpartyCommitmentTxsFromUpdate(update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> [LightningDevKit.Bindings.CommitmentTransaction] + public func signToLocalJusticeTx(justiceTx: [Swift.UInt8], inputIdx: Swift.UInt, value: Swift.UInt64, commitmentNumber: Swift.UInt64) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func getCounterpartyNodeId() -> [Swift.UInt8]? + public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] + public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func getSpendableOutputs(tx: [Swift.UInt8], confirmationHeight: Swift.UInt32) -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentIdPaymentErrorZ = LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentIdPaymentErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ +public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelDetails? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias Result_PayeePubKeyErrorZ = LightningDevKit.Bindings.Result_PayeePubKeyErrorZ +public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PayeePubKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? @objc deinit } } -public typealias Route = LightningDevKit.Bindings.Route +public typealias Payee = LightningDevKit.Bindings.Payee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaths() -> [LightningDevKit.Bindings.Path] - public func setPaths(val: [LightningDevKit.Bindings.Path]) - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters? - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public init(pathsArg: [LightningDevKit.Bindings.Path], paymentParamsArg: LightningDevKit.Bindings.PaymentParameters) + public enum PayeeType { + case Blinded + case Clear + public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType + public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee + public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool - public func getTotalFees() -> Swift.UInt64 - public func getTotalAmount() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool + public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? + public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? @objc deinit + @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] + public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] + public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func getFinalCltvExpiryDelta() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ +public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Ping? @objc deinit } } -public typealias Future = LightningDevKit.Bindings.Future +public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters +public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBasePenaltyMsat() -> Swift.UInt64 - public func setBasePenaltyMsat(val: Swift.UInt64) - public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getAntiProbingPenaltyMsat() -> Swift.UInt64 - public func setAntiProbingPenaltyMsat(val: Swift.UInt64) - public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 - public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters - public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) - public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) - public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) - public func clearManualPenalties() + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public func commitmentNumber() -> Swift.UInt64 + public func toBroadcasterValueSat() -> Swift.UInt64 + public func toCountersignatoryValueSat() -> Swift.UInt64 + public func feeratePerKw() -> Swift.UInt32 + public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction + public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ +public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) + public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 + public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ +public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? + public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func intoInner() -> [Swift.UInt8] + public func asLegacyPubkey() -> [Swift.UInt8]? + public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Level = LightningDevKit.Bindings.Level -extension LightningDevKit.Bindings { - public enum Level { - case Gossip - case Trace - case Debug - case Info - case Warn - case Error - public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } +@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { + public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + @objc deinit + open var hashValue: Swift.Int { + get } } -public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? - @objc deinit +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { + public func activate() -> Self + public func activateOnce() -> Self + @objc deinit +} +@_hasMissingDesignatedInitializers public class Bindings { + public enum PrintSeverity : Swift.UInt { + case DEBUG + case WARNING + case ERROR + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } } + public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) + public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) + public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer + public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper + public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String + public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func ldkGetCompiledVersion() -> Swift.String + public class func ldkCBindingsGetCompiledVersion() -> Swift.String + public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool + public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] + public class func readChannelMonitors(kvStore: LightningDevKit.Bindings.KVStore, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures + public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func parseOnionAddress(host: Swift.String, port: Swift.UInt16) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] + public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] + public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCounterpartyPaymentScript(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, paymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] + public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] + public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 + public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.ScoreLookUp, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func createOnionMessage(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func preflightProbeInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func preflightProbeZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsat: Swift.UInt64, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") + public class func readThirtyTwoBytesChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func readThirtyTwoBytesChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + @objc deinit } -public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func metadata() -> [Swift.UInt8] - public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64? - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func quantity() -> Swift.UInt64? - public func payerId() -> [Swift.UInt8] - public func payerNote() -> LightningDevKit.Bindings.PrintableString? - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } +@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { + public init() + public func getPointer() -> Swift.UnsafeMutableRawPointer + @objc deinit } -public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ +public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InitFeatures? + public func getValue() -> LightningDevKit.Bindings.Pong? @objc deinit } } -public typealias Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ +public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], Swift.UInt)? - @objc deinit - } -} -public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func broadcastTransactions(txs: [[Swift.UInt8]]) - @objc deinit - } -} -public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getHolderSelectedContestDelay() -> Swift.UInt16 - public func setHolderSelectedContestDelay(val: Swift.UInt16) - public func getIsOutboundFromHolder() -> Swift.Bool - public func setIsOutboundFromHolder(val: Swift.Bool) - public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? - public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) - public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? - public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool - public func isPopulated() -> Swift.Bool - public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.Description? @objc deinit } } -public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler +public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? - open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func processingQueueHigh() -> Swift.Bool - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? @objc deinit } } -public typealias Router = LightningDevKit.Bindings.Router +public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? @objc deinit } } -public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK +public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getPerCommitmentSecret() -> [Swift.UInt8]? - public func setPerCommitmentSecret(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getFailureCode() -> Swift.UInt16 + public func setFailureCode(val: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ +public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? @objc deinit } } -public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? - public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) - public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? - public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) - public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? - public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) - public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? - public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) - public func getChainMonitor() -> LightningDevKit.Bindings.Watch? - public func setChainMonitor(val: LightningDevKit.Bindings.Watch) - public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? - public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) - public func getRouter() -> LightningDevKit.Bindings.Router? - public func setRouter(val: LightningDevKit.Bindings.Router) - public func getLogger() -> LightningDevKit.Bindings.Logger? - public func setLogger(val: LightningDevKit.Bindings.Logger) - public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig - public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit } } -public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures +public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public init() + open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage @objc deinit } } -public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty +public typealias Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func setNodeId(val: [Swift.UInt8]) - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getUnspendablePunishmentReserve() -> Swift.UInt64 - public func setUnspendablePunishmentReserve(val: Swift.UInt64) - public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? - public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) - public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? - public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? - public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) - public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? @objc deinit } } -public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + public func getValue() -> LightningDevKit.Bindings.UntrustedString? @objc deinit } } -public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +public typealias Level = LightningDevKit.Bindings.Level extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InMemorySigner? - @objc deinit + public enum Level { + case Gossip + case Trace + case Debug + case Info + case Warn + case Error + public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ +public typealias Result_PaymentConstraintsDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentConstraintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentConstraints) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? + public func getValue() -> LightningDevKit.Bindings.PaymentConstraints? @objc deinit } } -public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction +public typealias Retry = LightningDevKit.Bindings.Retry extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] - public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public enum RetryType { + case Attempts + case Timeout + public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType + public class func initWithAttempts(a: Swift.UInt32) -> LightningDevKit.Bindings.Retry + public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry + public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool + public func hash() -> Swift.UInt64 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public func getValueAsAttempts() -> Swift.UInt32? + public func getValueAsTimeout() -> Swift.UInt64? @objc deinit } } -public typealias PrintableString = LightningDevKit.Bindings.PrintableString +public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? @objc deinit } } -public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(lockableScore: LightningDevKit.Bindings.LockableScore) - open func write() -> [Swift.UInt8] - public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getSelectedContestDelay() -> Swift.UInt16 + public func setSelectedContestDelay(val: Swift.UInt16) + public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NetAddressDecodeErrorZ = LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ +public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetAddress) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetAddress? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture +public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeFeatures? @objc deinit } } -public typealias Persister = LightningDevKit.Bindings.Persister +public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneErrorZ + public enum Bolt11ParseErrorType { + case Bech32Error + case ParseAmountError + case MalformedSignature + case BadPrefix + case UnknownCurrency + case UnknownSiPrefix + case MalformedHRP + case TooShortDataPart + case UnexpectedEndOfTaggedFields + case DescriptionDecodeError + case PaddingError + case IntegerOverflowError + case InvalidSegWitProgramLength + case InvalidPubKeyHashLength + case InvalidScriptHashLength + case InvalidRecoveryId + case InvalidSliceLength + case Skip + public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType + public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError + public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? + public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsInvalidSliceLength() -> Swift.String? @objc deinit } } -public typealias Filter = LightningDevKit.Bindings.Filter +public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) - open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? @objc deinit } } -public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart +public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp - public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) - public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func asLockableScore() -> LightningDevKit.Bindings.LockableScore + public func write() -> [Swift.UInt8] + public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore + public init(score: LightningDevKit.Bindings.Score) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Listen = LightningDevKit.Bindings.Listen +public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) - open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(scriptArg: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ +public typealias Result_ThirtyTwoBytesRetryableSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady +public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public func getShortChannelIdAlias() -> Swift.UInt64? - public func setShortChannelIdAlias(val: Swift.UInt64?) - public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getNetworks() -> [[Swift.UInt8]]? + public func setNetworks(val: [[Swift.UInt8]]?) + public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.SocketAddress? + public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.SocketAddress?) + public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.SocketAddress?) + public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError -extension LightningDevKit.Bindings { - public enum Bolt11SemanticError { - case NoPaymentHash - case MultiplePaymentHashes - case NoDescription - case MultipleDescriptions - case NoPaymentSecret - case MultiplePaymentSecrets - case InvalidFeatures - case InvalidRecoveryId - case InvalidSignature - case ImpreciseAmount - public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteParameters? + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getInflightHtlcMsat() -> Swift.UInt64 + public func setInflightHtlcMsat(val: Swift.UInt64) + public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity + public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) + public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ +public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> Swift.Bool? + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? + open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func processingQueueHigh() -> Swift.Bool + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ +public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? + public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? @objc deinit } } -public typealias Logger = LightningDevKit.Bindings.Logger +public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func log(record: LightningDevKit.Bindings.Record) + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannel? @objc deinit } } -public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +public typealias Event = LightningDevKit.Bindings.Event extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OffersMessageType { - case InvoiceRequest - case Invoice - case InvoiceError - public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public enum EventType { + case FundingGenerationReady + case PaymentClaimable + case PaymentClaimed + case PaymentSent + case PaymentFailed + case PaymentPathSuccessful + case PaymentPathFailed + case ProbeSuccessful + case ProbeFailed + case PendingHTLCsForwardable + case HTLCIntercepted + case SpendableOutputs + case PaymentForwarded + case ChannelPending + case ChannelReady + case ChannelClosed + case DiscardFunding + case OpenChannelRequest + case HTLCHandlingFailed + case BumpTransaction + public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType - public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage - public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool - public func tlvType() -> Swift.UInt64 + public func getValueType() -> LightningDevKit.Bindings.Event.EventType + public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8]?, viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, htlcs: [LightningDevKit.Bindings.ClaimedHTLC], senderIntendedTotalMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor], channelId: [Swift.UInt8]?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8]?, nextChannelId: [Swift.UInt8]?, feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8]?, counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event + public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason, counterpartyNodeId: [Swift.UInt8], channelCapacitySats: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event + public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event + public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? - public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? - public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? + public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? + public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? + public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? + public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? + public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? + public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? + public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? + public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? + public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? + public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? + public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? + public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? + public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? + public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? + public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? + public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? + public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? + public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? + public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? @objc deinit - } -} -public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentPurposeType { - case InvoicePayment - case SpontaneousPayment - public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelValueSatoshis() -> Swift.UInt64 + public func getOutputScript() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields + public func getAmountMsat() -> Swift.UInt64 + public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getViaChannelId() -> [Swift.UInt8]? + public func getViaUserChannelId() -> [Swift.UInt8]? + public func getClaimDeadline() -> Swift.UInt32? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getAmountMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getHtlcs() -> [LightningDevKit.Bindings.ClaimedHTLC] + public func getSenderIntendedTotalMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentPreimage() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getFeePaidMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentFailedPermanently() -> Swift.Bool + public func getFailure() -> LightningDevKit.Bindings.PathFailure + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTimeForwardable() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getInterceptId() -> [Swift.UInt8] + public func getRequestedNextHopScid() -> Swift.UInt64 + public func getPaymentHash() -> [Swift.UInt8] + public func getInboundAmountMsat() -> Swift.UInt64 + public func getExpectedOutboundAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getChannelId() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8]? + public func getNextChannelId() -> [Swift.UInt8]? + public func getFeeEarnedMsat() -> Swift.UInt64? + public func getClaimFromOnchainTx() -> Swift.Bool + public func getOutboundAmountForwardedMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getFormerTemporaryChannelId() -> [Swift.UInt8]? + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.ClosureReason + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelCapacitySats() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getTransaction() -> [Swift.UInt8] + @objc deinit } - public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType - public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? - public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? - @objc deinit - @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentPreimage() -> [Swift.UInt8]? - public func getPaymentSecret() -> [Swift.UInt8] + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingSatoshis() -> Swift.UInt64 + public func getPushMsat() -> Swift.UInt64 + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8] + public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination @objc deinit } } } -public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ +public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? + public func getValue() -> LightningDevKit.Bindings.InitFeatures? @objc deinit } } -public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync +public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func isInitialSyncComplete() -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit + public enum Option_NoneZ { + case Some + case None + public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ +public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFee? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getPerCommitmentSecret() -> [Swift.UInt8]? + public func setPerCommitmentSecret(val: [Swift.UInt8]) + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SendError = LightningDevKit.Bindings.SendError +public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SendErrorType { - case Secp256k1 - case TooBigPacket - case TooFewBlindedHops - case InvalidFirstHop - case InvalidMessage - case BufferFull - case GetNodeIdFailed - case BlindedPathAdvanceFailed - public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType - public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError - public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError - public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError - public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError - public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError - public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError - public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool - public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getNodeId() -> LightningDevKit.Bindings.NodeId + public func setNodeId(val: LightningDevKit.Bindings.NodeId) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAddresses() -> [LightningDevKit.Bindings.SocketAddress] + public func setAddresses(val: [LightningDevKit.Bindings.SocketAddress]) + public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentHashRetryableSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ +public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) - public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 - public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SignOrCreationError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +public typealias LockableScore = LightningDevKit.Bindings.LockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public init() + open func readLock() -> LightningDevKit.Bindings.ScoreLookUp + open func writeLock() -> LightningDevKit.Bindings.ScoreUpdate @objc deinit } } -public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage +public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UnsignedGossipMessageType { - case ChannelAnnouncement - case ChannelUpdate - case NodeAnnouncement - public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType - public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getNodeOne() -> LightningDevKit.Bindings.NodeId + public func setNodeOne(val: LightningDevKit.Bindings.NodeId) + public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getNodeTwo() -> LightningDevKit.Bindings.NodeId + public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) + public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getCapacitySats() -> Swift.UInt64? + public func setCapacitySats(val: Swift.UInt64?) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool + public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? public func write() -> [Swift.UInt8] - public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? - public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? - public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Destination = LightningDevKit.Bindings.Destination +public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DestinationType { - case Node - case BlindedPath - public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType - public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination - public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination - public func getValueAsNode() -> [Swift.UInt8]? - public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? + public init() + open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + @objc deinit + } +} +public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ +public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? @objc deinit } } -public typealias Result_SharedSecretNoneZ = LightningDevKit.Bindings.Result_SharedSecretNoneZ +public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SharedSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SharedSecretNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } @@ -2472,576 +3108,592 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination +public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum HTLCDestinationType { - case NextHopChannel - case UnknownNextHop - case InvalidForward - case FailedPayment - public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + @objc deinit + } +} +public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ClosureReasonType { + case CounterpartyForceClosed + case HolderForceClosed + case CooperativeClosure + case CommitmentTxConfirmed + case FundingTimedOut + case ProcessingError + case DisconnectedPeer + case OutdatedChannelManager + case CounterpartyCoopClosedUnfundedChannel + case FundingBatchClosure + public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType - public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType + public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason + public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason + public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason + public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason + public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingBatchClosure() -> LightningDevKit.Bindings.ClosureReason + public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? - public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? - public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? - public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? + public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? @objc deinit - @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 + public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString @objc deinit } - @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String @objc deinit } } } -public typealias EventHandler = LightningDevKit.Bindings.EventHandler -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func handleEvent(event: LightningDevKit.Bindings.Event) - @objc deinit - } -} -public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func builtTransaction() -> [Swift.UInt8] - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ +public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.GraphSyncError? - public func getValue() -> Swift.UInt32? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAckRbf? @objc deinit } } -public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ +public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? - @objc deinit - } -} -public typealias EntropySource = LightningDevKit.Bindings.EntropySource -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func getSecureRandomBytes() -> [Swift.UInt8] - @objc deinit - } -} -public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum MaxDustHTLCExposureType { - case FixedLimitMsat - case FeeRateMultiplier - public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType - public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public func getValueAsFixedLimitMsat() -> Swift.UInt64? - public func getValueAsFeeRateMultiplier() -> Swift.UInt64? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? @objc deinit } } -public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError +public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bolt11ParseErrorType { - case Bech32Error - case ParseAmountError - case MalformedSignature - case BadPrefix - case UnknownCurrency - case UnknownSiPrefix - case MalformedHRP - case TooShortDataPart - case UnexpectedEndOfTaggedFields - case DescriptionDecodeError - case PaddingError - case IntegerOverflowError - case InvalidSegWitProgramLength - case InvalidPubKeyHashLength - case InvalidScriptHashLength - case InvalidRecoveryId - case InvalidSliceLength - case Skip - public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType - public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError - public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? - public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsInvalidSliceLength() -> Swift.String? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ +public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? + public func getValue() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Amount = LightningDevKit.Bindings.Amount +public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited + public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) + public func getPrevtxOut() -> Swift.UInt32 + public func setPrevtxOut(val: Swift.UInt32) + public func getSequence() -> Swift.UInt32 + public func setSequence(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.UtxoLookupError? - public func getValue() -> LightningDevKit.Bindings.TxOut? + public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 + public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) + public func getLiquidityOffsetHalfLife() -> Swift.UInt64 + public func setLiquidityOffsetHalfLife(val: Swift.UInt64) + public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath +public typealias BestBlock = LightningDevKit.Bindings.BestBlock extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool - public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool + public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock + public init(blockHash: [Swift.UInt8], height: Swift.UInt32) + public func blockHash() -> [Swift.UInt8] + public func height() -> Swift.UInt32 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator +public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - public class func getLDKSwiftBindingsSerializationHash() -> Swift.String - public class func getLDKSwiftBindingsVersion() -> Swift.String - public class func getLDKSwiftBindingsCommitHash() -> Swift.String -} -public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? @objc deinit } } -public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ +public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MonitorEvent? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? @objc deinit } } -public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func tlvType() -> Swift.UInt64 - open func write() -> [Swift.UInt8] + open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) @objc deinit } } -public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC +public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) + open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner @objc deinit } } -public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +public typealias Balance = LightningDevKit.Bindings.Balance extension LightningDevKit.Bindings { - public enum SiPrefix { - case Milli - case Micro - case Nano - case Pico - public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum BalanceType { + case ClaimableOnChannelClose + case ClaimableAwaitingConfirmations + case ContentiousClaimable + case MaybeTimeoutClaimableHTLC + case MaybePreimageClaimableHTLC + case CounterpartyRevokedOutputClaimable + public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType + public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance + public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool + public func claimableAmountSatoshis() -> Swift.UInt64 + public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? + public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? + public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? + public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? + public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? + public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? + @objc deinit + @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getConfirmationHeight() -> Swift.UInt32 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getTimeoutHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentPreimage() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getClaimableHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getExpiryHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit } } } -public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - @objc deinit - } -} -public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? - public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) - public func getMessage() -> LightningDevKit.Bindings.UntrustedString - public func setMessage(val: LightningDevKit.Bindings.UntrustedString) - public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) + public func getGenesisHash() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) + public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph + public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? + public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) + public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func channelFailedPermanent(shortChannelId: Swift.UInt64) + public func nodeFailedPermanent(nodeId: [Swift.UInt8]) + public func removeStaleChannelsAndTracking() + public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) + public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader +public typealias Confirm = LightningDevKit.Bindings.Confirm extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - @objc deinit - } -} -public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.APIError? + open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func transactionUnconfirmed(txid: [Swift.UInt8]?) + open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) + open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] @objc deinit } } -public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error +public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason extension LightningDevKit.Bindings { - public enum Secp256k1Error { - case IncorrectSignature - case InvalidMessage - case InvalidPublicKey - case InvalidSignature - case InvalidSecretKey - case InvalidSharedSecret - case InvalidRecoveryId - case InvalidTweak - case NotEnoughMemory - case InvalidPublicKeySum - case InvalidParityValue - public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public enum PaymentFailureReason { + case RecipientRejected + case UserAbandoned + case RetriesExhausted + case PaymentExpired + case RouteNotFound + case UnexpectedError + public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput +public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? + public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) + public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? + public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) + public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? + public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) + public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? + public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) + public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentParameters? - @objc deinit - } -} -public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ +public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddOutput? + public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) + public func getPhantomScid() -> Swift.UInt64 + public func setPhantomScid(val: Swift.UInt64) + public func getRealNodePubkey() -> [Swift.UInt8] + public func setRealNodePubkey(val: [Swift.UInt8]) + public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ +public typealias Pong = LightningDevKit.Bindings.Pong extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ScriptNoneZ = LightningDevKit.Bindings.Result_ScriptNoneZ +public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ScriptNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) + public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ +public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAbort? + public func getValue() -> LightningDevKit.Bindings.InvoiceError? @objc deinit } } -public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ +public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelConfig? + public func getValue() -> LightningDevKit.Bindings.ChannelReady? @objc deinit } } -public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction +public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func txid() -> [Swift.UInt8] - public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction - public func keys() -> LightningDevKit.Bindings.TxCreationKeys - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOwned() -> Swift.Bool + public enum UnsignedGossipMessageType { + case ChannelAnnouncement + case ChannelUpdate + case NodeAnnouncement + public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType + public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func write() -> [Swift.UInt8] + public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? @objc deinit } } -public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [LightningDevKit.Bindings.Utxo]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAddOutput? @objc deinit } } -public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ +public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeId? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction +public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public func commitmentNumber() -> Swift.UInt64 - public func toBroadcasterValueSat() -> Swift.UInt64 - public func toCountersignatoryValueSat() -> Swift.UInt64 - public func feeratePerKw() -> Swift.UInt32 - public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction - public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } @@ -3064,598 +3716,781 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ +public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? - @objc deinit - } -} -public typealias PeerManager = LightningDevKit.Bindings.PeerManager -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") - public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) - public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.NetAddress?)] - public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func processEvents() - public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) - public func disconnectByNodeId(nodeId: [Swift.UInt8]) - public func disconnectAllPeers() - public func timerTickOccurred() - public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.NetAddress]) - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxComplete? @objc deinit } } -public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ +public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError +public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum GraphSyncErrorType { - case DecodeError - case LightningError - public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType - public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError - public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError - public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? - public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getNextLocalCommitmentNumber() -> Swift.UInt64 + public func setNextLocalCommitmentNumber(val: Swift.UInt64) + public func getNextRemoteCommitmentNumber() -> Swift.UInt64 + public func setNextRemoteCommitmentNumber(val: Swift.UInt64) + public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? + public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) + public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] + public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) + public func getNextFundingTxid() -> [Swift.UInt8]? + public func setNextFundingTxid(val: [Swift.UInt8]?) + public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo +public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? @objc deinit } } -public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +public typealias Result_CVec_u8ZNoneZ = LightningDevKit.Bindings.Result_CVec_u8ZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd +public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFullInformation() -> Swift.Bool - public func setFullInformation(val: Swift.Bool) - public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func getNetwork() -> LightningDevKit.Bindings.Network + public func setNetwork(val: LightningDevKit.Bindings.Network) + public func getBestBlock() -> LightningDevKit.Bindings.BestBlock + public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) + public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ +public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? + public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? @objc deinit } } -public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ +public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Shutdown? + public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool + public func endBlocknum() -> Swift.UInt32 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage +public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func getPayee() -> LightningDevKit.Bindings.Payee + public func setPayee(val: LightningDevKit.Bindings.Payee) + public func getExpiryTime() -> Swift.UInt64? + public func setExpiryTime(val: Swift.UInt64?) + public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 + public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) + public func getMaxPathCount() -> Swift.UInt8 + public func setMaxPathCount(val: Swift.UInt8) + public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 + public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) + public func getPreviouslyFailedChannels() -> [Swift.UInt64] + public func setPreviouslyFailedChannels(val: [Swift.UInt64]) + public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters + public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBlinded(blindedRouteHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)]) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript +public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(scriptArg: [Swift.UInt8]) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) + public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler + public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync +public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) - public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) - public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + @objc deinit + } +} +public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement +public typealias Recipient = LightningDevKit.Bindings.Recipient extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public enum Recipient { + case Node + case PhantomNode + public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Hostname = LightningDevKit.Bindings.Hostname +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getNodeId() -> LightningDevKit.Bindings.NodeId - public func setNodeId(val: LightningDevKit.Bindings.NodeId) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAddresses() -> [LightningDevKit.Bindings.NetAddress] - public func setAddresses(val: [LightningDevKit.Bindings.NetAddress]) - public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool + public func len() -> Swift.UInt8 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString +public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) + open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) + open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) + open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) + open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) + open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) + open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) + open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) + open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) + open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) + open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) + open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) + open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) + open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) + open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) + open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) + open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) + open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) + open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) + open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) + open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) + open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) + open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) + open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) + open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) + open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) + open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) + open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + open func getGenesisHashes() -> [[Swift.UInt8]]? + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Sleeper = LightningDevKit.Bindings.Sleeper +public typealias ClaimedHTLC = LightningDevKit.Bindings.ClaimedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClaimedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public init(futures: [LightningDevKit.Bindings.Future]) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getValueMsat() -> Swift.UInt64 + public func setValueMsat(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], userChannelIdArg: [Swift.UInt8], cltvExpiryArg: Swift.UInt32, valueMsatArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClaimedHTLC, b: LightningDevKit.Bindings.ClaimedHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? + public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? @objc deinit } } -public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor +public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeId1() -> LightningDevKit.Bindings.NodeId + public func setNodeId1(val: LightningDevKit.Bindings.NodeId) + public func getNodeId2() -> LightningDevKit.Bindings.NodeId + public func setNodeId2(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(featuresArg: LightningDevKit.Bindings.ChannelFeatures, chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeId1Arg: LightningDevKit.Bindings.NodeId, nodeId2Arg: LightningDevKit.Bindings.NodeId, bitcoinKey1Arg: LightningDevKit.Bindings.NodeId, bitcoinKey2Arg: LightningDevKit.Bindings.NodeId, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup +public typealias UserConfig = LightningDevKit.Bindings.UserConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult + public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) + public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits + public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) + public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig + public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) + public func getAcceptForwardsToPrivChannels() -> Swift.Bool + public func setAcceptForwardsToPrivChannels(val: Swift.Bool) + public func getAcceptInboundChannels() -> Swift.Bool + public func setAcceptInboundChannels(val: Swift.Bool) + public func getManuallyAcceptInboundChannels() -> Swift.Bool + public func setManuallyAcceptInboundChannels(val: Swift.Bool) + public func getAcceptInterceptHtlcs() -> Swift.Bool + public func setAcceptInterceptHtlcs(val: Swift.Bool) + public func getAcceptMppKeysend() -> Swift.Bool + public func setAcceptMppKeysend(val: Swift.Bool) + public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstTimestamp() -> Swift.UInt32 - public func setFirstTimestamp(val: Swift.UInt32) - public func getTimestampRange() -> Swift.UInt32 - public func setTimestampRange(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setPaymentMetadataOptional() + public func setPaymentMetadataRequired() + public func supportsPaymentMetadata() -> Swift.Bool + public func requiresPaymentMetadata() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp +public typealias Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool - public func hash() -> Swift.UInt64 - public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public func asUnixTimestamp() -> Swift.UInt64 - public func asDurationSinceEpoch() -> Swift.UInt64 - public func asTime() -> Swift.UInt64 - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? @objc deinit } } -public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures +public typealias PeerManager = LightningDevKit.Bindings.PeerManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getTxHash() -> [Swift.UInt8]? - public func setTxHash(val: [Swift.UInt8]) - public func getWitnesses() -> [[Swift.UInt8]] - public func setWitnesses(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") + public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) + public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.SocketAddress?)] + public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public func processEvents() + public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) + public func disconnectByNodeId(nodeId: [Swift.UInt8]) + public func disconnectAllPeers() + public func timerTickOccurred() + public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.SocketAddress]) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf +public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned +public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeSatoshis() -> Swift.UInt64 - public func setFeeSatoshis(val: Swift.UInt64) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? - public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) - public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) - public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public enum NetworkUpdateType { + case ChannelUpdateMessage + case ChannelFailure + case NodeFailure + public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType + public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? + public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? + public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getShortChannelId() -> Swift.UInt64 + public func isPermanent() -> Swift.Bool + @objc deinit + } + @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func isPermanent() -> Swift.Bool + @objc deinit + } } } -public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets +public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func getMinSeenSecret() -> Swift.UInt64 - public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func getTlvFieldnum() -> Swift.UInt64 + public func setTlvFieldnum(val: Swift.UInt64) + public func getSuggestedValue() -> [Swift.UInt8]? + public func setSuggestedValue(val: [Swift.UInt8]?) + public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Path = LightningDevKit.Bindings.Path +public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.RouteHop] - public func setHops(val: [LightningDevKit.Bindings.RouteHop]) - public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? - public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) - public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool - public func feeMsat() -> Swift.UInt64 - public func finalValueMsat() -> Swift.UInt64 - public func finalCltvExpiryDelta() -> Swift.UInt32? + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getOurToSelfDelay() -> Swift.UInt16 + public func setOurToSelfDelay(val: Swift.UInt16) + public func getOurHtlcMinimumMsat() -> Swift.UInt64 + public func setOurHtlcMinimumMsat(val: Swift.UInt64) + public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 + public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) + public func getNegotiateScidPrivacy() -> Swift.Bool + public func setNegotiateScidPrivacy(val: Swift.Bool) + public func getAnnouncedChannel() -> Swift.Bool + public func setAnnouncedChannel(val: Swift.Bool) + public func getCommitUpfrontShutdownPubkey() -> Swift.Bool + public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) + public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 + public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) + public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) + public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 + public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) + public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ +public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? + public func getValue() -> LightningDevKit.Bindings.ClosureReason? @objc deinit } } -public typealias Utxo = LightningDevKit.Bindings.Utxo +public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool - public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo - public func isOwned() -> Swift.Bool + public init() + open func broadcastTransactions(txs: [[Swift.UInt8]]) @objc deinit } } -public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason +public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey extension LightningDevKit.Bindings { - public enum PaymentFailureReason { - case RecipientRejected - case UserAbandoned - case RetriesExhausted - case PaymentExpired - case RouteNotFound - case UnexpectedError - public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(keyMaterial: [Swift.UInt8]) + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias PathFailure = LightningDevKit.Bindings.PathFailure +public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PathFailureType { - case InitialSend - case OnPath - public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType - public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure - public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure - public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFullInformation() -> Swift.Bool + public func setFullInformation(val: Swift.Bool) + public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? - public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> LightningDevKit.Bindings.APIError - @objc deinit - } - @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? - @objc deinit - } } } -@_hasMissingDesignatedInitializers public class LDKExampleClass { - public class func printSomething() - public func printInstance() - @objc deinit -} -public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction +public typealias Result_ReceiveTlvsDecodeErrorZ = LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReceiveTlvsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool - public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) - public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction - public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public func toHolderValueSat() -> Swift.UInt64 - public func toCounterpartyValueSat() -> Swift.UInt64 - public func toHolderScript() -> [Swift.UInt8] - public func toCounterpartyScript() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReceiveTlvs) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReceiveTlvs? @objc deinit } } -public typealias Recipient = LightningDevKit.Bindings.Recipient +public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures extension LightningDevKit.Bindings { - public enum Recipient { - case Node - case PhantomNode - public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setInitialRoutingSyncOptional() + public func setInitialRoutingSyncRequired() + public func initialRoutingSync() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner +public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) - open func write() -> [Swift.UInt8] - public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt - open func disconnectSocket() - open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool - open func hash() -> Swift.UInt64 + public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? @objc deinit } } -public typealias RouteHop = LightningDevKit.Bindings.RouteHop +public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkey() -> [Swift.UInt8] - public func setPubkey(val: [Swift.UInt8]) - public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getFeeMsat() -> Swift.UInt64 - public func setFeeMsat(val: Swift.UInt64) - public func getCltvExpiryDelta() -> Swift.UInt32 - public func setCltvExpiryDelta(val: Swift.UInt32) - public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) + public func getForwardingFeeBaseMsat() -> Swift.UInt32 + public func setForwardingFeeBaseMsat(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure + public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) + public func getAcceptUnderpayingHtlcs() -> Swift.Bool + public func setAcceptUnderpayingHtlcs(val: Swift.Bool) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool + public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_CVec_ECDSASignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_ECDSASignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? + @objc deinit + } +} public typealias BackgroundProcessor = LightningDevKit.Bindings.BackgroundProcessor extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class BackgroundProcessor : LightningDevKit.NativeTypeWrapper { @@ -3664,573 +4499,654 @@ extension LightningDevKit.Bindings { @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `gossipSync`.") public class func start(persister: LightningDevKit.Bindings.Persister, eventHandler: LightningDevKit.Bindings.EventHandler, chainMonitor: LightningDevKit.Bindings.ChainMonitor, channelManager: LightningDevKit.Bindings.ChannelManager, gossipSync: LightningDevKit.Bindings.GossipSync, peerManager: LightningDevKit.Bindings.PeerManager, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.WriteableScore?) -> LightningDevKit.Bindings.BackgroundProcessor @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func join() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func join() -> LightningDevKit.Bindings.Result_NoneIOErrorZ @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func stop() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func stop() -> LightningDevKit.Bindings.Result_NoneIOErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned +public typealias PrintableString = LightningDevKit.Bindings.PrintableString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getSkimmedFeeMsat() -> Swift.UInt64? + public func setSkimmedFeeMsat(val: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey +public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public enum Secp256k1Error { + case IncorrectSignature + case InvalidMessage + case InvalidPublicKey + case InvalidSignature + case InvalidSecretKey + case InvalidSharedSecret + case InvalidRecoveryId + case InvalidTweak + case NotEnoughMemory + case InvalidPublicKeySum + case InvalidParityValue + public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget +extension LightningDevKit.Bindings { + public enum ConfirmationTarget { + case MempoolMinimum + case Background + case Normal + case HighPriority + public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(keyMaterial: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias Offer = LightningDevKit.Bindings.Offer +public typealias Refund = LightningDevKit.Bindings.Refund extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func chains() -> [[Swift.UInt8]] - public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool - public func metadata() -> [Swift.UInt8]? - public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString - public func features() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func supportedQuantity() -> LightningDevKit.Bindings.Quantity - public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool - public func expectsQuantity() -> Swift.Bool - public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +public typealias CreationError = LightningDevKit.Bindings.CreationError +extension LightningDevKit.Bindings { + public enum CreationError { + case DescriptionTooLong + case RouteTooLong + case TimestampOutOfBounds + case InvalidAmount + case MissingRouteHints + case MinFinalCltvExpiryDeltaTooShort + public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum RecentPaymentDetailsType { + case AwaitingInvoice + case Pending + case Fulfilled + case Abandoned + public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType + public class func initWithAwaitingInvoice(paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithPending(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithFulfilled(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithAbandoned(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public func getValueAsAwaitingInvoice() -> LightningDevKit.Bindings.RecentPaymentDetails.AwaitingInvoice? + public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? + public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? + public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + @objc deinit + @_hasMissingDesignatedInitializers public class AwaitingInvoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getTotalMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_PayeePubKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PayeePubKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + @objc deinit + } +} +public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentParameters? + @objc deinit + } +} +public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHop? + public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func contestDelay() -> Swift.UInt16 + public func isOutbound() -> Swift.Bool + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ +public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? + public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp + public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) + public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Payee = LightningDevKit.Bindings.Payee +public typealias Destination = LightningDevKit.Bindings.Destination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PayeeType { - case Blinded - case Clear - public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public enum DestinationType { + case Node + case BlindedPath + public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType - public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee - public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool - public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? - public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? + public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType + public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination + public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination + public func getValueAsNode() -> [Swift.UInt8]? + public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? @objc deinit - @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] - public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] - public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures - public func getFinalCltvExpiryDelta() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish +public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextLocalCommitmentNumber() -> Swift.UInt64 - public func setNextLocalCommitmentNumber(val: Swift.UInt64) - public func getNextRemoteCommitmentNumber() -> Swift.UInt64 - public func setNextRemoteCommitmentNumber(val: Swift.UInt64) - public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? - public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) - public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] - public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) - public func getNextFundingTxid() -> [Swift.UInt8]? - public func setNextFundingTxid(val: [Swift.UInt8]?) - public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? @objc deinit } } -public typealias Sha256 = LightningDevKit.Bindings.Sha256 +public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 + public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool - public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 + public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler +public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) - open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) - open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) - open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) - open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) - open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) - open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) - open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) - open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) - open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) - open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) - open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) - open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) - open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) - open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) - open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) - open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) - open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) - open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) - open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) - open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) - open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) - open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) - open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) - open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) - open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) - open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) - open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - open func getGenesisHashes() -> [[Swift.UInt8]]? - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - @objc deinit + public enum ChannelShutdownState { + case NotShuttingDown + case ShutdownInitiated + case ResolvingHTLCs + case NegotiatingClosingFee + case ShutdownComplete + public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent +public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum BumpTransactionEventType { - case ChannelClose - case HTLCResolution - public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public enum UtxoResultType { + case Sync + case Async + public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType - public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool - public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? - public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? + public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType + public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult + public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult + public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? + public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + @objc deinit + } +} +public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + @objc deinit + } +} +public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getCommitmentTx() -> [Swift.UInt8] - public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 - public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor - public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] - public func getTxLockTime() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor +public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getLatestUpdateId() -> Swift.UInt64 - public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) - public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] - public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) - public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] - public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) - public func getCounterpartyNodeId() -> [Swift.UInt8]? - public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] - public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] + public func txid() -> [Swift.UInt8] + public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction + public func keys() -> LightningDevKit.Bindings.TxCreationKeys + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func revokeableOutputIndex() -> Swift.UInt? + public func buildToLocalJusticeTx(feeratePerKw: Swift.UInt64, destinationScript: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo +public typealias Result_ChannelMonitorUpdateStatusNoneZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateStatusNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures - public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus? @objc deinit } } -public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys +public typealias Result_SocketAddressSocketAddressParseErrorZ = LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressSocketAddressParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getRevocationKey() -> [Swift.UInt8] - public func setRevocationKey(val: [Swift.UInt8]) - public func getBroadcasterHtlcKey() -> [Swift.UInt8] - public func setBroadcasterHtlcKey(val: [Swift.UInt8]) - public func getCountersignatoryHtlcKey() -> [Swift.UInt8] - public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) - public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] - public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) - public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SocketAddressParseError) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SocketAddressParseError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias BindingsError = LightningDevKit.Bindings.BindingsError +public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getDummy() -> Swift.UInt8 + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias Pong = LightningDevKit.Bindings.Pong +public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeSignature() -> [Swift.UInt8] + public func setNodeSignature(val: [Swift.UInt8]) + public func getBitcoinSignature() -> [Swift.UInt8] + public func setBitcoinSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Persist = LightningDevKit.Bindings.Persist +public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ @objc deinit } } -public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? @objc deinit } } -public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime +public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool - public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public func asSeconds() -> Swift.UInt64 - public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAbort = LightningDevKit.Bindings.TxAbort +public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> [Swift.UInt8] - public func setData(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ +public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? @objc deinit } } -public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement +public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeId1() -> LightningDevKit.Bindings.NodeId - public func setNodeId1(val: LightningDevKit.Bindings.NodeId) - public func getNodeId2() -> LightningDevKit.Bindings.NodeId - public func setNodeId2(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func getMinFundingSatoshis() -> Swift.UInt64 + public func setMinFundingSatoshis(val: Swift.UInt64) + public func getMaxFundingSatoshis() -> Swift.UInt64 + public func setMaxFundingSatoshis(val: Swift.UInt64) + public func getMaxHtlcMinimumMsat() -> Swift.UInt64 + public func setMaxHtlcMinimumMsat(val: Swift.UInt64) + public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getMaxChannelReserveSatoshis() -> Swift.UInt64 + public func setMaxChannelReserveSatoshis(val: Swift.UInt64) + public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) + public func getMaxMinimumDepth() -> Swift.UInt32 + public func setMaxMinimumDepth(val: Swift.UInt32) + public func getTrustOwnFunding0conf() -> Swift.Bool + public func setTrustOwnFunding0conf(val: Swift.Bool) + public func getForceAnnouncedChannelPreference() -> Swift.Bool + public func setForceAnnouncedChannelPreference(val: Swift.Bool) + public func getTheirToSelfDelay() -> Swift.UInt16 + public func setTheirToSelfDelay(val: Swift.UInt16) + public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +public typealias MonitorUpdatingPersister = LightningDevKit.Bindings.MonitorUpdatingPersister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdatingPersister : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(kvStore: LightningDevKit.Bindings.KVStore, logger: LightningDevKit.Bindings.Logger, maximumPendingUpdates: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) + public func readAllChannelMonitorsWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public func readChannelMonitorWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, monitorKey: Swift.String) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public func cleanupStaleUpdates(lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func asPersist() -> LightningDevKit.Bindings.Persist + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey +public typealias Persist = LightningDevKit.Bindings.Persist extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8] - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init() + open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus @objc deinit } } -public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig +public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) - public func getForwardingFeeBaseMsat() -> Swift.UInt32 - public func setForwardingFeeBaseMsat(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure - public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) - public func getAcceptUnderpayingHtlcs() -> Swift.Bool - public func setAcceptUnderpayingHtlcs(val: Swift.Bool) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool - public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingCreated? @objc deinit } } -public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath +public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getIntermediateNodes() -> [[Swift.UInt8]] - public func setIntermediateNodes(val: [[Swift.UInt8]]) - public func getDestination() -> LightningDevKit.Bindings.Destination - public func setDestination(val: LightningDevKit.Bindings.Destination) - public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTransaction() -> [Swift.UInt8] + public func setTransaction(val: [Swift.UInt8]) + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ +public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedTail? + public func getValue() -> LightningDevKit.Bindings.TxSignatures? @objc deinit } } -public typealias Description = LightningDevKit.Bindings.Description +public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getRevocationPubkey() -> [Swift.UInt8] + public func setRevocationPubkey(val: [Swift.UInt8]) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool - public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public func intoInner() -> Swift.String + public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage +public typealias KVStore = LightningDevKit.Bindings.KVStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class KVStore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + open func write(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, buf: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func remove(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func list(primaryNamespace: Swift.String, secondaryNamespace: Swift.String) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ @objc deinit } } @@ -4246,1979 +5162,1797 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? - @objc deinit - } -} -public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits +public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFundingSatoshis() -> Swift.UInt64 - public func setMinFundingSatoshis(val: Swift.UInt64) - public func getMaxFundingSatoshis() -> Swift.UInt64 - public func setMaxFundingSatoshis(val: Swift.UInt64) - public func getMaxHtlcMinimumMsat() -> Swift.UInt64 - public func setMaxHtlcMinimumMsat(val: Swift.UInt64) - public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getMaxChannelReserveSatoshis() -> Swift.UInt64 - public func setMaxChannelReserveSatoshis(val: Swift.UInt64) - public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) - public func getMaxMinimumDepth() -> Swift.UInt32 - public func setMaxMinimumDepth(val: Swift.UInt32) - public func getTrustOwnFunding0conf() -> Swift.Bool - public func setTrustOwnFunding0conf(val: Swift.Bool) - public func getForceAnnouncedChannelPreference() -> Swift.Bool - public func setForceAnnouncedChannelPreference(val: Swift.Bool) - public func getTheirToSelfDelay() -> Swift.UInt16 - public func setTheirToSelfDelay(val: Swift.UInt16) - public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func isOwned() -> Swift.Bool + public init() + open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] + open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + open func getDestinationScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ @objc deinit } } -public typealias Confirm = LightningDevKit.Bindings.Confirm +public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func transactionUnconfirmed(txid: [Swift.UInt8]?) - open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) - open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public enum BumpTransactionEventType { + case ChannelClose + case HTLCResolution + public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType + public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool + public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? + public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getCommitmentTx() -> [Swift.UInt8] + public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 + public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor + public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] + public func getTxLockTime() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ +public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger +public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) - public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler - public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider - public func isOwned() -> Swift.Bool - @objc deinit + public enum UtxoLookupError { + case UnknownChain + case UnknownTx + public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures +public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setInitialRoutingSyncOptional() - public func setInitialRoutingSyncRequired() - public func initialRoutingSync() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool + public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public func asSeconds() -> Swift.UInt64 + public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) - public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig - public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] - public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] - public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseAllChannelsBroadcastingLatestTxn() - public func forceCloseAllChannelsWithoutBroadcastingTxn() - public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ - public func abandonPayment(paymentId: [Swift.UInt8]) - public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func processPendingHtlcForwards() - public func timerTickOccurred() - public func failHtlcBackwards(paymentHash: [Swift.UInt8]) - public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) - public func claimFunds(paymentPreimage: [Swift.UInt8]) - public func getOurNodeId() -> [Swift.UInt8] - public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func getPhantomScid() -> Swift.UInt64 - public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints - public func getInterceptScid() -> Swift.UInt64 - public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func getPersistableUpdateFuture() -> LightningDevKit.Bindings.Future - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func initFeatures() -> LightningDevKit.Bindings.InitFeatures - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFee? @objc deinit } } -public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters +public typealias MultiThreadedScoreLockWrite = LightningDevKit.Bindings.MultiThreadedScoreLockWrite extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockWrite : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getValueSatoshis() -> Swift.UInt64 - public func setValueSatoshis(val: Swift.UInt64) - public func getKeysId() -> [Swift.UInt8]? - public func setKeysId(val: [Swift.UInt8]) - public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) - public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) - public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Hostname = LightningDevKit.Bindings.Hostname +public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool - public func len() -> Swift.UInt8 + public func getChannels() -> [Swift.UInt64] + public func setChannels(val: [Swift.UInt64]) + public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) + public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) + public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult +public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UtxoResultType { - case Sync - case Async - public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType - public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult - public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult - public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? - public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannel? @objc deinit } } -public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ +public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Hostname? + public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? @objc deinit } } -public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement +public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeSignature1() -> [Swift.UInt8] - public func setNodeSignature1(val: [Swift.UInt8]) - public func getNodeSignature2() -> [Swift.UInt8] - public func setNodeSignature2(val: [Swift.UInt8]) - public func getBitcoinSignature1() -> [Swift.UInt8] - public func setBitcoinSignature1(val: [Swift.UInt8]) - public func getBitcoinSignature2() -> [Swift.UInt8] - public func setBitcoinSignature2(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] + open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + open func signBolt12InvoiceRequest(invoiceRequest: LightningDevKit.Bindings.UnsignedInvoiceRequest) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signBolt12Invoice(invoice: LightningDevKit.Bindings.UnsignedBolt12Invoice) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ @objc deinit } } -public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ +public typealias Fallback = LightningDevKit.Bindings.Fallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public enum FallbackType { + case SegWitProgram + case PubKeyHash + case ScriptHash + public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType + public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool + public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? + public func getValueAsPubKeyHash() -> [Swift.UInt8]? + public func getValueAsScriptHash() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getVersion() -> Swift.UInt8 + public func getProgram() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHop? + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> Swift.Bool? @objc deinit } } -public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter +public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias +public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8]? - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ @objc deinit } } -public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ +public typealias Result_RecipientOnionFieldsNoneZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> Swift.Bool? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool + public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public func intoInner() -> LightningDevKit.Bindings.RouteHint + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error +public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bech32ErrorType { - case MissingSeparator - case InvalidChecksum - case InvalidLength - case InvalidChar - case InvalidData - case InvalidPadding - case MixedCase - public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType - public func getValueAsInvalidChar() -> Swift.UInt32? - public func getValueAsInvalidData() -> Swift.UInt8? + public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.GraphSyncError? + public func getValue() -> Swift.UInt32? @objc deinit } } -public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate +public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) - public func getForwardingFeeBaseMsat() -> Swift.UInt32? - public func setForwardingFeeBaseMsat(val: Swift.UInt32?) - public func getCltvExpiryDelta() -> Swift.UInt16? - public func setCltvExpiryDelta(val: Swift.UInt16?) - public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? - public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func getValueSatoshis() -> Swift.UInt64 + public func setValueSatoshis(val: Swift.UInt64) + public func getKeysId() -> [Swift.UInt8]? + public func setKeysId(val: [Swift.UInt8]) + public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters + public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit +public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getNetworks() -> [[Swift.UInt8]]? - public func setNetworks(val: [[Swift.UInt8]]?) - public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.NetAddress? - public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.NetAddress?) - public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.NetAddress?) - public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) + public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice + public func signableHash() -> [Swift.UInt8]? + public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature + public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func checkSignature() -> Swift.Bool + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func toStr() -> Swift.String public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus +public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ extension LightningDevKit.Bindings { - public enum ChannelMonitorUpdateStatus { - case Completed - case InProgress - case PermanentFailure - public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + @objc deinit } } -public typealias CreationError = LightningDevKit.Bindings.CreationError +public typealias Wallet = LightningDevKit.Bindings.Wallet extension LightningDevKit.Bindings { - public enum CreationError { - case DescriptionTooLong - case RouteTooLong - case TimestampOutOfBounds - case InvalidAmount - case MissingRouteHints - case MinFinalCltvExpiryDeltaTooShort - public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) + public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor +public typealias Router = LightningDevKit.Bindings.Router extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ @objc deinit } } -public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SignOrCreationError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public func getError() -> LightningDevKit.Bindings.ProbeSendFailure? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? @objc deinit } } -public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ +public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHint? + public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? @objc deinit } } -public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate +public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetworkUpdateType { - case ChannelUpdateMessage - case ChannelFailure - case NodeFailure - public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public enum ErrorActionType { + case DisconnectPeer + case DisconnectPeerWithWarning + case IgnoreError + case IgnoreAndLog + case IgnoreDuplicateGossip + case SendErrorMessage + case SendWarningMessage + public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType - public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? - public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? - public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? + public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType + public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? + public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? + public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? + public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? + public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getShortChannelId() -> Swift.UInt64 - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.WarningMessage @objc deinit } - @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - } -} -public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentSendFailureType { - case ParameterError - case PathParameterError - case AllFailedResendSafe - case DuplicatePayment - case PartialFailure - public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType - public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure - public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? - public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? - public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? - public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? - @objc deinit - @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] - public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters - public func getPaymentId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.WarningMessage + public func getLogLevel() -> LightningDevKit.Bindings.Level @objc deinit } } } -public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? - @objc deinit - } -} -public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ +public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? - @objc deinit - } -} -public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ -extension LightningDevKit.Bindings { - public enum Option_NoneZ { - case Some - case None - public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ +public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? + public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? @objc deinit } } -public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ +public typealias GossipSync = LightningDevKit.Bindings.GossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCDestination? + public enum GossipSyncType { + case P2P + case Rapid + case None + public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType + public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func none() -> LightningDevKit.Bindings.GossipSync + public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? + public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? @objc deinit } } -public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ +public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum HTLCClaim { + case OfferedTimeout + case OfferedPreimage + case AcceptedTimeout + case AcceptedPreimage + case Revocation + public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingCreated? + public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? @objc deinit } } -public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited +public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool - public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public func intoTransaction() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ +public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PathFailure? + public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? @objc deinit } } -public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ +public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + public func getValue() -> LightningDevKit.Bindings.TxAddInput? @objc deinit } } -public typealias WalletSource = LightningDevKit.Bindings.WalletSource +public typealias Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - open func getChangeScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)? @objc deinit } } -public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getData() -> LightningDevKit.Bindings.RawDataPart - public func setData(val: LightningDevKit.Bindings.RawDataPart) - public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func getSrcNodeId() -> [Swift.UInt8] + public func setSrcNodeId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64? + public func setHtlcMinimumMsat(val: Swift.UInt64?) + public func getHtlcMaximumMsat() -> Swift.UInt64? + public func setHtlcMaximumMsat(val: Swift.UInt64?) + public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func paymentHash() -> LightningDevKit.Bindings.Sha256? - public func description() -> LightningDevKit.Bindings.Description? - public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? - public func descriptionHash() -> LightningDevKit.Bindings.Sha256? - public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? - public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func amountPicoBtc() -> Swift.UInt64? - public func currency() -> LightningDevKit.Bindings.Currency + public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate +public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateId() -> Swift.UInt64 - public func setUpdateId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) + public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool + public func addresses() -> [LightningDevKit.Bindings.SocketAddress] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput +public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) public func getSerialId() -> Swift.UInt64 public func setSerialId(val: Swift.UInt64) - public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited - public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) - public func getPrevtxOut() -> Swift.UInt32 - public func setPrevtxOut(val: Swift.UInt32) - public func getSequence() -> Swift.UInt32 - public func setSequence(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func getSats() -> Swift.UInt64 + public func setSats(val: Swift.UInt64) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func call() - @objc deinit - } -} -public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getOurToSelfDelay() -> Swift.UInt16 - public func setOurToSelfDelay(val: Swift.UInt16) - public func getOurHtlcMinimumMsat() -> Swift.UInt64 - public func setOurHtlcMinimumMsat(val: Swift.UInt64) - public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 - public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) - public func getNegotiateScidPrivacy() -> Swift.Bool - public func setNegotiateScidPrivacy(val: Swift.Bool) - public func getAnnouncedChannel() -> Swift.Bool - public func setAnnouncedChannel(val: Swift.Bool) - public func getCommitUpfrontShutdownPubkey() -> Swift.Bool - public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) - public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 - public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) - public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) - public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 - public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) - public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias RouteHint = LightningDevKit.Bindings.RouteHint +public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [LightningDevKit.Bindings.RouteHintHop] - public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) - public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? @objc deinit } } -public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ +public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? + public func getError() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Result_PaymentHashPaymentSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ +public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> [Swift.UInt8]? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents +public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OnionMessageContentsType { - case Offers - case Custom - public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType - public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents - public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents - public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? - public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func call() @objc deinit } } -public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ +public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsType? + public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? @objc deinit } } -public typealias Wallet = LightningDevKit.Bindings.Wallet +public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) - public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource - public func isOwned() -> Swift.Bool + public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) + open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] + open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] + open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func channelKeysId() -> [Swift.UInt8] + open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys @objc deinit } } -public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ +public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? + public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ +public typealias Path = LightningDevKit.Bindings.Path extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func getHops() -> [LightningDevKit.Bindings.RouteHop] + public func setHops(val: [LightningDevKit.Bindings.RouteHop]) + public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? + public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) + public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool + public func feeMsat() -> Swift.UInt64 + public func finalValueMsat() -> Swift.UInt64 + public func finalCltvExpiryDelta() -> Swift.UInt32? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ +public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? @objc deinit } } -public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo +public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [Swift.UInt64] - public func setChannels(val: [Swift.UInt64]) - public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? - public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) - public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) - public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ +public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ +public typealias Description = LightningDevKit.Bindings.Description extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool + public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public func intoInner() -> Swift.String + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor +public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getPerCommitmentNumber() -> Swift.UInt64 - public func setPerCommitmentNumber(val: Swift.UInt64) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment - public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) - public func getPreimage() -> [Swift.UInt8]? - public func setPreimage(val: [Swift.UInt8]?) - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool - public func outpoint() -> LightningDevKit.Bindings.OutPoint - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func txOutput() -> LightningDevKit.Bindings.TxOut - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getIntroductionNodeId() -> [Swift.UInt8] + public func setIntroductionNodeId(val: [Swift.UInt8]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getBlindedHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setBlindedHops(val: [LightningDevKit.Bindings.BlindedHop]) + public init(introductionNodeIdArg: [Swift.UInt8], blindingPointArg: [Swift.UInt8], blindedHopsArg: [LightningDevKit.Bindings.BlindedHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool + public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func oneHopForPayment(payeeNodeId: [Swift.UInt8], payeeTlvs: LightningDevKit.Bindings.ReceiveTlvs, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ +public typealias Route = LightningDevKit.Bindings.Route extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getPaths() -> [LightningDevKit.Bindings.Path] + public func setPaths(val: [LightningDevKit.Bindings.Path]) + public func getRouteParams() -> LightningDevKit.Bindings.RouteParameters? + public func setRouteParams(val: LightningDevKit.Bindings.RouteParameters) + public init(pathsArg: [LightningDevKit.Bindings.Path], routeParamsArg: LightningDevKit.Bindings.RouteParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool + public func getTotalFees() -> Swift.UInt64 + public func getTotalAmount() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getPushMsat() -> Swift.UInt64 - public func setPushMsat(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool +public typealias Shutdown = LightningDevKit.Bindings.Shutdown +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getScriptpubkey() -> [Swift.UInt8] + public func setScriptpubkey(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ +public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.CoinSelection? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedTail? @objc deinit } } -public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> [Swift.UInt8]? + public init(scorer: LightningDevKit.Bindings.ScoreLookUp, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_KeyPairZNoneZ = LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_KeyPairZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ +public typealias EntropySource = LightningDevKit.Bindings.EntropySource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public init() + open func getSecureRandomBytes() -> [Swift.UInt8] @objc deinit } } -public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript +public typealias TxIn = LightningDevKit.Bindings.TxIn extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func intoInner() -> [Swift.UInt8] - public func asLegacyPubkey() -> [Swift.UInt8]? - public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) + public func getWitness() -> [Swift.UInt8] + public func getScriptSig() -> [Swift.UInt8] + public func getSequence() -> Swift.UInt32 + public func getPreviousTxid() -> [Swift.UInt8] + public func getPreviousVout() -> Swift.UInt32 @objc deinit } } -public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ +public typealias ScoreLookUp = LightningDevKit.Bindings.ScoreLookUp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreLookUp : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 @objc deinit } } -public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ +public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? + public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ +public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isInitialSyncComplete() -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OutPoint = LightningDevKit.Bindings.OutPoint +public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public func getIndex() -> Swift.UInt16 - public func setIndex(val: Swift.UInt16) - public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func toChannelId() -> [Swift.UInt8] + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]?) + public func getPaymentMetadata() -> [Swift.UInt8]? + public func setPaymentMetadata(val: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields + public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public func withCustomTlvs(customTlvs: [(Swift.UInt64, [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public func customTlvs() -> [(Swift.UInt64, [Swift.UInt8])] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SignatureNoneZ = LightningDevKit.Bindings.Result_SignatureNoneZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SignatureNoneZ + public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? @objc deinit } } -public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ +public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? + public init() + public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOffered() -> Swift.Bool - public func setOffered(val: Swift.Bool) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getTransactionOutputIndex() -> Swift.UInt32? - public func setTransactionOutputIndex(val: Swift.UInt32?) - public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) - public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getChannelTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func setChannelTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64, channelTransactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool + public func witnessScript() -> [Swift.UInt8]? + public func maxWitnessLength() -> Swift.UInt public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Refund = LightningDevKit.Bindings.Refund +public typealias Logger = LightningDevKit.Bindings.Logger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func log(record: LightningDevKit.Bindings.Record) + @objc deinit + } +} +public typealias Network = LightningDevKit.Bindings.Network +extension LightningDevKit.Bindings { + public enum Network { + case Bitcoin + case Testnet + case Regtest + case Signet + public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } +} +public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? - public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func metadata() -> [Swift.UInt8] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures public func quantity() -> Swift.UInt64? public func payerId() -> [Swift.UInt8] public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer +public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func debugLogLiquidityStats() - public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? - public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? - public func asScore() -> LightningDevKit.Bindings.Score + public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? + public func listChannels() -> [Swift.UInt64] + public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? + public func listNodes() -> [LightningDevKit.Bindings.NodeId] + public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.SocketAddress]? + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) + public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig + public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] + public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] + public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseAllChannelsBroadcastingLatestTxn() + public func forceCloseAllChannelsWithoutBroadcastingTxn() + public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ + public func abandonPayment(paymentId: [Swift.UInt8]) + public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public func sendSpontaneousPreflightProbes(nodeId: [Swift.UInt8], amountMsat: Swift.UInt64, finalCltvExpiryDelta: Swift.UInt32, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func sendPreflightProbes(routeParams: LightningDevKit.Bindings.RouteParameters, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func batchFundingTransactionGenerated(temporaryChannels: [([Swift.UInt8], [Swift.UInt8])], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func processPendingHtlcForwards() + public func timerTickOccurred() + public func failHtlcBackwards(paymentHash: [Swift.UInt8]) + public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) + public func claimFunds(paymentPreimage: [Swift.UInt8]) + public func claimFundsWithKnownCustomTlvs(paymentPreimage: [Swift.UInt8]) + public func getOurNodeId() -> [Swift.UInt8] + public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func getPhantomScid() -> Swift.UInt64 + public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints + public func getInterceptScid() -> Swift.UInt64 + public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func getEventOrPersistenceNeededFuture() -> LightningDevKit.Bindings.Future + public func getAndClearNeedsPersistence() -> Swift.Bool + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func initFeatures() -> LightningDevKit.Bindings.InitFeatures + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ +public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? + public init() + open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? + open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ @objc deinit } } -public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys +public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func asUnixTimestamp() -> Swift.UInt64 + public func asDurationSinceEpoch() -> Swift.UInt64 + public func asTime() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Watch = LightningDevKit.Bindings.Watch +public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] - @objc deinit + public enum Bolt11SemanticError { + case NoPaymentHash + case MultiplePaymentHashes + case NoDescription + case MultipleDescriptions + case NoPaymentSecret + case MultiplePaymentSecrets + case InvalidFeatures + case InvalidRecoveryId + case InvalidSignature + case ImpreciseAmount + public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler +public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) - open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? @objc deinit } } -public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +public typealias Utxo = LightningDevKit.Bindings.Utxo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool + public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias LightningError = LightningDevKit.Bindings.LightningError +public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func setErr(val: Swift.String) - public func getAction() -> LightningDevKit.Bindings.ErrorAction - public func setAction(val: LightningDevKit.Bindings.ErrorAction) - public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ +public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RoutingFees? + public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? @objc deinit } } -public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ +public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeFeatures? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getPaymentPreimage() -> [Swift.UInt8]? + public func setPaymentPreimage(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler +public typealias Ping = LightningDevKit.Bindings.Ping extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? - open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public func getPonglen() -> Swift.UInt16 + public func setPonglen(val: Swift.UInt16) + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlockHash() -> [Swift.UInt8]? - public func setBlockHash(val: [Swift.UInt8]?) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getScriptPubkey() -> [Swift.UInt8] - public func setScriptPubkey(val: [Swift.UInt8]) - public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] + public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) + public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] + public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) + public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] + public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) + public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] + public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) + public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? + public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) + public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned + public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) + public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) + public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Event? @objc deinit } } -public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ +public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxSignatures? + public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) + open func write() -> [Swift.UInt8] + public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner @objc deinit } } -public typealias Result_CVec_SignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ +public typealias DecodeError = LightningDevKit.Bindings.DecodeError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_SignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? + public enum DecodeErrorType { + case UnknownVersion + case UnknownRequiredFeature + case InvalidValue + case ShortRead + case BadLengthDescriptor + case Io + case UnsupportedCompression + public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType + public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError + public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError + public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError + public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError + public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError + public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError + public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError + public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool + public func getValueAsIo() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ +public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getPushMsat() -> Swift.UInt64 + public func setPushMsat(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ +public typealias PaymentError = LightningDevKit.Bindings.PaymentError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? + public enum PaymentErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError + public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError + public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? @objc deinit } } -public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ +public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? + public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? @objc deinit } } -public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters +public typealias Packet = LightningDevKit.Bindings.Packet extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Packet : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNetwork() -> LightningDevKit.Bindings.Network - public func setNetwork(val: LightningDevKit.Bindings.Network) - public func getBestBlock() -> LightningDevKit.Bindings.BestBlock - public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) - public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) + public func getVersion() -> Swift.UInt8 + public func setVersion(val: Swift.UInt8) + public func getPublicKey() -> [Swift.UInt8] + public func setPublicKey(val: [Swift.UInt8]) + public func getHopData() -> [Swift.UInt8] + public func setHopData(val: [Swift.UInt8]) + public func getHmac() -> [Swift.UInt8]? + public func setHmac(val: [Swift.UInt8]) + public init(versionArg: Swift.UInt8, publicKeyArg: [Swift.UInt8], hopDataArg: [Swift.UInt8], hmacArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Packet, b: LightningDevKit.Bindings.Packet) -> Swift.Bool + public func write() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - @objc deinit - } + public class func getLDKSwiftBindingsSerializationHash() -> Swift.String + public class func getLDKSwiftBindingsVersion() -> Swift.String + public class func getLDKSwiftBindingsCommitHash() -> Swift.String } -public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor +public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) - public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getBaseMsat() -> Swift.UInt32 + public func setBaseMsat(val: Swift.UInt32) + public func getProportionalMillionths() -> Swift.UInt32 + public func setProportionalMillionths(val: Swift.UInt32) + public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider +public typealias Listen = LightningDevKit.Bindings.Listen extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage + open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) + open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) @objc deinit } } -public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ +public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PrivateRoute? @objc deinit } } -public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ +public typealias FilesystemStore = LightningDevKit.Bindings.FilesystemStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FilesystemStore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + public init(dataDir: Swift.String) + public func getDataDir() -> Swift.String + public func asKVStore() -> LightningDevKit.Bindings.KVStore + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph +public typealias EventHandler = LightningDevKit.Bindings.EventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? - public func listChannels() -> [Swift.UInt64] - public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? - public func listNodes() -> [LightningDevKit.Bindings.NodeId] - public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.NetAddress]? - public func isOwned() -> Swift.Bool + public init() + open func handleEvent(event: LightningDevKit.Bindings.Event) @objc deinit } } -public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner +public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingKey() -> [Swift.UInt8]? - public func setFundingKey(val: [Swift.UInt8]) - public func getRevocationBaseKey() -> [Swift.UInt8]? - public func setRevocationBaseKey(val: [Swift.UInt8]) - public func getPaymentKey() -> [Swift.UInt8]? - public func setPaymentKey(val: [Swift.UInt8]) - public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? - public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) - public func getHtlcBaseKey() -> [Swift.UInt8]? - public func setHtlcBaseKey(val: [Swift.UInt8]) - public func getCommitmentSeed() -> [Swift.UInt8]? - public func setCommitmentSeed(val: [Swift.UInt8]) - public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) - public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func counterpartySelectedContestDelay() -> Swift.UInt16 - public func holderSelectedContestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner - public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner - public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) - public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice - public func signableHash() -> [Swift.UInt8]? - public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature - public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public func checkSignature() -> Swift.Bool - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func toStr() -> Swift.String + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice +public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func description() -> LightningDevKit.Bindings.PrintableString - public func createdAt() -> Swift.UInt64 - public func relativeExpiry() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func paymentHash() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func signingPubkey() -> [Swift.UInt8] - public func signableHash() -> [Swift.UInt8] - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> Swift.Bool - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? @objc deinit } } -public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ +public typealias MultiThreadedScoreLockRead = LightningDevKit.Bindings.MultiThreadedScoreLockRead extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockRead : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OnionMessage? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Event = LightningDevKit.Bindings.Event +public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EventType { - case FundingGenerationReady - case PaymentClaimable - case PaymentClaimed - case PaymentSent - case PaymentFailed - case PaymentPathSuccessful - case PaymentPathFailed - case ProbeSuccessful - case ProbeFailed - case PendingHTLCsForwardable - case HTLCIntercepted - case SpendableOutputs - case PaymentForwarded - case ChannelPending - case ChannelReady - case ChannelClosed - case DiscardFunding - case OpenChannelRequest - case HTLCHandlingFailed - case BumpTransaction - public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Event.EventType - public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8], viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Event - public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8], nextChannelId: [Swift.UInt8], feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event - public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason) -> LightningDevKit.Bindings.Event - public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event - public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event - public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? - public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? - public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? - public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? - public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? - public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? - public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? - public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? - public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? - public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? - public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? - public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? - public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? - public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? - public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? - public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? - public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? - public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? - public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? - public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) + public func getForwardingFeeBaseMsat() -> Swift.UInt32? + public func setForwardingFeeBaseMsat(val: Swift.UInt32?) + public func getCltvExpiryDelta() -> Swift.UInt16? + public func setCltvExpiryDelta(val: Swift.UInt16?) + public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + @objc deinit + } +} +public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OutPoint? + @objc deinit + } +} +public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + @objc deinit + } +} +public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? + @objc deinit + } +} +public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SendError? + @objc deinit + } +} +public typealias TxAbort = LightningDevKit.Bindings.TxAbort +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> [Swift.UInt8] + public func setData(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelValueSatoshis() -> Swift.UInt64 - public func getOutputScript() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields - public func getAmountMsat() -> Swift.UInt64 - public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - public func getViaChannelId() -> [Swift.UInt8] - public func getViaUserChannelId() -> [Swift.UInt8]? - public func getClaimDeadline() -> Swift.UInt32? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getAmountMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentPreimage() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getFeePaidMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8]? - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentFailedPermanently() -> Swift.Bool - public func getFailure() -> LightningDevKit.Bindings.PathFailure - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTimeForwardable() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getInterceptId() -> [Swift.UInt8] - public func getRequestedNextHopScid() -> Swift.UInt64 - public func getPaymentHash() -> [Swift.UInt8] - public func getInboundAmountMsat() -> Swift.UInt64 - public func getExpectedOutboundAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getNextChannelId() -> [Swift.UInt8] - public func getFeeEarnedMsat() -> Swift.UInt64? - public func getClaimFromOnchainTx() -> Swift.Bool - public func getOutboundAmountForwardedMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getFormerTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.ClosureReason - @objc deinit - } - @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getTransaction() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingSatoshis() -> Swift.UInt64 - public func getPushMsat() -> Swift.UInt64 - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination - @objc deinit - } } } public typealias InvoiceRequestFeatures = LightningDevKit.Bindings.InvoiceRequestFeatures @@ -6226,880 +6960,1033 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class InvoiceRequestFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + @objc deinit + } +} +public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getData() -> LightningDevKit.Bindings.RawDataPart + public func setData(val: LightningDevKit.Bindings.RawDataPart) + public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func paymentHash() -> LightningDevKit.Bindings.Sha256? + public func description() -> LightningDevKit.Bindings.Description? + public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? + public func descriptionHash() -> LightningDevKit.Bindings.Sha256? + public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? + public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func amountPicoBtc() -> Swift.UInt64? + public func currency() -> LightningDevKit.Bindings.Currency + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getEnabled() -> Swift.Bool + public func setEnabled(val: Swift.Bool) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? + public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) + public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func setKeysendOptional() + public func setKeysendRequired() + public func supportsKeysend() -> Swift.Bool + public func requiresKeysend() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteParameters? @objc deinit } } -public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Offer? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHop? @objc deinit } } -public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage +public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func getTxHash() -> [Swift.UInt8]? + public func setTxHash(val: [Swift.UInt8]) + public func getWitnesses() -> [[Swift.UInt8]] + public func setWitnesses(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ +public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func getIntermediateNodes() -> [[Swift.UInt8]] + public func setIntermediateNodes(val: [[Swift.UInt8]]) + public func getDestination() -> LightningDevKit.Bindings.Destination + public func setDestination(val: LightningDevKit.Bindings.Destination) + public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [LightningDevKit.Bindings.Utxo]? + @objc deinit + } +} +@_hasMissingDesignatedInitializers public class LDKExampleClass { + public class func printSomething() + public func printInstance() + @objc deinit +} +public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + @objc deinit + } +} +public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeInfo? + public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? @objc deinit } } -public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction +public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ErrorActionType { - case DisconnectPeer - case DisconnectPeerWithWarning - case IgnoreError - case IgnoreAndLog - case IgnoreDuplicateGossip - case SendErrorMessage - case SendWarningMessage - public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType - public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? - public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? - public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? - public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? - public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeSatoshis() -> Swift.UInt64 + public func setFeeSatoshis(val: Swift.UInt64) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) + public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) + public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - public func getLogLevel() -> LightningDevKit.Bindings.Level - @objc deinit - } } } -public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer +public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer - public func asScore() -> LightningDevKit.Bindings.Score + public func getA() -> [Swift.UInt8]? + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPreimageAPIErrorZ = LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ +public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPreimageAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? + public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters + public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public func getMaxTotalRoutingFeeMsat() -> Swift.UInt64? + public func setMaxTotalRoutingFeeMsat(val: Swift.UInt64?) + public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64, maxTotalRoutingFeeMsatArg: Swift.UInt64?) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public class func initWithPaymentParamsAndValue(paymentParams: LightningDevKit.Bindings.PaymentParameters, finalValueMsat: Swift.UInt64) -> LightningDevKit.Bindings.RouteParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ +public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? + public enum SignOrCreationErrorType { + case SignError + case CreationError + public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType + public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError + public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError + public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? @objc deinit } } -public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingSigned? + public init() + open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult @objc deinit } } -public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints +public enum NetworkGraphArgument { + case serialized([Swift.UInt8]) + case instance(LightningDevKit.NetworkGraph) +} +public struct ChannelManagerConstructionParameters { + public var config: LightningDevKit.UserConfig + public var entropySource: LightningDevKit.EntropySource + public var nodeSigner: LightningDevKit.NodeSigner + public var signerProvider: LightningDevKit.SignerProvider + public var feeEstimator: LightningDevKit.FeeEstimator + public var chainMonitor: LightningDevKit.ChainMonitor + public var txBroadcaster: LightningDevKit.BroadcasterInterface + public var enableP2PGossip: Swift.Bool + public var scorer: LightningDevKit.MultiThreadedLockableScore? + public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? + public var payerRetries: LightningDevKit.Bindings.Retry + public var logger: LightningDevKit.Logger + public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt32(3))) +} +@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { + final public let channelManager: LightningDevKit.ChannelManager + final public let channel_manager_latest_block_hash: [Swift.UInt8]? + public var netGraph: LightningDevKit.NetworkGraph? { + get + } + final public let peerManager: LightningDevKit.PeerManager + public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { + get + } + public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws + public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) + public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) + public func interrupt() + public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler + @objc deinit +} +public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { + func handleEvent(event: LightningDevKit.Event) +} +@_hasMissingDesignatedInitializers public class TCPPeerHandler { + public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool + public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool + @objc deinit +} +public typealias KeysManager = LightningDevKit.Bindings.KeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) - public func getPhantomScid() -> Swift.UInt64 - public func setPhantomScid(val: Swift.UInt64) - public func getRealNodePubkey() -> [Swift.UInt8] - public func setRealNodePubkey(val: [Swift.UInt8]) - public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) + public func getNodeSecretKey() -> [Swift.UInt8] + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ +public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias UserConfig = LightningDevKit.Bindings.UserConfig +public typealias Filter = LightningDevKit.Bindings.Filter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig - public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) - public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) - public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig - public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) - public func getAcceptForwardsToPrivChannels() -> Swift.Bool - public func setAcceptForwardsToPrivChannels(val: Swift.Bool) - public func getAcceptInboundChannels() -> Swift.Bool - public func setAcceptInboundChannels(val: Swift.Bool) - public func getManuallyAcceptInboundChannels() -> Swift.Bool - public func setManuallyAcceptInboundChannels(val: Swift.Bool) - public func getAcceptInterceptHtlcs() -> Swift.Bool - public func setAcceptInterceptHtlcs(val: Swift.Bool) - public func getAcceptMppKeysend() -> Swift.Bool - public func setAcceptMppKeysend(val: Swift.Bool) - public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) - public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig - public func isOwned() -> Swift.Bool + public init() + open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) + open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) @objc deinit } } -public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ +public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.Description? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? @objc deinit } } -public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 +public typealias Sha256 = LightningDevKit.Bindings.Sha256 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool + public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ +public typealias BindingsError = LightningDevKit.Bindings.BindingsError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + public func getDummy() -> Swift.UInt8 @objc deinit } } -public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure -extension LightningDevKit.Bindings { - public enum RetryableSendFailure { - case PaymentExpired - case RouteNotFound - case DuplicatePayment - public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange +public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public func getSyncComplete() -> Swift.Bool - public func setSyncComplete(val: Swift.Bool) - public func getShortChannelIds() -> [Swift.UInt64] - public func setShortChannelIds(val: [Swift.UInt64]) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) - public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDetails? @objc deinit } } -public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +public typealias APIError = LightningDevKit.Bindings.APIError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RecentPaymentDetailsType { - case Pending - case Fulfilled - case Abandoned - public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public enum APIErrorType { + case APIMisuseError + case FeeRateTooHigh + case InvalidRoute + case ChannelUnavailable + case MonitorUpdateInProgress + case IncompatibleShutdownScript + public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType - public class func initWithPending(paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithFulfilled(paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithAbandoned(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails - public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? - public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? - public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType + public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError + public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError + public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError + public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? + public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? + public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? + public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? + public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? @objc deinit - @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] - public func getTotalMsat() -> Swift.UInt64 + public func getErr() -> Swift.String @objc deinit } - @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8]? + public func getErr() -> Swift.String + public func getFeerate() -> Swift.UInt32 @objc deinit } - @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getScript() -> LightningDevKit.Bindings.ShutdownScript @objc deinit } } } -public typealias Record = LightningDevKit.Bindings.Record +public typealias TxComplete = LightningDevKit.Bindings.TxComplete extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLevel() -> LightningDevKit.Bindings.Level - public func setLevel(val: LightningDevKit.Bindings.Level) - public func getArgs() -> Swift.String - public func setArgs(val: Swift.String) - public func getModulePath() -> Swift.String - public func setModulePath(val: Swift.String) - public func getFile() -> Swift.String - public func setFile(val: Swift.String) - public func getLine() -> Swift.UInt32 - public func setLine(val: Swift.UInt32) + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ +public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getBasePenaltyMsat() -> Swift.UInt64 + public func setBasePenaltyMsat(val: Swift.UInt64) + public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getAntiProbingPenaltyMsat() -> Swift.UInt64 + public func setAntiProbingPenaltyMsat(val: Swift.UInt64) + public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 + public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) + public func getLinearSuccessProbability() -> Swift.Bool + public func setLinearSuccessProbability(val: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters + public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) + public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) + public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) + public func clearManualPenalties() + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler +public typealias Result_C2Tuple_CVec_u8ZusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_CVec_u8ZusizeZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? - public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) - public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? - public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) - public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? - public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) - public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? - public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) - public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], Swift.UInt)? @objc deinit } } -public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields +public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentSecret() -> [Swift.UInt8]? - public func setPaymentSecret(val: [Swift.UInt8]?) - public func getPaymentMetadata() -> [Swift.UInt8]? - public func setPaymentMetadata(val: [Swift.UInt8]?) - public init(paymentSecretArg: [Swift.UInt8]?, paymentMetadataArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields - public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity +public typealias ForwardTlvs = LightningDevKit.Bindings.ForwardTlvs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ForwardTlvs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EffectiveCapacityType { - case ExactLiquidity - case AdvertisedMaxHTLC - case Total - case Infinite - case HintMaxHTLC - case Unknown - public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType - public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity - public func asMsat() -> Swift.UInt64 - public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? - public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? - public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? - public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getPaymentRelay() -> LightningDevKit.Bindings.PaymentRelay + public func setPaymentRelay(val: LightningDevKit.Bindings.PaymentRelay) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(shortChannelIdArg: Swift.UInt64, paymentRelayArg: LightningDevKit.Bindings.PaymentRelay, paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getLiquidityMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getCapacityMsat() -> Swift.UInt64 - public func getHtlcMaximumMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } } } -public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager +public typealias OutPoint = LightningDevKit.Bindings.OutPoint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func getNodeSecretKey() -> [Swift.UInt8] - public func getPhantomNodeSecretKey() -> [Swift.UInt8] + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public func getIndex() -> Swift.UInt16 + public func setIndex(val: Swift.UInt16) + public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func toChannelId() -> [Swift.UInt8] + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ +public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? + public func getValue() -> LightningDevKit.Bindings.TxAbort? @objc deinit } } -public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ +public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPath? + public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? @objc deinit } } -public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ +public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? + public func getUpdateId() -> Swift.UInt64 + public func setUpdateId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ +public typealias Persister = LightningDevKit.Bindings.Persister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosureReason? + public init() + open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneIOErrorZ @objc deinit } } -public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFeeSatoshis() -> Swift.UInt64 - public func setMinFeeSatoshis(val: Swift.UInt64) - public func getMaxFeeSatoshis() -> Swift.UInt64 - public func setMaxFeeSatoshis(val: Swift.UInt64) - public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public func getSyncComplete() -> Swift.Bool + public func setSyncComplete(val: Swift.Bool) + public func getShortChannelIds() -> [Swift.UInt64] + public func setShortChannelIds(val: [Swift.UInt64]) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) + public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction +public typealias Score = LightningDevKit.Bindings.Score +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(scoreLookUp: LightningDevKit.Bindings.ScoreLookUp, scoreUpdate: LightningDevKit.Bindings.ScoreUpdate) + open func write() -> [Swift.UInt8] + public func getScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func getScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + @objc deinit + } +} +public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + @objc deinit + } +} +public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func tlvType() -> Swift.UInt64 + open func write() -> [Swift.UInt8] + @objc deinit + } +} +public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTransaction() -> [Swift.UInt8] - public func setTransaction(val: [Swift.UInt8]) - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? @objc deinit } } -public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError +public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] + public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) + public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? + public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) + public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters +public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getSelectedContestDelay() -> Swift.UInt16 - public func setSelectedContestDelay(val: Swift.UInt16) - public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ +public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Event? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) + public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) + public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ +public typealias VerifiedInvoiceRequest = LightningDevKit.Bindings.VerifiedInvoiceRequest extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class VerifiedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? + public func getKeys() -> [Swift.UInt8]? + public func setKeys(val: [Swift.UInt8]?) + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ +public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValue() -> LightningDevKit.Bindings.Hostname? @objc deinit } } -public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated +public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingTxid() -> [Swift.UInt8]? - public func setFundingTxid(val: [Swift.UInt8]) - public func getFundingOutputIndex() -> Swift.UInt16 - public func setFundingOutputIndex(val: Swift.UInt16) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeInfo? @objc deinit } } -public enum NetworkGraphArgument { - case serialized([Swift.UInt8]) - case instance(LightningDevKit.NetworkGraph) -} -public struct ChannelManagerConstructionParameters { - public var config: LightningDevKit.UserConfig - public var entropySource: LightningDevKit.EntropySource - public var nodeSigner: LightningDevKit.NodeSigner - public var signerProvider: LightningDevKit.SignerProvider - public var feeEstimator: LightningDevKit.FeeEstimator - public var chainMonitor: LightningDevKit.ChainMonitor - public var txBroadcaster: LightningDevKit.BroadcasterInterface - public var enableP2PGossip: Swift.Bool - public var scorer: LightningDevKit.MultiThreadedLockableScore? - public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? - public var payerRetries: LightningDevKit.Bindings.Retry - public var logger: LightningDevKit.Logger - public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt(3))) -} -@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { - final public let channelManager: LightningDevKit.ChannelManager - final public let channel_manager_latest_block_hash: [Swift.UInt8]? - public var netGraph: LightningDevKit.NetworkGraph? { - get - } - final public let peerManager: LightningDevKit.PeerManager - public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { - get - } - public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws - public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) - public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) - public func interrupt() - public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler - @objc deinit -} -public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { - func handleEvent(event: LightningDevKit.Event) -} -@_hasMissingDesignatedInitializers public class TCPPeerHandler { - public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool - public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool - @objc deinit -} -public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC +public typealias Result_NoneIOErrorZ = LightningDevKit.Bindings.Result_NoneIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getPaymentPreimage() -> [Swift.UInt8]? - public func setPaymentPreimage(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias IOError = LightningDevKit.Bindings.IOError +public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ extension LightningDevKit.Bindings { - public enum IOError { - case NotFound - case PermissionDenied - case ConnectionRefused - case ConnectionReset - case ConnectionAborted - case NotConnected - case AddrInUse - case AddrNotAvailable - case BrokenPipe - case AlreadyExists - case WouldBlock - case InvalidInput - case InvalidData - case TimedOut - case WriteZero - case Interrupted - case Other - case UnexpectedEof - public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.CoinSelection? + @objc deinit } } -public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ +public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Ping? + public func getFundingKey() -> [Swift.UInt8]? + public func setFundingKey(val: [Swift.UInt8]) + public func getRevocationBaseKey() -> [Swift.UInt8]? + public func setRevocationBaseKey(val: [Swift.UInt8]) + public func getPaymentKey() -> [Swift.UInt8]? + public func setPaymentKey(val: [Swift.UInt8]) + public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? + public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) + public func getHtlcBaseKey() -> [Swift.UInt8]? + public func setHtlcBaseKey(val: [Swift.UInt8]) + public func getCommitmentSeed() -> [Swift.UInt8]? + public func setCommitmentSeed(val: [Swift.UInt8]) + public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) + public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys? + public func counterpartySelectedContestDelay() -> Swift.UInt16? + public func holderSelectedContestDelay() -> Swift.UInt16? + public func isOutbound() -> Swift.Bool? + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getSkimmedFeeMsat() -> Swift.UInt64? - public func setSkimmedFeeMsat(val: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public func getShortChannelIdAlias() -> Swift.UInt64? + public func setShortChannelIdAlias(val: Swift.UInt64?) + public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MonitorEventType { - case HTLCEvent - case CommitmentTxConfirmed - case Completed - case UpdateFailed - public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType - public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCommitmentTxConfirmed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithUpdateFailed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? - public func getValueAsCommitmentTxConfirmed() -> LightningDevKit.Bindings.OutPoint? - public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? - public func getValueAsUpdateFailed() -> LightningDevKit.Bindings.OutPoint? + public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxInitRbf? @objc deinit - @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - public func getMonitorUpdateId() -> Swift.UInt64 - @objc deinit - } } } -public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + public func getValue() -> LightningDevKit.Bindings.HTLCDestination? @objc deinit } } @@ -7120,373 +8007,189 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) - public func getGenesisHash() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) - public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph - public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? - public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) - public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func channelFailedPermanent(shortChannelId: Swift.UInt64) - public func nodeFailedPermanent(nodeId: [Swift.UInt8]) - public func removeStaleChannelsAndTracking() - public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) - public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Quantity = LightningDevKit.Bindings.Quantity +public typealias Result_ThirtyTwoBytesPaymentErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Shutdown = LightningDevKit.Bindings.Shutdown +public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getScriptpubkey() -> [Swift.UInt8] - public func setScriptpubkey(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? @objc deinit } } -public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo +public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getNodeOne() -> LightningDevKit.Bindings.NodeId - public func setNodeOne(val: LightningDevKit.Bindings.NodeId) - public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getNodeTwo() -> LightningDevKit.Bindings.NodeId - public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) - public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getCapacitySats() -> Swift.UInt64? - public func setCapacitySats(val: Swift.UInt64?) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool - public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? @objc deinit } } -public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError +public typealias TxOut = LightningDevKit.Bindings.TxOut extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ParseOrSemanticErrorType { - case ParseError - case SemanticError - public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType - public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) + public func getScriptPubkey() -> [Swift.UInt8] + public func getValue() -> Swift.UInt64 @objc deinit } } -@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { - public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - @objc deinit - open var hashValue: Swift.Int { - get - } -} -@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { - public func activate() -> Self - public func activateOnce() -> Self - @objc deinit -} -@_hasMissingDesignatedInitializers public class Bindings { - public enum PrintSeverity : Swift.UInt { - case DEBUG - case WARNING - case ERROR - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { - get - } - } - public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) - public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) - public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer - public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper - public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String - public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func ldkGetCompiledVersion() -> Swift.String - public class func ldkCBindingsGetCompiledVersion() -> Swift.String - public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool - public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] - public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures - public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] - public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] - public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] - public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] - public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] - public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 - public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.Score, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") - public class func readBlockHashChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func readBlockHashChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - @objc deinit -} -@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { - public init() - public func getPointer() -> Swift.UnsafeMutableRawPointer - @objc deinit -} -public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo +public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) - public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool - public func addresses() -> [LightningDevKit.Bindings.NetAddress] + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsInit? + public func getValue() -> LightningDevKit.Bindings.PathFailure? @objc deinit } } -public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop +public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) + open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader @objc deinit } } -public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice +public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func signingPubkey() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOk() -> Swift.Bool @objc deinit } } -public typealias APIError = LightningDevKit.Bindings.APIError +public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum APIErrorType { - case APIMisuseError - case FeeRateTooHigh - case InvalidRoute - case ChannelUnavailable - case MonitorUpdateInProgress - case IncompatibleShutdownScript - public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType - public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError - public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError - public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError - public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? - public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? - public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? - public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? - public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? + public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) + open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider @objc deinit - @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func getFeerate() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getScript() -> LightningDevKit.Bindings.ShutdownScript - @objc deinit - } } } -public typealias Result_NoneErrorZ = LightningDevKit.Bindings.Result_NoneErrorZ +public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? @objc deinit } } -public typealias NetAddress = LightningDevKit.Bindings.NetAddress +public typealias SocketAddress = LightningDevKit.Bindings.SocketAddress extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetAddress : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SocketAddress : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetAddressType { - case IPv4 - case IPv6 + public enum SocketAddressType { + case TcpIpV4 + case TcpIpV6 case OnionV2 case OnionV3 case Hostname - public static func == (a: LightningDevKit.Bindings.NetAddress.NetAddressType, b: LightningDevKit.Bindings.NetAddress.NetAddressType) -> Swift.Bool + public static func == (a: LightningDevKit.Bindings.SocketAddress.SocketAddressType, b: LightningDevKit.Bindings.SocketAddress.SocketAddressType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetAddress.NetAddressType - public class func initWithIpv4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithIpv6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func eq(a: LightningDevKit.Bindings.NetAddress, b: LightningDevKit.Bindings.NetAddress) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func getValueAsIPv4() -> LightningDevKit.Bindings.NetAddress.IPv4? - public func getValueAsIPv6() -> LightningDevKit.Bindings.NetAddress.IPv6? + public func getValueType() -> LightningDevKit.Bindings.SocketAddress.SocketAddressType + public class func initWithTcpIpV4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithTcpIpV6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func eq(a: LightningDevKit.Bindings.SocketAddress, b: LightningDevKit.Bindings.SocketAddress) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func getValueAsTcpIpV4() -> LightningDevKit.Bindings.SocketAddress.TcpIpV4? + public func getValueAsTcpIpV6() -> LightningDevKit.Bindings.SocketAddress.TcpIpV6? public func getValueAsOnionV2() -> [Swift.UInt8]? - public func getValueAsOnionV3() -> LightningDevKit.Bindings.NetAddress.OnionV3? - public func getValueAsHostname() -> LightningDevKit.Bindings.NetAddress.Hostname? + public func getValueAsOnionV3() -> LightningDevKit.Bindings.SocketAddress.OnionV3? + public func getValueAsHostname() -> LightningDevKit.Bindings.SocketAddress.Hostname? @objc deinit - @_hasMissingDesignatedInitializers public class IPv4 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV4 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] public func getPort() -> Swift.UInt16 @objc deinit } - @_hasMissingDesignatedInitializers public class IPv6 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV6 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] @@ -7511,1396 +8214,1367 @@ extension LightningDevKit.Bindings { } } } -public typealias NodeId = LightningDevKit.Bindings.NodeId +public typealias RouteHop = LightningDevKit.Bindings.RouteHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId - public func asSlice() -> [Swift.UInt8] - public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public func getPubkey() -> [Swift.UInt8] + public func setPubkey(val: [Swift.UInt8]) + public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getFeeMsat() -> Swift.UInt64 + public func setFeeMsat(val: Swift.UInt64) + public func getCltvExpiryDelta() -> Swift.UInt32 + public func setCltvExpiryDelta(val: Swift.UInt32) + public func getMaybeAnnouncedChannel() -> Swift.Bool + public func setMaybeAnnouncedChannel(val: Swift.Bool) + public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32, maybeAnnouncedChannelArg: Swift.Bool) public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ +public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) + public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] + public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] + public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] + public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func getUpdateFuture() -> LightningDevKit.Bindings.Future + public func rebroadcastPendingClaims() + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func asWatch() -> LightningDevKit.Bindings.Watch + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstTimestamp() -> Swift.UInt32 + public func setFirstTimestamp(val: Swift.UInt32) + public func getTimestampRange() -> Swift.UInt32 + public func setTimestampRange(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + @objc deinit + } +} +public typealias Result_RetryDecodeErrorZ = LightningDevKit.Bindings.Result_RetryDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RetryDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddInput? + public func getValue() -> LightningDevKit.Bindings.Retry? @objc deinit } } -public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate +public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] - public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) - public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] - public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) - public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] - public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) - public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] - public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) - public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? - public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) - public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned - public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) - public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) - public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> Swift.Bool? + @objc deinit + } +} +public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_SignatureCVec_SignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ +public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_SignatureCVec_SignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? + public init() + public func getMinSeenSecret() -> Swift.UInt64 + public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState -extension LightningDevKit.Bindings { - public enum ChannelShutdownState { - case NotShuttingDown - case ShutdownInitiated - case ResolvingHTLCs - case NegotiatingClosingFee - case ShutdownComplete - public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ +public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? @objc deinit } } -public typealias DecodeError = LightningDevKit.Bindings.DecodeError +public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DecodeErrorType { - case UnknownVersion - case UnknownRequiredFeature - case InvalidValue - case ShortRead - case BadLengthDescriptor - case Io - case UnsupportedCompression - public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType - public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError - public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError - public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError - public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError - public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError - public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError - public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError - public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool - public func getValueAsIo() -> LightningDevKit.Bindings.IOError? + public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WarningMessage? @objc deinit } } -public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider +public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ +public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReady? + public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? @objc deinit } } -public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +public typealias PaymentConstraints = LightningDevKit.Bindings.PaymentConstraints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentConstraints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + public func getMaxCltvExpiry() -> Swift.UInt32 + public func setMaxCltvExpiry(val: Swift.UInt32) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public init(maxCltvExpiryArg: Swift.UInt32, htlcMinimumMsatArg: Swift.UInt64) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ +public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannel? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? @objc deinit } } -public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate +public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? @objc deinit } } -public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor +public typealias Future = LightningDevKit.Bindings.Future extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) - public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] - public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] - public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] - public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func getUpdateFuture() -> LightningDevKit.Bindings.Future - public func rebroadcastPendingClaims() - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func asWatch() -> LightningDevKit.Bindings.Watch - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError +public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ClosingSigned? @objc deinit } } -public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner +public typealias RouteHint = LightningDevKit.Bindings.RouteHint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] - open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_SignatureNoneZ + public func getA() -> [LightningDevKit.Bindings.RouteHintHop] + public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) + public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures +public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } -public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection +public typealias Result_CVec_u8ZIOErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] - public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) - public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? - public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) - public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias FilesystemPersister = LightningDevKit.Bindings.FilesystemPersister +public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FilesystemPersister : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(pathToChannelData: Swift.String) - public func getDataDir() -> Swift.String - public func readChannelmonitors(entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ + public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func debugLogLiquidityStats() + public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? + public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? + public func historicalEstimatedPaymentSuccessProbability(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId, amountMsat: Swift.UInt64, params: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.Double? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func asScore() -> LightningDevKit.Bindings.Score + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool +public typealias NodeId = LightningDevKit.Bindings.NodeId +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId + public func asSlice() -> [Swift.UInt8] + public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner +public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) - open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func getNodeSignature1() -> [Swift.UInt8] + public func setNodeSignature1(val: [Swift.UInt8]) + public func getNodeSignature2() -> [Swift.UInt8] + public func setNodeSignature2(val: [Swift.UInt8]) + public func getBitcoinSignature1() -> [Swift.UInt8] + public func setBitcoinSignature1(val: [Swift.UInt8]) + public func getBitcoinSignature2() -> [Swift.UInt8] + public func setBitcoinSignature2(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ +public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum ChannelMonitorUpdateStatus { + case Completed + case InProgress + case UnrecoverableError + public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAckRbf? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters +public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func contestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func isOwned() -> Swift.Bool + public enum HTLCDestinationType { + case NextHopChannel + case UnknownNextHop + case InvalidForward + case FailedPayment + public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType + public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? + public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? + public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? + public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? @objc deinit + @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } } } -public typealias Result_PaymentSecretNoneZ = LightningDevKit.Bindings.Result_PaymentSecretNoneZ +public typealias Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ = LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.SendError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)? @objc deinit } } -public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty - public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? - public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getShortChannelId() -> Swift.UInt64? - public func setShortChannelId(val: Swift.UInt64?) - public func getOutboundScidAlias() -> Swift.UInt64? - public func setOutboundScidAlias(val: Swift.UInt64?) - public func getInboundScidAlias() -> Swift.UInt64? - public func setInboundScidAlias(val: Swift.UInt64?) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public func getUnspendablePunishmentReserve() -> Swift.UInt64? - public func setUnspendablePunishmentReserve(val: Swift.UInt64?) - public func getUserChannelId() -> [Swift.UInt8] - public func setUserChannelId(val: [Swift.UInt8]) - public func getFeerateSatPer1000Weight() -> Swift.UInt32? - public func setFeerateSatPer1000Weight(val: Swift.UInt32?) - public func getBalanceMsat() -> Swift.UInt64 - public func setBalanceMsat(val: Swift.UInt64) - public func getOutboundCapacityMsat() -> Swift.UInt64 - public func setOutboundCapacityMsat(val: Swift.UInt64) - public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 - public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) - public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 - public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) - public func getInboundCapacityMsat() -> Swift.UInt64 - public func setInboundCapacityMsat(val: Swift.UInt64) - public func getConfirmationsRequired() -> Swift.UInt32? - public func setConfirmationsRequired(val: Swift.UInt32?) - public func getConfirmations() -> Swift.UInt32? - public func setConfirmations(val: Swift.UInt32?) - public func getForceCloseSpendDelay() -> Swift.UInt16? - public func setForceCloseSpendDelay(val: Swift.UInt16?) - public func getIsOutbound() -> Swift.Bool - public func setIsOutbound(val: Swift.Bool) - public func getIsChannelReady() -> Swift.Bool - public func setIsChannelReady(val: Swift.Bool) - public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? - public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) - public func getIsUsable() -> Swift.Bool - public func setIsUsable(val: Swift.Bool) - public func getIsPublic() -> Swift.Bool - public func setIsPublic(val: Swift.Bool) - public func getInboundHtlcMinimumMsat() -> Swift.UInt64? - public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getInboundHtlcMaximumMsat() -> Swift.UInt64? - public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) - public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? - public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) - public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) - public func getInboundPaymentScid() -> Swift.UInt64? - public func getOutboundPaymentScid() -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias Result_PublicKeyErrorZ = LightningDevKit.Bindings.Result_PublicKeyErrorZ +public typealias Result_PaymentRelayDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentRelayDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentRelay) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentRelay? @objc deinit } } -public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId +public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool - public func isOwned() -> Swift.Bool + public enum ParseOrSemanticErrorType { + case ParseError + case SemanticError + public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType + public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? @objc deinit } } -public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentError = LightningDevKit.Bindings.PaymentError +public typealias SendError = LightningDevKit.Bindings.SendError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PaymentErrorType { - case Invoice - case Sending - public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public enum SendErrorType { + case Secp256k1 + case TooBigPacket + case TooFewBlindedHops + case InvalidFirstHop + case InvalidMessage + case BufferFull + case GetNodeIdFailed + case BlindedPathAdvanceFailed + public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType - public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError - public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError - public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool - public func getValueAsInvoice() -> Swift.String? - public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType + public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError + public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError + public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError + public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError + public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError + public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError + public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool + public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? @objc deinit } } -public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHint? @objc deinit } } -public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ +public typealias Result_VerifiedInvoiceRequestNoneZ = LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_VerifiedInvoiceRequestNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.VerifiedInvoiceRequest) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAlias? + public func getValue() -> LightningDevKit.Bindings.VerifiedInvoiceRequest? @objc deinit } } -public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? @objc deinit } } -public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ +public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BigSize? + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingTxid() -> [Swift.UInt8]? + public func setFundingTxid(val: [Swift.UInt8]) + public func getFundingOutputIndex() -> Swift.UInt16 + public func setFundingOutputIndex(val: Swift.UInt16) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ +public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Refund? @objc deinit } } -public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ +public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? @objc deinit } } -public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ +public typealias FailureCode = LightningDevKit.Bindings.FailureCode extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FailureCode : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UntrustedString? + public enum FailureCodeType { + case TemporaryNodeFailure + case RequiredNodeFeatureMissing + case IncorrectOrUnknownPaymentDetails + case InvalidOnionPayload + public static func == (a: LightningDevKit.Bindings.FailureCode.FailureCodeType, b: LightningDevKit.Bindings.FailureCode.FailureCodeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.FailureCode.FailureCodeType + public class func initWithTemporaryNodeFailure() -> LightningDevKit.Bindings.FailureCode + public class func initWithRequiredNodeFeatureMissing() -> LightningDevKit.Bindings.FailureCode + public class func initWithIncorrectOrUnknownPaymentDetails() -> LightningDevKit.Bindings.FailureCode + public class func initWithInvalidOnionPayload(a: (Swift.UInt64, Swift.UInt16)?) -> LightningDevKit.Bindings.FailureCode + public func getValueAsInvalidOnionPayload() -> (Swift.UInt64, Swift.UInt16)?? @objc deinit } } -public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ +public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] + public func signature() -> [Swift.UInt8] + public func signableHash() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ +public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool + public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) + public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction + public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public func toHolderValueSat() -> Swift.UInt64 + public func toCounterpartyValueSat() -> Swift.UInt64 + public func toHolderScript() -> [Swift.UInt8] + public func toCounterpartyScript() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PartiallySignedTransactionNoneZ = LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ +public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PartiallySignedTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? @objc deinit } } -public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters +public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getUnspendablePunishmentReserve() -> Swift.UInt64 + public func setUnspendablePunishmentReserve(val: Swift.UInt64) + public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) + public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? + public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? + public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) + public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters +public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPayee() -> LightningDevKit.Bindings.Payee - public func setPayee(val: LightningDevKit.Bindings.Payee) - public func getExpiryTime() -> Swift.UInt64? - public func setExpiryTime(val: Swift.UInt64?) - public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 - public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) - public func getMaxPathCount() -> Swift.UInt8 - public func setMaxPathCount(val: Swift.UInt8) - public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 - public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) - public func getPreviouslyFailedChannels() -> [Swift.UInt64] - public func setPreviouslyFailedChannels(val: [Swift.UInt64]) - public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters - public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters - public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ +public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? + public func getValue() -> LightningDevKit.Bindings.OnionMessage? @objc deinit } } -public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +public typealias Result_CVec_StrZIOErrorZ = LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_StrZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithOk(o: [Swift.String]) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? - @objc deinit - } -} -public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func channel() -> LightningDevKit.Bindings.ChannelInfo - public func htlcMaximumMsat() -> Swift.UInt64 - public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.String]? @objc deinit } } -public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler +public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) - open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider + public func getBlindedNodeId() -> [Swift.UInt8] + public func setBlindedNodeId(val: [Swift.UInt8]) + public func getEncryptedPayload() -> [Swift.UInt8] + public func setEncryptedPayload(val: [Swift.UInt8]) + public init(blindedNodeIdArg: [Swift.UInt8], encryptedPayloadArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxIn = LightningDevKit.Bindings.TxIn +public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) - public func getWitness() -> [Swift.UInt8] - public func getScriptSig() -> [Swift.UInt8] - public func getSequence() -> Swift.UInt32 - public func getPreviousTxid() -> [Swift.UInt8] - public func getPreviousVout() -> Swift.UInt32 + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? @objc deinit } } -public typealias Retry = LightningDevKit.Bindings.Retry +public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RetryType { - case Attempts - case Timeout - public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public enum GraphSyncErrorType { + case DecodeError + case LightningError + public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType - public class func initWithAttempts(a: Swift.UInt) -> LightningDevKit.Bindings.Retry - public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry - public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func getValueAsAttempts() -> Swift.UInt? - public func getValueAsTimeout() -> Swift.UInt64? - @objc deinit - } -} -public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getBaseMsat() -> Swift.UInt32 - public func setBaseMsat(val: Swift.UInt32) - public func getProportionalMillionths() -> Swift.UInt32 - public func setProportionalMillionths(val: Swift.UInt32) - public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType + public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError + public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError + public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? + public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop +public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSrcNodeId() -> [Swift.UInt8] - public func setSrcNodeId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64? - public func setHtlcMinimumMsat(val: Swift.UInt64?) - public func getHtlcMaximumMsat() -> Swift.UInt64? - public func setHtlcMaximumMsat(val: Swift.UInt64?) - public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) + public enum SpendableOutputDescriptorType { + case StaticOutput + case DelayedPaymentOutput + case StaticPaymentOutput + public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType + public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? + public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit + @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func getOutput() -> LightningDevKit.Bindings.TxOut + @objc deinit + } } } -public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ +public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? + public enum OnionMessageContentsType { + case Offers + case Custom + public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType + public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents + public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents + public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? + public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +public typealias Result_ThirtyTwoBytesAPIErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OutPoint? + public func getError() -> LightningDevKit.Bindings.APIError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange +public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool - public func endBlocknum() -> Swift.UInt32 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func getNodeSecretKey() -> [Swift.UInt8] + public func getPhantomNodeSecretKey() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SendError? - @objc deinit - } -} -public typealias LockableScore = LightningDevKit.Bindings.LockableScore +public typealias LightningError = LightningDevKit.Bindings.LightningError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func lock() -> LightningDevKit.Bindings.Score + public func getErr() -> Swift.String + public func setErr(val: Swift.String) + public func getAction() -> LightningDevKit.Bindings.ErrorAction + public func setAction(val: LightningDevKit.Bindings.ErrorAction) + public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +public typealias Quantity = LightningDevKit.Bindings.Quantity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool - public func setKeysendOptional() - public func setKeysendRequired() - public func supportsKeysend() -> Swift.Bool - public func requiresKeysend() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getFlags() -> Swift.UInt8 - public func setFlags(val: Swift.UInt8) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getExcessData() -> [Swift.UInt8] - public func setExcessData(val: [Swift.UInt8]) - public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getRevocationKey() -> [Swift.UInt8] + public func setRevocationKey(val: [Swift.UInt8]) + public func getBroadcasterHtlcKey() -> [Swift.UInt8] + public func setBroadcasterHtlcKey(val: [Swift.UInt8]) + public func getCountersignatoryHtlcKey() -> [Swift.UInt8] + public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) + public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] + public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) + public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ +public typealias Result_StrSecp256k1ErrorZ = LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StrSecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> Swift.String? @objc deinit } } -public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +public typealias ProbingError = LightningDevKit.Bindings.ProbingError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ProbingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + public enum ProbingErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.ProbingError.ProbingErrorType, b: LightningDevKit.Bindings.ProbingError.ProbingErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbingError.ProbingErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.ProbingError + public class func initWithSending(a: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.ProbingError + public class func eq(a: LightningDevKit.Bindings.ProbingError, b: LightningDevKit.Bindings.ProbingError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.ProbeSendFailure? @objc deinit } } -public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ +public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] + public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_PaymentHashPaymentSecretZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ +public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? @objc deinit } } -public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public enum PaymentSendFailureType { + case ParameterError + case PathParameterError + case AllFailedResendSafe + case DuplicatePayment + case PartialFailure + public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType + public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func eq(a: LightningDevKit.Bindings.PaymentSendFailure, b: LightningDevKit.Bindings.PaymentSendFailure) -> Swift.Bool + public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? + public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? + public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? + public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? @objc deinit + @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] + public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } } } -public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) + public func asRouter() -> LightningDevKit.Bindings.Router public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ +public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Pong? + public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? @objc deinit } } -public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError +public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SignOrCreationErrorType { - case SignError - case CreationError - public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType - public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError - public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError - public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? + public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelConfig? @objc deinit } } -public typealias Balance = LightningDevKit.Bindings.Balance +public typealias IOError = LightningDevKit.Bindings.IOError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum BalanceType { - case ClaimableOnChannelClose - case ClaimableAwaitingConfirmations - case ContentiousClaimable - case MaybeTimeoutClaimableHTLC - case MaybePreimageClaimableHTLC - case CounterpartyRevokedOutputClaimable - public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType - public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance - public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool - public func claimableAmountSatoshis() -> Swift.UInt64 - public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? - public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? - public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? - public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? - public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? - public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? - @objc deinit - @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getConfirmationHeight() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getTimeoutHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentPreimage() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getClaimableHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getExpiryHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit + public enum IOError { + case NotFound + case PermissionDenied + case ConnectionRefused + case ConnectionReset + case ConnectionAborted + case NotConnected + case AddrInUse + case AddrNotAvailable + case BrokenPipe + case AlreadyExists + case WouldBlock + case InvalidInput + case InvalidData + case TimedOut + case WriteZero + case Interrupted + case Other + case UnexpectedEof + public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get } } } -public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ +public typealias Result_ClaimedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClaimedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClaimedHTLC) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WarningMessage? + public func getValue() -> LightningDevKit.Bindings.ClaimedHTLC? @objc deinit } } -public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ +public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxInitRbf? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_StringErrorZ = LightningDevKit.Bindings.Result_StringErrorZ +public typealias Result_PublicKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StringErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PublicKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StringErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> Swift.String? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel +public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + @objc deinit + } +} +public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMinFeeSatoshis() -> Swift.UInt64 + public func setMinFeeSatoshis(val: Swift.UInt64) + public func getMaxFeeSatoshis() -> Swift.UInt64 + public func setMaxFeeSatoshis(val: Swift.UInt64) + public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} extension LightningDevKit.Bindings.Currency : Swift.Equatable {} extension LightningDevKit.Bindings.Currency : Swift.Hashable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Equatable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Equatable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} -extension LightningDevKit.Bindings.Network : Swift.Equatable {} -extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Hashable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} extension LightningDevKit.Bindings.Level : Swift.Equatable {} extension LightningDevKit.Bindings.Level : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Hashable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} extension LightningDevKit.Bindings.Recipient : Swift.Equatable {} extension LightningDevKit.Bindings.Recipient : Swift.Hashable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} -extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} -extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Equatable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} +extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} +extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Equatable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Hashable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} -extension LightningDevKit.Bindings.IOError : Swift.Equatable {} -extension LightningDevKit.Bindings.IOError : Swift.Hashable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Equatable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Equatable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} +extension LightningDevKit.Bindings.Network : Swift.Equatable {} +extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Equatable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Hashable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.IOError : Swift.Equatable {} +extension LightningDevKit.Bindings.IOError : Swift.Hashable {} diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index fc80843d..4a072bb9 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 8e598330..0cb916b3 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -7,561 +7,1358 @@ import Foundation @_exported import LightningDevKit import Swift import _Concurrency -public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput +public typealias Result_SocketAddressDecodeErrorZ = LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias TxComplete = LightningDevKit.Bindings.TxComplete +public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool + public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public func intoTransaction() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler +public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) - public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + @objc deinit + } +} +public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? + public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) + public func getMessage() -> LightningDevKit.Bindings.UntrustedString + public func setMessage(val: LightningDevKit.Bindings.UntrustedString) + public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? @objc deinit } } -public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC +public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getFailureCode() -> Swift.UInt16 - public func setFailureCode(val: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) + public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider +public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] - open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner - open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - open func getDestinationScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? @objc deinit } } -public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getEnabled() -> Swift.Bool - public func setEnabled(val: Swift.Bool) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? - public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) - public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func getA() -> [Swift.UInt8] + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func channel() -> LightningDevKit.Bindings.ChannelInfo + public func htlcMaximumMsat() -> Swift.UInt64 + public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ +public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? @objc deinit } } -public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField +public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTlvFieldnum() -> Swift.UInt64 - public func setTlvFieldnum(val: Swift.UInt64) - public func getSuggestedValue() -> [Swift.UInt8]? - public func setSuggestedValue(val: [Swift.UInt8]?) - public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeId? @objc deinit } } -public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ +public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +public typealias Record = LightningDevKit.Bindings.Record extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OffersMessage? + public func getLevel() -> LightningDevKit.Bindings.Level + public func setLevel(val: LightningDevKit.Bindings.Level) + public func getArgs() -> Swift.String + public func setArgs(val: Swift.String) + public func getModulePath() -> Swift.String + public func setModulePath(val: Swift.String) + public func getFile() -> Swift.String + public func setFile(val: Swift.String) + public func getLine() -> Swift.UInt32 + public func setLine(val: Swift.UInt32) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ +public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxComplete? + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getOnionRoutingPacket() -> LightningDevKit.Bindings.Packet + public func setOnionRoutingPacket(val: LightningDevKit.Bindings.Packet) + public init(blindingPointArg: [Swift.UInt8], onionRoutingPacketArg: LightningDevKit.Bindings.Packet) + public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ +public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? + public func getValue() -> LightningDevKit.Bindings.MonitorEvent? @objc deinit } } -public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor +public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SpendableOutputDescriptorType { - case StaticOutput - case DelayedPaymentOutput - case StaticPaymentOutput - public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public enum EffectiveCapacityType { + case ExactLiquidity + case AdvertisedMaxHTLC + case Total + case Infinite + case HintMaxHTLC + case Unknown + public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType - public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? - public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? - public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType + public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity + public func asMsat() -> Swift.UInt64 + public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? + public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? + public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? + public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? @objc deinit - @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getOutput() -> LightningDevKit.Bindings.TxOut + public func getLiquidityMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCapacityMsat() -> Swift.UInt64 + public func getHtlcMaximumMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 @objc deinit } } } -public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ +public typealias PathFailure = LightningDevKit.Bindings.PathFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? + public enum PathFailureType { + case InitialSend + case OnPath + public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType + public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure + public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure + public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? + public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? @objc deinit + @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> LightningDevKit.Bindings.APIError + @objc deinit + } + @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? + @objc deinit + } } } -public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ +public typealias Result_SchnorrSignatureNoneZ = LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SchnorrSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ +public typealias Watch = LightningDevKit.Bindings.Watch extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public init() + open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] @objc deinit } } -public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ +public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InvoiceError? + public func getValue() -> LightningDevKit.Bindings.BigSize? @objc deinit } } -public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? @objc deinit } } -public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore +public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asLockableScore() -> LightningDevKit.Bindings.LockableScore - public func write() -> [Swift.UInt8] - public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore - public init(score: LightningDevKit.Bindings.Score) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? @objc deinit } } -public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice - public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func timestamp() -> Swift.UInt64 - public func durationSinceEpoch() -> Swift.UInt64 - public func paymentHash() -> [Swift.UInt8]? - public func payeePubKey() -> [Swift.UInt8]? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func recoverPayeePubKey() -> [Swift.UInt8] - public func expiresAt() -> Swift.UInt64? - public func expiryTime() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func durationUntilExpiry() -> Swift.UInt64 - public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 - public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool - public func minFinalCltvExpiryDelta() -> Swift.UInt64 - public func fallbackAddresses() -> [Swift.String] - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func routeHints() -> [LightningDevKit.Bindings.RouteHint] - public func currency() -> LightningDevKit.Bindings.Currency - public func amountMilliSatoshis() -> Swift.UInt64? - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func toStr() -> Swift.String - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RoutingFees? @objc deinit } } -public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs +public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(scorer: LightningDevKit.Bindings.Score, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias Currency = LightningDevKit.Bindings.Currency -extension LightningDevKit.Bindings { - public enum Currency { - case Bitcoin - case BitcoinTestnet - case Regtest - case Simnet - case Signet - public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? @objc deinit } } -public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ClosureReasonType { - case CounterpartyForceClosed - case HolderForceClosed - case CooperativeClosure - case CommitmentTxConfirmed - case FundingTimedOut - case ProcessingError - case DisconnectedPeer - case OutdatedChannelManager - case CounterpartyCoopClosedUnfundedChannel - public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool + public enum MaxDustHTLCExposureType { + case FixedLimitMsat + case FeeRateMultiplier + public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType - public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason - public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason - public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason - public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason - public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason - public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType + public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? - public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public func getValueAsFixedLimitMsat() -> Swift.UInt64? + public func getValueAsFeeRateMultiplier() -> Swift.UInt64? @objc deinit - @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } } } -public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter +public typealias Result_ThirtyTwoBytesNoneZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) - public func asRouter() -> LightningDevKit.Bindings.Router + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + @objc deinit + } +} +public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias ReceiveTlvs = LightningDevKit.Bindings.ReceiveTlvs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ReceiveTlvs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public init(paymentSecretArg: [Swift.UInt8], paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ +public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) + public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) + public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbingError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.ProbingError? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? + @objc deinit + } +} +public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOffered() -> Swift.Bool + public func setOffered(val: Swift.Bool) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getTransactionOutputIndex() -> Swift.UInt32? + public func setTransactionOutputIndex(val: Swift.UInt32?) + public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) + public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias BigSize = LightningDevKit.Bindings.BigSize +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(lockableScore: LightningDevKit.Bindings.LockableScore) + open func write() -> [Swift.UInt8] + public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + @objc deinit + } +} +public typealias Result_HTLCDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_HTLCDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSigned? + public func getValue() -> LightningDevKit.Bindings.HTLCDescriptor? @objc deinit } } -public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError +public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ extension LightningDevKit.Bindings { - public enum Bolt12SemanticError { - case AlreadyExpired - case UnsupportedChain - case UnexpectedChain - case MissingAmount - case InvalidAmount - case InsufficientAmount - case UnexpectedAmount - case UnsupportedCurrency - case UnknownRequiredFeatures - case UnexpectedFeatures - case MissingDescription - case MissingSigningPubkey - case InvalidSigningPubkey - case UnexpectedSigningPubkey - case MissingQuantity - case InvalidQuantity - case UnexpectedQuantity - case InvalidMetadata - case UnexpectedMetadata - case MissingPayerMetadata - case MissingPayerId - case MissingPaths - case InvalidPayInfo - case MissingCreationTime - case MissingPaymentHash - case MissingSignature - public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsType? + @objc deinit } } -public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures +public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + @objc deinit + } +} +public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures public func requiresUnknownBitsFrom() -> Swift.Bool public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setPaymentMetadataOptional() - public func setPaymentMetadataRequired() - public func supportsPaymentMetadata() -> Swift.Bool - public func requiresPaymentMetadata() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public enum RetryableSendFailure { + case PaymentExpired + case RouteNotFound + case DuplicatePayment + public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MessageSendEventType { - case SendAcceptChannel - case SendAcceptChannelV2 - case SendOpenChannel + public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + @objc deinit + } +} +public typealias Result_ThirtyTwoBytesPaymentSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + @objc deinit + } +} +public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice + public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func timestamp() -> Swift.UInt64 + public func durationSinceEpoch() -> Swift.UInt64 + public func paymentHash() -> [Swift.UInt8]? + public func payeePubKey() -> [Swift.UInt8]? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func recoverPayeePubKey() -> [Swift.UInt8] + public func expiresAt() -> Swift.UInt64? + public func expiryTime() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func durationUntilExpiry() -> Swift.UInt64 + public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 + public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool + public func minFinalCltvExpiryDelta() -> Swift.UInt64 + public func fallbackAddresses() -> [Swift.String] + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func routeHints() -> [LightningDevKit.Bindings.RouteHint] + public func currency() -> LightningDevKit.Bindings.Currency + public func amountMilliSatoshis() -> Swift.UInt64? + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public func toStr() -> Swift.String + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func signature() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? + public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) + public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? + public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) + public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? + public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) + public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? + public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) + public func getChainMonitor() -> LightningDevKit.Bindings.Watch? + public func setChainMonitor(val: LightningDevKit.Bindings.Watch) + public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? + public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) + public func getRouter() -> LightningDevKit.Bindings.Router? + public func setRouter(val: LightningDevKit.Bindings.Router) + public func getLogger() -> LightningDevKit.Bindings.Logger? + public func setLogger(val: LightningDevKit.Bindings.Logger) + public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig + public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Currency = LightningDevKit.Bindings.Currency +extension LightningDevKit.Bindings { + public enum Currency { + case Bitcoin + case BitcoinTestnet + case Regtest + case Simnet + case Signet + public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_ECDSASignatureNoneZ = LightningDevKit.Bindings.Result_ECDSASignatureNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ECDSASignatureNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum PaymentPurposeType { + case InvoicePayment + case SpontaneousPayment + public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType + public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? + public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentPreimage() -> [Swift.UInt8]? + public func getPaymentSecret() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + @objc deinit + } +} +public typealias ForwardNode = LightningDevKit.Bindings.ForwardNode +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ForwardNode : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTlvs() -> LightningDevKit.Bindings.ForwardTlvs + public func setTlvs(val: LightningDevKit.Bindings.ForwardTlvs) + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public init(tlvsArg: LightningDevKit.Bindings.ForwardTlvs, nodeIdArg: [Swift.UInt8], htlcMaximumMsatArg: Swift.UInt64) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsInit? + @objc deinit + } +} +public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty + public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? + public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getShortChannelId() -> Swift.UInt64? + public func setShortChannelId(val: Swift.UInt64?) + public func getOutboundScidAlias() -> Swift.UInt64? + public func setOutboundScidAlias(val: Swift.UInt64?) + public func getInboundScidAlias() -> Swift.UInt64? + public func setInboundScidAlias(val: Swift.UInt64?) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getUnspendablePunishmentReserve() -> Swift.UInt64? + public func setUnspendablePunishmentReserve(val: Swift.UInt64?) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getFeerateSatPer1000Weight() -> Swift.UInt32? + public func setFeerateSatPer1000Weight(val: Swift.UInt32?) + public func getBalanceMsat() -> Swift.UInt64 + public func setBalanceMsat(val: Swift.UInt64) + public func getOutboundCapacityMsat() -> Swift.UInt64 + public func setOutboundCapacityMsat(val: Swift.UInt64) + public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 + public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) + public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 + public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) + public func getInboundCapacityMsat() -> Swift.UInt64 + public func setInboundCapacityMsat(val: Swift.UInt64) + public func getConfirmationsRequired() -> Swift.UInt32? + public func setConfirmationsRequired(val: Swift.UInt32?) + public func getConfirmations() -> Swift.UInt32? + public func setConfirmations(val: Swift.UInt32?) + public func getForceCloseSpendDelay() -> Swift.UInt16? + public func setForceCloseSpendDelay(val: Swift.UInt16?) + public func getIsOutbound() -> Swift.Bool + public func setIsOutbound(val: Swift.Bool) + public func getIsChannelReady() -> Swift.Bool + public func setIsChannelReady(val: Swift.Bool) + public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? + public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) + public func getIsUsable() -> Swift.Bool + public func setIsUsable(val: Swift.Bool) + public func getIsPublic() -> Swift.Bool + public func setIsPublic(val: Swift.Bool) + public func getInboundHtlcMinimumMsat() -> Swift.UInt64? + public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getInboundHtlcMaximumMsat() -> Swift.UInt64? + public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) + public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? + public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) + public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) + public func getInboundPaymentScid() -> Swift.UInt64? + public func getOutboundPaymentScid() -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias TaggedHash = LightningDevKit.Bindings.TaggedHash +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TaggedHash : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + @objc deinit + } +} +public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.UtxoLookupError? + public func getValue() -> LightningDevKit.Bindings.TxOut? + @objc deinit + } +} +public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func builtTransaction() -> [Swift.UInt8] + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_ChannelDerivationParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ChannelDerivationParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDerivationParameters) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDerivationParameters? + @objc deinit + } +} +public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getHtlcSignatures() -> [[Swift.UInt8]] + public func setHtlcSignatures(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ProbeSendFailure = LightningDevKit.Bindings.ProbeSendFailure +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ProbeSendFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ProbeSendFailureType { + case RouteNotFound + case SendingFailed + public static func == (a: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType, b: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType + public class func initWithRouteNotFound() -> LightningDevKit.Bindings.ProbeSendFailure + public class func initWithSendingFailed(a: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.ProbeSendFailure + public class func eq(a: LightningDevKit.Bindings.ProbeSendFailure, b: LightningDevKit.Bindings.ProbeSendFailure) -> Swift.Bool + public func getValueAsSendingFailed() -> LightningDevKit.Bindings.PaymentSendFailure? + @objc deinit + } +} +public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MonitorEventType { + case HTLCEvent + case HolderForceClosed + case Completed + public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType + public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithHolderForceClosed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent + public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValueAsHolderForceClosed() -> LightningDevKit.Bindings.OutPoint? + public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? + @objc deinit + @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + public func getMonitorUpdateId() -> Swift.UInt64 + @objc deinit + } + } +} +public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingSigned? + @objc deinit + } +} +public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getBlockHash() -> [Swift.UInt8]? + public func setBlockHash(val: [Swift.UInt8]?) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getScriptPubkey() -> [Swift.UInt8] + public func setScriptPubkey(val: [Swift.UInt8]) + public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum OffersMessageType { + case InvoiceRequest + case Invoice + case InvoiceError + public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType + public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage + public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool + public func tlvType() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? + public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? + public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + @objc deinit + } +} +public typealias Input = LightningDevKit.Bindings.Input +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut + public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt + open func disconnectSocket() + open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool + open func hash() -> Swift.UInt64 + @objc deinit + } +} +public typealias PaymentRelay = LightningDevKit.Bindings.PaymentRelay +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentRelay : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public init(cltvExpiryDeltaArg: Swift.UInt16, feeProportionalMillionthsArg: Swift.UInt32, feeBaseMsatArg: Swift.UInt32) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +extension LightningDevKit.Bindings { + public enum SiPrefix { + case Milli + case Micro + case Nano + case Pico + public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.InMemorySigner? + @objc deinit + } +} +public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHop? + @objc deinit + } +} +public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getFlags() -> Swift.UInt8 + public func setFlags(val: Swift.UInt8) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Offer? + @objc deinit + } +} +public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MessageSendEventType { + case SendAcceptChannel + case SendAcceptChannelV2 + case SendOpenChannel case SendOpenChannelV2 case SendFundingCreated case SendFundingSigned @@ -612,7 +1409,7 @@ extension LightningDevKit.Bindings { public class func initWithSendTxSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxInitRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxAckRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.MessageSendEvent - public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.MessageSendEvent + public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendChannelReady(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendAnnouncementSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithUpdateHtlcs(nodeId: [Swift.UInt8], updates: LightningDevKit.Bindings.CommitmentUpdate) -> LightningDevKit.Bindings.MessageSendEvent @@ -765,7 +1562,7 @@ extension LightningDevKit.Bindings { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.TxAddInput + public func getMsg() -> LightningDevKit.Bindings.TxAbort @objc deinit } @_hasMissingDesignatedInitializers public class SendChannelReady : LightningDevKit.NativeTypeWrapper { @@ -854,553 +1651,257 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class HandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getAction() -> LightningDevKit.Bindings.ErrorAction - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter - @objc deinit - } - } -} -public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOk() -> Swift.Bool - @objc deinit - } -} -public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getRevocationPubkey() -> [Swift.UInt8] - public func setRevocationPubkey(val: [Swift.UInt8]) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? - @objc deinit - } -} -public typealias Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? - @objc deinit - } -} -public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) - open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] - open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] - open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func channelKeysId() -> [Swift.UInt8] - open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - @objc deinit - } -} -public typealias Result__u832APIErrorZ = LightningDevKit.Bindings.Result__u832APIErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result__u832APIErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.BlindedHop] - public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 - public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? - @objc deinit - } -} -public typealias BestBlock = LightningDevKit.Bindings.BestBlock -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool - public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock - public init(blockHash: [Swift.UInt8], height: Swift.UInt32) - public func blockHash() -> [Swift.UInt8] - public func height() -> Swift.UInt32 - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 - public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) - public func getLiquidityOffsetHalfLife() -> Swift.UInt64 - public func setLiquidityOffsetHalfLife(val: Swift.UInt64) - public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget -extension LightningDevKit.Bindings { - public enum ConfirmationTarget { - case MempoolMinimum - case Background - case Normal - case HighPriority - public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.BlindedPath? - @objc deinit - } -} -public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public func getSats() -> Swift.UInt64 - public func setSats(val: Swift.UInt64) - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getHtlcSignatures() -> [[Swift.UInt8]] - public func setHtlcSignatures(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FailureCode = LightningDevKit.Bindings.FailureCode -extension LightningDevKit.Bindings { - public enum FailureCode { - case TemporaryNodeFailure - case RequiredNodeFeatureMissing - case IncorrectOrUnknownPaymentDetails - public static func == (a: LightningDevKit.Bindings.FailureCode, b: LightningDevKit.Bindings.FailureCode) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + public func getNodeId() -> [Swift.UInt8] + public func getAction() -> LightningDevKit.Bindings.ErrorAction + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter + @objc deinit } } } -public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ +public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? + public func getValue() -> LightningDevKit.Bindings.Shutdown? @objc deinit } } -public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +public typealias ScoreUpdate = LightningDevKit.Bindings.ScoreUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreUpdate : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) - public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) - public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getInflightHtlcMsat() -> Swift.UInt64 - public func setInflightHtlcMsat(val: Swift.UInt64) - public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) - public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Input = LightningDevKit.Bindings.Input -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut - public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias TxOut = LightningDevKit.Bindings.TxOut -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) - public func getScriptPubkey() -> [Swift.UInt8] - public func getValue() -> Swift.UInt64 + open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) + open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func probeSuccessful(path: LightningDevKit.Bindings.Path) @objc deinit } } -public typealias KeysManager = LightningDevKit.Bindings.KeysManager +public typealias WalletSource = LightningDevKit.Bindings.WalletSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) - public func getNodeSecretKey() -> [Swift.UInt8] - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public func isOwned() -> Swift.Bool + public init() + open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + open func getChangeScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias BigSize = LightningDevKit.Bindings.BigSize +public typealias Offer = LightningDevKit.Bindings.Offer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool + public func isExpired() -> Swift.Bool + public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool + public func expectsQuantity() -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - @objc deinit - } -} -public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannel? - @objc deinit - } -} -public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PrivateRoute? - @objc deinit - } -} -public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? - @objc deinit - } -} -public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? - @objc deinit - } -} -public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim +public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError extension LightningDevKit.Bindings { - public enum HTLCClaim { - case OfferedTimeout - case OfferedPreimage - case AcceptedTimeout - case AcceptedPreimage - case Revocation - public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public enum Bolt12SemanticError { + case AlreadyExpired + case UnsupportedChain + case UnexpectedChain + case MissingAmount + case InvalidAmount + case InsufficientAmount + case UnexpectedAmount + case UnsupportedCurrency + case UnknownRequiredFeatures + case UnexpectedFeatures + case MissingDescription + case MissingSigningPubkey + case InvalidSigningPubkey + case UnexpectedSigningPubkey + case MissingQuantity + case InvalidQuantity + case UnexpectedQuantity + case InvalidMetadata + case UnexpectedMetadata + case MissingPayerMetadata + case MissingPayerId + case MissingPaths + case InvalidPayInfo + case MissingCreationTime + case MissingPaymentHash + case MissingSignature + public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Score = LightningDevKit.Bindings.Score +public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 - open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) - open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func probeSuccessful(path: LightningDevKit.Bindings.Path) - open func write() -> [Swift.UInt8] + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getPerCommitmentNumber() -> Swift.UInt64 + public func setPerCommitmentNumber(val: Swift.UInt64) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment + public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) + public func getPreimage() -> [Swift.UInt8]? + public func setPreimage(val: [Swift.UInt8]?) + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public func outpoint() -> LightningDevKit.Bindings.OutPoint + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func txOutput() -> LightningDevKit.Bindings.TxOut + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Fallback = LightningDevKit.Bindings.Fallback +public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum FallbackType { - case SegWitProgram - case PubKeyHash - case ScriptHash - public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public enum Bech32ErrorType { + case MissingSeparator + case InvalidChecksum + case InvalidLength + case InvalidChar + case InvalidData + case InvalidPadding + case MixedCase + public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType - public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool - public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? - public func getValueAsPubKeyHash() -> [Swift.UInt8]? - public func getValueAsScriptHash() -> [Swift.UInt8]? + public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType + public func getValueAsInvalidChar() -> Swift.UInt32? + public func getValueAsInvalidData() -> Swift.UInt8? @objc deinit - @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getVersion() -> Swift.UInt8 - public func getProgram() -> [Swift.UInt8] - @objc deinit - } } } -public typealias Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ +public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? - public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? + public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getHolderSelectedContestDelay() -> Swift.UInt16 + public func setHolderSelectedContestDelay(val: Swift.UInt16) + public func getIsOutboundFromHolder() -> Swift.Bool + public func setIsOutboundFromHolder(val: Swift.Bool) + public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) + public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool + public func isPopulated() -> Swift.Bool + public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature +public typealias Amount = LightningDevKit.Bindings.Amount extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MultiThreadedScoreLock = LightningDevKit.Bindings.MultiThreadedScoreLock +public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedScoreLock : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAlias? @objc deinit } } -public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +public typealias Sleeper = LightningDevKit.Bindings.Sleeper extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public init(futures: [LightningDevKit.Bindings.Future]) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } @@ -1416,1046 +1917,1181 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool - public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func intoInner() -> LightningDevKit.Bindings.RouteHint - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias GossipSync = LightningDevKit.Bindings.GossipSync -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum GossipSyncType { - case P2P - case Rapid - case None - public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType - public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func none() -> LightningDevKit.Bindings.GossipSync - public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? - public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? - @objc deinit - } -} -public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeSignature() -> [Swift.UInt8] - public func setNodeSignature(val: [Swift.UInt8]) - public func getBitcoinSignature() -> [Swift.UInt8] - public func setBitcoinSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError -extension LightningDevKit.Bindings { - public enum UtxoLookupError { - case UnknownChain - case UnknownTx - public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Refund? - @objc deinit - } -} -public typealias Network = LightningDevKit.Bindings.Network +public typealias SocketAddressParseError = LightningDevKit.Bindings.SocketAddressParseError extension LightningDevKit.Bindings { - public enum Network { - case Bitcoin - case Testnet - case Regtest - case Signet - public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public enum SocketAddressParseError { + case SocketAddrParse + case InvalidInput + case InvalidPort + case InvalidOnionV3 + public static func == (a: LightningDevKit.Bindings.SocketAddressParseError, b: LightningDevKit.Bindings.SocketAddressParseError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Ping = LightningDevKit.Bindings.Ping +public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPonglen() -> Swift.UInt16 - public func setPonglen(val: Swift.UInt16) - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getLatestUpdateId() -> Swift.UInt64 + public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) + public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] + public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) + public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] + public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func initialCounterpartyCommitmentTx() -> LightningDevKit.Bindings.CommitmentTransaction? + public func counterpartyCommitmentTxsFromUpdate(update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> [LightningDevKit.Bindings.CommitmentTransaction] + public func signToLocalJusticeTx(justiceTx: [Swift.UInt8], inputIdx: Swift.UInt, value: Swift.UInt64, commitmentNumber: Swift.UInt64) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func getCounterpartyNodeId() -> [Swift.UInt8]? + public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] + public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func getSpendableOutputs(tx: [Swift.UInt8], confirmationHeight: Swift.UInt32) -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentIdPaymentErrorZ = LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentIdPaymentErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ +public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelDetails? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias Result_PayeePubKeyErrorZ = LightningDevKit.Bindings.Result_PayeePubKeyErrorZ +public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PayeePubKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? @objc deinit } } -public typealias Route = LightningDevKit.Bindings.Route +public typealias Payee = LightningDevKit.Bindings.Payee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaths() -> [LightningDevKit.Bindings.Path] - public func setPaths(val: [LightningDevKit.Bindings.Path]) - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters? - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public init(pathsArg: [LightningDevKit.Bindings.Path], paymentParamsArg: LightningDevKit.Bindings.PaymentParameters) + public enum PayeeType { + case Blinded + case Clear + public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType + public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee + public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool - public func getTotalFees() -> Swift.UInt64 - public func getTotalAmount() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool + public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? + public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? @objc deinit + @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] + public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] + public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func getFinalCltvExpiryDelta() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ +public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Ping? @objc deinit } } -public typealias Future = LightningDevKit.Bindings.Future +public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters +public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBasePenaltyMsat() -> Swift.UInt64 - public func setBasePenaltyMsat(val: Swift.UInt64) - public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getAntiProbingPenaltyMsat() -> Swift.UInt64 - public func setAntiProbingPenaltyMsat(val: Swift.UInt64) - public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 - public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters - public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) - public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) - public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) - public func clearManualPenalties() + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public func commitmentNumber() -> Swift.UInt64 + public func toBroadcasterValueSat() -> Swift.UInt64 + public func toCountersignatoryValueSat() -> Swift.UInt64 + public func feeratePerKw() -> Swift.UInt32 + public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction + public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ +public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) + public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 + public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ +public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? + public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func intoInner() -> [Swift.UInt8] + public func asLegacyPubkey() -> [Swift.UInt8]? + public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Level = LightningDevKit.Bindings.Level -extension LightningDevKit.Bindings { - public enum Level { - case Gossip - case Trace - case Debug - case Info - case Warn - case Error - public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } +@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { + public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + @objc deinit + open var hashValue: Swift.Int { + get } } -public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? - @objc deinit +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { + public func activate() -> Self + public func activateOnce() -> Self + @objc deinit +} +@_hasMissingDesignatedInitializers public class Bindings { + public enum PrintSeverity : Swift.UInt { + case DEBUG + case WARNING + case ERROR + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } } + public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) + public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) + public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer + public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper + public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String + public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func ldkGetCompiledVersion() -> Swift.String + public class func ldkCBindingsGetCompiledVersion() -> Swift.String + public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool + public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] + public class func readChannelMonitors(kvStore: LightningDevKit.Bindings.KVStore, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures + public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func parseOnionAddress(host: Swift.String, port: Swift.UInt16) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] + public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] + public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCounterpartyPaymentScript(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, paymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] + public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] + public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 + public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.ScoreLookUp, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func createOnionMessage(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func preflightProbeInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func preflightProbeZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsat: Swift.UInt64, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") + public class func readThirtyTwoBytesChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func readThirtyTwoBytesChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + @objc deinit } -public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func metadata() -> [Swift.UInt8] - public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64? - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func quantity() -> Swift.UInt64? - public func payerId() -> [Swift.UInt8] - public func payerNote() -> LightningDevKit.Bindings.PrintableString? - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } +@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { + public init() + public func getPointer() -> Swift.UnsafeMutableRawPointer + @objc deinit } -public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ +public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InitFeatures? + public func getValue() -> LightningDevKit.Bindings.Pong? @objc deinit } } -public typealias Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ +public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], Swift.UInt)? - @objc deinit - } -} -public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func broadcastTransactions(txs: [[Swift.UInt8]]) - @objc deinit - } -} -public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getHolderSelectedContestDelay() -> Swift.UInt16 - public func setHolderSelectedContestDelay(val: Swift.UInt16) - public func getIsOutboundFromHolder() -> Swift.Bool - public func setIsOutboundFromHolder(val: Swift.Bool) - public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? - public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) - public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? - public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool - public func isPopulated() -> Swift.Bool - public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.Description? @objc deinit } } -public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler +public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? - open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func processingQueueHigh() -> Swift.Bool - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? @objc deinit } } -public typealias Router = LightningDevKit.Bindings.Router +public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? @objc deinit } } -public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK +public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getPerCommitmentSecret() -> [Swift.UInt8]? - public func setPerCommitmentSecret(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getFailureCode() -> Swift.UInt16 + public func setFailureCode(val: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ +public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? @objc deinit } } -public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? - public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) - public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? - public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) - public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? - public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) - public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? - public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) - public func getChainMonitor() -> LightningDevKit.Bindings.Watch? - public func setChainMonitor(val: LightningDevKit.Bindings.Watch) - public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? - public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) - public func getRouter() -> LightningDevKit.Bindings.Router? - public func setRouter(val: LightningDevKit.Bindings.Router) - public func getLogger() -> LightningDevKit.Bindings.Logger? - public func setLogger(val: LightningDevKit.Bindings.Logger) - public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig - public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit } } -public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures +public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public init() + open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage @objc deinit } } -public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty +public typealias Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func setNodeId(val: [Swift.UInt8]) - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getUnspendablePunishmentReserve() -> Swift.UInt64 - public func setUnspendablePunishmentReserve(val: Swift.UInt64) - public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? - public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) - public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? - public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? - public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) - public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? @objc deinit } } -public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + public func getValue() -> LightningDevKit.Bindings.UntrustedString? @objc deinit } } -public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +public typealias Level = LightningDevKit.Bindings.Level extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InMemorySigner? - @objc deinit + public enum Level { + case Gossip + case Trace + case Debug + case Info + case Warn + case Error + public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ +public typealias Result_PaymentConstraintsDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentConstraintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentConstraints) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? + public func getValue() -> LightningDevKit.Bindings.PaymentConstraints? @objc deinit } } -public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction +public typealias Retry = LightningDevKit.Bindings.Retry extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] - public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public enum RetryType { + case Attempts + case Timeout + public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType + public class func initWithAttempts(a: Swift.UInt32) -> LightningDevKit.Bindings.Retry + public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry + public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool + public func hash() -> Swift.UInt64 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public func getValueAsAttempts() -> Swift.UInt32? + public func getValueAsTimeout() -> Swift.UInt64? @objc deinit } } -public typealias PrintableString = LightningDevKit.Bindings.PrintableString +public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? @objc deinit } } -public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(lockableScore: LightningDevKit.Bindings.LockableScore) - open func write() -> [Swift.UInt8] - public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getSelectedContestDelay() -> Swift.UInt16 + public func setSelectedContestDelay(val: Swift.UInt16) + public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NetAddressDecodeErrorZ = LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ +public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetAddress) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetAddress? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture +public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeFeatures? @objc deinit } } -public typealias Persister = LightningDevKit.Bindings.Persister +public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneErrorZ + public enum Bolt11ParseErrorType { + case Bech32Error + case ParseAmountError + case MalformedSignature + case BadPrefix + case UnknownCurrency + case UnknownSiPrefix + case MalformedHRP + case TooShortDataPart + case UnexpectedEndOfTaggedFields + case DescriptionDecodeError + case PaddingError + case IntegerOverflowError + case InvalidSegWitProgramLength + case InvalidPubKeyHashLength + case InvalidScriptHashLength + case InvalidRecoveryId + case InvalidSliceLength + case Skip + public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType + public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError + public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? + public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsInvalidSliceLength() -> Swift.String? @objc deinit } } -public typealias Filter = LightningDevKit.Bindings.Filter +public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) - open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? @objc deinit } } -public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart +public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp - public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) - public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func asLockableScore() -> LightningDevKit.Bindings.LockableScore + public func write() -> [Swift.UInt8] + public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore + public init(score: LightningDevKit.Bindings.Score) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Listen = LightningDevKit.Bindings.Listen +public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) - open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(scriptArg: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ +public typealias Result_ThirtyTwoBytesRetryableSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady +public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public func getShortChannelIdAlias() -> Swift.UInt64? - public func setShortChannelIdAlias(val: Swift.UInt64?) - public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getNetworks() -> [[Swift.UInt8]]? + public func setNetworks(val: [[Swift.UInt8]]?) + public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.SocketAddress? + public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.SocketAddress?) + public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.SocketAddress?) + public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError -extension LightningDevKit.Bindings { - public enum Bolt11SemanticError { - case NoPaymentHash - case MultiplePaymentHashes - case NoDescription - case MultipleDescriptions - case NoPaymentSecret - case MultiplePaymentSecrets - case InvalidFeatures - case InvalidRecoveryId - case InvalidSignature - case ImpreciseAmount - public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteParameters? + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getInflightHtlcMsat() -> Swift.UInt64 + public func setInflightHtlcMsat(val: Swift.UInt64) + public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity + public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) + public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ +public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> Swift.Bool? + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? + open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func processingQueueHigh() -> Swift.Bool + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ +public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? + public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? @objc deinit } } -public typealias Logger = LightningDevKit.Bindings.Logger +public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func log(record: LightningDevKit.Bindings.Record) + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannel? @objc deinit } } -public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +public typealias Event = LightningDevKit.Bindings.Event extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OffersMessageType { - case InvoiceRequest - case Invoice - case InvoiceError - public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public enum EventType { + case FundingGenerationReady + case PaymentClaimable + case PaymentClaimed + case PaymentSent + case PaymentFailed + case PaymentPathSuccessful + case PaymentPathFailed + case ProbeSuccessful + case ProbeFailed + case PendingHTLCsForwardable + case HTLCIntercepted + case SpendableOutputs + case PaymentForwarded + case ChannelPending + case ChannelReady + case ChannelClosed + case DiscardFunding + case OpenChannelRequest + case HTLCHandlingFailed + case BumpTransaction + public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType - public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage - public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool - public func tlvType() -> Swift.UInt64 + public func getValueType() -> LightningDevKit.Bindings.Event.EventType + public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8]?, viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, htlcs: [LightningDevKit.Bindings.ClaimedHTLC], senderIntendedTotalMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor], channelId: [Swift.UInt8]?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8]?, nextChannelId: [Swift.UInt8]?, feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8]?, counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event + public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason, counterpartyNodeId: [Swift.UInt8], channelCapacitySats: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event + public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event + public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? - public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? - public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? + public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? + public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? + public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? + public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? + public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? + public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? + public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? + public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? + public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? + public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? + public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? + public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? + public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? + public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? + public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? + public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? + public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? + public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? + public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? @objc deinit - } -} -public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentPurposeType { - case InvoicePayment - case SpontaneousPayment - public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelValueSatoshis() -> Swift.UInt64 + public func getOutputScript() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields + public func getAmountMsat() -> Swift.UInt64 + public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getViaChannelId() -> [Swift.UInt8]? + public func getViaUserChannelId() -> [Swift.UInt8]? + public func getClaimDeadline() -> Swift.UInt32? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getAmountMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getHtlcs() -> [LightningDevKit.Bindings.ClaimedHTLC] + public func getSenderIntendedTotalMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentPreimage() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getFeePaidMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentFailedPermanently() -> Swift.Bool + public func getFailure() -> LightningDevKit.Bindings.PathFailure + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTimeForwardable() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getInterceptId() -> [Swift.UInt8] + public func getRequestedNextHopScid() -> Swift.UInt64 + public func getPaymentHash() -> [Swift.UInt8] + public func getInboundAmountMsat() -> Swift.UInt64 + public func getExpectedOutboundAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getChannelId() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8]? + public func getNextChannelId() -> [Swift.UInt8]? + public func getFeeEarnedMsat() -> Swift.UInt64? + public func getClaimFromOnchainTx() -> Swift.Bool + public func getOutboundAmountForwardedMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getFormerTemporaryChannelId() -> [Swift.UInt8]? + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.ClosureReason + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelCapacitySats() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getTransaction() -> [Swift.UInt8] + @objc deinit } - public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType - public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? - public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? - @objc deinit - @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentPreimage() -> [Swift.UInt8]? - public func getPaymentSecret() -> [Swift.UInt8] + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingSatoshis() -> Swift.UInt64 + public func getPushMsat() -> Swift.UInt64 + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8] + public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination @objc deinit } } } -public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ +public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? + public func getValue() -> LightningDevKit.Bindings.InitFeatures? @objc deinit } } -public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync +public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func isInitialSyncComplete() -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit + public enum Option_NoneZ { + case Some + case None + public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ +public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFee? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getPerCommitmentSecret() -> [Swift.UInt8]? + public func setPerCommitmentSecret(val: [Swift.UInt8]) + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SendError = LightningDevKit.Bindings.SendError +public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SendErrorType { - case Secp256k1 - case TooBigPacket - case TooFewBlindedHops - case InvalidFirstHop - case InvalidMessage - case BufferFull - case GetNodeIdFailed - case BlindedPathAdvanceFailed - public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType - public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError - public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError - public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError - public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError - public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError - public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError - public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool - public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getNodeId() -> LightningDevKit.Bindings.NodeId + public func setNodeId(val: LightningDevKit.Bindings.NodeId) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAddresses() -> [LightningDevKit.Bindings.SocketAddress] + public func setAddresses(val: [LightningDevKit.Bindings.SocketAddress]) + public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentHashRetryableSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ +public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) - public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 - public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SignOrCreationError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +public typealias LockableScore = LightningDevKit.Bindings.LockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public init() + open func readLock() -> LightningDevKit.Bindings.ScoreLookUp + open func writeLock() -> LightningDevKit.Bindings.ScoreUpdate @objc deinit } } -public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage +public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UnsignedGossipMessageType { - case ChannelAnnouncement - case ChannelUpdate - case NodeAnnouncement - public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType - public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getNodeOne() -> LightningDevKit.Bindings.NodeId + public func setNodeOne(val: LightningDevKit.Bindings.NodeId) + public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getNodeTwo() -> LightningDevKit.Bindings.NodeId + public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) + public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getCapacitySats() -> Swift.UInt64? + public func setCapacitySats(val: Swift.UInt64?) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool + public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? public func write() -> [Swift.UInt8] - public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? - public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? - public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Destination = LightningDevKit.Bindings.Destination +public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DestinationType { - case Node - case BlindedPath - public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType - public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination - public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination - public func getValueAsNode() -> [Swift.UInt8]? - public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? + public init() + open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + @objc deinit + } +} +public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ +public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? @objc deinit } } -public typealias Result_SharedSecretNoneZ = LightningDevKit.Bindings.Result_SharedSecretNoneZ +public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SharedSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SharedSecretNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } @@ -2472,576 +3108,592 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination +public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum HTLCDestinationType { - case NextHopChannel - case UnknownNextHop - case InvalidForward - case FailedPayment - public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + @objc deinit + } +} +public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ClosureReasonType { + case CounterpartyForceClosed + case HolderForceClosed + case CooperativeClosure + case CommitmentTxConfirmed + case FundingTimedOut + case ProcessingError + case DisconnectedPeer + case OutdatedChannelManager + case CounterpartyCoopClosedUnfundedChannel + case FundingBatchClosure + public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType - public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType + public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason + public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason + public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason + public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason + public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingBatchClosure() -> LightningDevKit.Bindings.ClosureReason + public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? - public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? - public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? - public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? + public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? @objc deinit - @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 + public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString @objc deinit } - @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String @objc deinit } } } -public typealias EventHandler = LightningDevKit.Bindings.EventHandler -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func handleEvent(event: LightningDevKit.Bindings.Event) - @objc deinit - } -} -public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func builtTransaction() -> [Swift.UInt8] - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ +public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.GraphSyncError? - public func getValue() -> Swift.UInt32? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAckRbf? @objc deinit } } -public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ +public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? - @objc deinit - } -} -public typealias EntropySource = LightningDevKit.Bindings.EntropySource -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func getSecureRandomBytes() -> [Swift.UInt8] - @objc deinit - } -} -public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum MaxDustHTLCExposureType { - case FixedLimitMsat - case FeeRateMultiplier - public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType - public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public func getValueAsFixedLimitMsat() -> Swift.UInt64? - public func getValueAsFeeRateMultiplier() -> Swift.UInt64? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? @objc deinit } } -public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError +public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bolt11ParseErrorType { - case Bech32Error - case ParseAmountError - case MalformedSignature - case BadPrefix - case UnknownCurrency - case UnknownSiPrefix - case MalformedHRP - case TooShortDataPart - case UnexpectedEndOfTaggedFields - case DescriptionDecodeError - case PaddingError - case IntegerOverflowError - case InvalidSegWitProgramLength - case InvalidPubKeyHashLength - case InvalidScriptHashLength - case InvalidRecoveryId - case InvalidSliceLength - case Skip - public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType - public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError - public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? - public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsInvalidSliceLength() -> Swift.String? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ +public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? + public func getValue() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Amount = LightningDevKit.Bindings.Amount +public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited + public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) + public func getPrevtxOut() -> Swift.UInt32 + public func setPrevtxOut(val: Swift.UInt32) + public func getSequence() -> Swift.UInt32 + public func setSequence(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.UtxoLookupError? - public func getValue() -> LightningDevKit.Bindings.TxOut? + public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 + public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) + public func getLiquidityOffsetHalfLife() -> Swift.UInt64 + public func setLiquidityOffsetHalfLife(val: Swift.UInt64) + public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath +public typealias BestBlock = LightningDevKit.Bindings.BestBlock extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool - public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool + public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock + public init(blockHash: [Swift.UInt8], height: Swift.UInt32) + public func blockHash() -> [Swift.UInt8] + public func height() -> Swift.UInt32 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator +public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - public class func getLDKSwiftBindingsSerializationHash() -> Swift.String - public class func getLDKSwiftBindingsVersion() -> Swift.String - public class func getLDKSwiftBindingsCommitHash() -> Swift.String -} -public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? @objc deinit } } -public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ +public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MonitorEvent? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? @objc deinit } } -public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func tlvType() -> Swift.UInt64 - open func write() -> [Swift.UInt8] + open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) @objc deinit } } -public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC +public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) + open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner @objc deinit } } -public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +public typealias Balance = LightningDevKit.Bindings.Balance extension LightningDevKit.Bindings { - public enum SiPrefix { - case Milli - case Micro - case Nano - case Pico - public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum BalanceType { + case ClaimableOnChannelClose + case ClaimableAwaitingConfirmations + case ContentiousClaimable + case MaybeTimeoutClaimableHTLC + case MaybePreimageClaimableHTLC + case CounterpartyRevokedOutputClaimable + public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType + public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance + public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool + public func claimableAmountSatoshis() -> Swift.UInt64 + public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? + public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? + public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? + public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? + public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? + public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? + @objc deinit + @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getConfirmationHeight() -> Swift.UInt32 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getTimeoutHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentPreimage() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getClaimableHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getExpiryHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit } } } -public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - @objc deinit - } -} -public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? - public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) - public func getMessage() -> LightningDevKit.Bindings.UntrustedString - public func setMessage(val: LightningDevKit.Bindings.UntrustedString) - public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) + public func getGenesisHash() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) + public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph + public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? + public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) + public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func channelFailedPermanent(shortChannelId: Swift.UInt64) + public func nodeFailedPermanent(nodeId: [Swift.UInt8]) + public func removeStaleChannelsAndTracking() + public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) + public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader +public typealias Confirm = LightningDevKit.Bindings.Confirm extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - @objc deinit - } -} -public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.APIError? + open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func transactionUnconfirmed(txid: [Swift.UInt8]?) + open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) + open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] @objc deinit } } -public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error +public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason extension LightningDevKit.Bindings { - public enum Secp256k1Error { - case IncorrectSignature - case InvalidMessage - case InvalidPublicKey - case InvalidSignature - case InvalidSecretKey - case InvalidSharedSecret - case InvalidRecoveryId - case InvalidTweak - case NotEnoughMemory - case InvalidPublicKeySum - case InvalidParityValue - public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public enum PaymentFailureReason { + case RecipientRejected + case UserAbandoned + case RetriesExhausted + case PaymentExpired + case RouteNotFound + case UnexpectedError + public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput +public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? + public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) + public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? + public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) + public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? + public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) + public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? + public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) + public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentParameters? - @objc deinit - } -} -public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ +public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddOutput? + public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) + public func getPhantomScid() -> Swift.UInt64 + public func setPhantomScid(val: Swift.UInt64) + public func getRealNodePubkey() -> [Swift.UInt8] + public func setRealNodePubkey(val: [Swift.UInt8]) + public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ +public typealias Pong = LightningDevKit.Bindings.Pong extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ScriptNoneZ = LightningDevKit.Bindings.Result_ScriptNoneZ +public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ScriptNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) + public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ +public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAbort? + public func getValue() -> LightningDevKit.Bindings.InvoiceError? @objc deinit } } -public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ +public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelConfig? + public func getValue() -> LightningDevKit.Bindings.ChannelReady? @objc deinit } } -public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction +public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func txid() -> [Swift.UInt8] - public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction - public func keys() -> LightningDevKit.Bindings.TxCreationKeys - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOwned() -> Swift.Bool + public enum UnsignedGossipMessageType { + case ChannelAnnouncement + case ChannelUpdate + case NodeAnnouncement + public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType + public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func write() -> [Swift.UInt8] + public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? @objc deinit } } -public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [LightningDevKit.Bindings.Utxo]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAddOutput? @objc deinit } } -public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ +public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeId? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction +public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public func commitmentNumber() -> Swift.UInt64 - public func toBroadcasterValueSat() -> Swift.UInt64 - public func toCountersignatoryValueSat() -> Swift.UInt64 - public func feeratePerKw() -> Swift.UInt32 - public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction - public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } @@ -3064,598 +3716,781 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ +public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? - @objc deinit - } -} -public typealias PeerManager = LightningDevKit.Bindings.PeerManager -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") - public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) - public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.NetAddress?)] - public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func processEvents() - public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) - public func disconnectByNodeId(nodeId: [Swift.UInt8]) - public func disconnectAllPeers() - public func timerTickOccurred() - public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.NetAddress]) - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxComplete? @objc deinit } } -public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ +public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError +public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum GraphSyncErrorType { - case DecodeError - case LightningError - public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType - public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError - public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError - public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? - public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getNextLocalCommitmentNumber() -> Swift.UInt64 + public func setNextLocalCommitmentNumber(val: Swift.UInt64) + public func getNextRemoteCommitmentNumber() -> Swift.UInt64 + public func setNextRemoteCommitmentNumber(val: Swift.UInt64) + public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? + public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) + public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] + public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) + public func getNextFundingTxid() -> [Swift.UInt8]? + public func setNextFundingTxid(val: [Swift.UInt8]?) + public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo +public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? @objc deinit } } -public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +public typealias Result_CVec_u8ZNoneZ = LightningDevKit.Bindings.Result_CVec_u8ZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd +public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFullInformation() -> Swift.Bool - public func setFullInformation(val: Swift.Bool) - public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func getNetwork() -> LightningDevKit.Bindings.Network + public func setNetwork(val: LightningDevKit.Bindings.Network) + public func getBestBlock() -> LightningDevKit.Bindings.BestBlock + public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) + public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ +public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? + public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? @objc deinit } } -public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ +public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Shutdown? + public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool + public func endBlocknum() -> Swift.UInt32 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage +public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func getPayee() -> LightningDevKit.Bindings.Payee + public func setPayee(val: LightningDevKit.Bindings.Payee) + public func getExpiryTime() -> Swift.UInt64? + public func setExpiryTime(val: Swift.UInt64?) + public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 + public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) + public func getMaxPathCount() -> Swift.UInt8 + public func setMaxPathCount(val: Swift.UInt8) + public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 + public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) + public func getPreviouslyFailedChannels() -> [Swift.UInt64] + public func setPreviouslyFailedChannels(val: [Swift.UInt64]) + public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters + public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBlinded(blindedRouteHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)]) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript +public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(scriptArg: [Swift.UInt8]) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) + public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler + public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync +public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) - public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) - public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + @objc deinit + } +} +public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement +public typealias Recipient = LightningDevKit.Bindings.Recipient extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public enum Recipient { + case Node + case PhantomNode + public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Hostname = LightningDevKit.Bindings.Hostname +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getNodeId() -> LightningDevKit.Bindings.NodeId - public func setNodeId(val: LightningDevKit.Bindings.NodeId) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAddresses() -> [LightningDevKit.Bindings.NetAddress] - public func setAddresses(val: [LightningDevKit.Bindings.NetAddress]) - public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool + public func len() -> Swift.UInt8 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString +public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) + open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) + open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) + open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) + open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) + open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) + open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) + open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) + open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) + open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) + open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) + open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) + open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) + open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) + open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) + open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) + open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) + open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) + open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) + open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) + open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) + open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) + open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) + open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) + open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) + open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) + open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) + open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + open func getGenesisHashes() -> [[Swift.UInt8]]? + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Sleeper = LightningDevKit.Bindings.Sleeper +public typealias ClaimedHTLC = LightningDevKit.Bindings.ClaimedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClaimedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public init(futures: [LightningDevKit.Bindings.Future]) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getValueMsat() -> Swift.UInt64 + public func setValueMsat(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], userChannelIdArg: [Swift.UInt8], cltvExpiryArg: Swift.UInt32, valueMsatArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClaimedHTLC, b: LightningDevKit.Bindings.ClaimedHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? + public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? @objc deinit } } -public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor +public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeId1() -> LightningDevKit.Bindings.NodeId + public func setNodeId1(val: LightningDevKit.Bindings.NodeId) + public func getNodeId2() -> LightningDevKit.Bindings.NodeId + public func setNodeId2(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(featuresArg: LightningDevKit.Bindings.ChannelFeatures, chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeId1Arg: LightningDevKit.Bindings.NodeId, nodeId2Arg: LightningDevKit.Bindings.NodeId, bitcoinKey1Arg: LightningDevKit.Bindings.NodeId, bitcoinKey2Arg: LightningDevKit.Bindings.NodeId, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup +public typealias UserConfig = LightningDevKit.Bindings.UserConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult + public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) + public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits + public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) + public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig + public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) + public func getAcceptForwardsToPrivChannels() -> Swift.Bool + public func setAcceptForwardsToPrivChannels(val: Swift.Bool) + public func getAcceptInboundChannels() -> Swift.Bool + public func setAcceptInboundChannels(val: Swift.Bool) + public func getManuallyAcceptInboundChannels() -> Swift.Bool + public func setManuallyAcceptInboundChannels(val: Swift.Bool) + public func getAcceptInterceptHtlcs() -> Swift.Bool + public func setAcceptInterceptHtlcs(val: Swift.Bool) + public func getAcceptMppKeysend() -> Swift.Bool + public func setAcceptMppKeysend(val: Swift.Bool) + public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstTimestamp() -> Swift.UInt32 - public func setFirstTimestamp(val: Swift.UInt32) - public func getTimestampRange() -> Swift.UInt32 - public func setTimestampRange(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setPaymentMetadataOptional() + public func setPaymentMetadataRequired() + public func supportsPaymentMetadata() -> Swift.Bool + public func requiresPaymentMetadata() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp +public typealias Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool - public func hash() -> Swift.UInt64 - public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public func asUnixTimestamp() -> Swift.UInt64 - public func asDurationSinceEpoch() -> Swift.UInt64 - public func asTime() -> Swift.UInt64 - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? @objc deinit } } -public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures +public typealias PeerManager = LightningDevKit.Bindings.PeerManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getTxHash() -> [Swift.UInt8]? - public func setTxHash(val: [Swift.UInt8]) - public func getWitnesses() -> [[Swift.UInt8]] - public func setWitnesses(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") + public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) + public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.SocketAddress?)] + public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public func processEvents() + public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) + public func disconnectByNodeId(nodeId: [Swift.UInt8]) + public func disconnectAllPeers() + public func timerTickOccurred() + public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.SocketAddress]) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf +public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned +public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeSatoshis() -> Swift.UInt64 - public func setFeeSatoshis(val: Swift.UInt64) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? - public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) - public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) - public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public enum NetworkUpdateType { + case ChannelUpdateMessage + case ChannelFailure + case NodeFailure + public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType + public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? + public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? + public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getShortChannelId() -> Swift.UInt64 + public func isPermanent() -> Swift.Bool + @objc deinit + } + @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func isPermanent() -> Swift.Bool + @objc deinit + } } } -public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets +public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func getMinSeenSecret() -> Swift.UInt64 - public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func getTlvFieldnum() -> Swift.UInt64 + public func setTlvFieldnum(val: Swift.UInt64) + public func getSuggestedValue() -> [Swift.UInt8]? + public func setSuggestedValue(val: [Swift.UInt8]?) + public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Path = LightningDevKit.Bindings.Path +public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.RouteHop] - public func setHops(val: [LightningDevKit.Bindings.RouteHop]) - public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? - public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) - public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool - public func feeMsat() -> Swift.UInt64 - public func finalValueMsat() -> Swift.UInt64 - public func finalCltvExpiryDelta() -> Swift.UInt32? + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getOurToSelfDelay() -> Swift.UInt16 + public func setOurToSelfDelay(val: Swift.UInt16) + public func getOurHtlcMinimumMsat() -> Swift.UInt64 + public func setOurHtlcMinimumMsat(val: Swift.UInt64) + public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 + public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) + public func getNegotiateScidPrivacy() -> Swift.Bool + public func setNegotiateScidPrivacy(val: Swift.Bool) + public func getAnnouncedChannel() -> Swift.Bool + public func setAnnouncedChannel(val: Swift.Bool) + public func getCommitUpfrontShutdownPubkey() -> Swift.Bool + public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) + public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 + public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) + public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) + public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 + public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) + public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ +public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? + public func getValue() -> LightningDevKit.Bindings.ClosureReason? @objc deinit } } -public typealias Utxo = LightningDevKit.Bindings.Utxo +public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool - public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo - public func isOwned() -> Swift.Bool + public init() + open func broadcastTransactions(txs: [[Swift.UInt8]]) @objc deinit } } -public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason +public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey extension LightningDevKit.Bindings { - public enum PaymentFailureReason { - case RecipientRejected - case UserAbandoned - case RetriesExhausted - case PaymentExpired - case RouteNotFound - case UnexpectedError - public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(keyMaterial: [Swift.UInt8]) + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias PathFailure = LightningDevKit.Bindings.PathFailure +public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PathFailureType { - case InitialSend - case OnPath - public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType - public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure - public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure - public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFullInformation() -> Swift.Bool + public func setFullInformation(val: Swift.Bool) + public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? - public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> LightningDevKit.Bindings.APIError - @objc deinit - } - @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? - @objc deinit - } } } -@_hasMissingDesignatedInitializers public class LDKExampleClass { - public class func printSomething() - public func printInstance() - @objc deinit -} -public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction +public typealias Result_ReceiveTlvsDecodeErrorZ = LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReceiveTlvsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool - public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) - public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction - public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public func toHolderValueSat() -> Swift.UInt64 - public func toCounterpartyValueSat() -> Swift.UInt64 - public func toHolderScript() -> [Swift.UInt8] - public func toCounterpartyScript() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReceiveTlvs) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReceiveTlvs? @objc deinit } } -public typealias Recipient = LightningDevKit.Bindings.Recipient +public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures extension LightningDevKit.Bindings { - public enum Recipient { - case Node - case PhantomNode - public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setInitialRoutingSyncOptional() + public func setInitialRoutingSyncRequired() + public func initialRoutingSync() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner +public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) - open func write() -> [Swift.UInt8] - public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt - open func disconnectSocket() - open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool - open func hash() -> Swift.UInt64 + public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? @objc deinit } } -public typealias RouteHop = LightningDevKit.Bindings.RouteHop +public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkey() -> [Swift.UInt8] - public func setPubkey(val: [Swift.UInt8]) - public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getFeeMsat() -> Swift.UInt64 - public func setFeeMsat(val: Swift.UInt64) - public func getCltvExpiryDelta() -> Swift.UInt32 - public func setCltvExpiryDelta(val: Swift.UInt32) - public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) + public func getForwardingFeeBaseMsat() -> Swift.UInt32 + public func setForwardingFeeBaseMsat(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure + public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) + public func getAcceptUnderpayingHtlcs() -> Swift.Bool + public func setAcceptUnderpayingHtlcs(val: Swift.Bool) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool + public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_CVec_ECDSASignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_ECDSASignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? + @objc deinit + } +} public typealias BackgroundProcessor = LightningDevKit.Bindings.BackgroundProcessor extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class BackgroundProcessor : LightningDevKit.NativeTypeWrapper { @@ -3664,573 +4499,654 @@ extension LightningDevKit.Bindings { @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `gossipSync`.") public class func start(persister: LightningDevKit.Bindings.Persister, eventHandler: LightningDevKit.Bindings.EventHandler, chainMonitor: LightningDevKit.Bindings.ChainMonitor, channelManager: LightningDevKit.Bindings.ChannelManager, gossipSync: LightningDevKit.Bindings.GossipSync, peerManager: LightningDevKit.Bindings.PeerManager, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.WriteableScore?) -> LightningDevKit.Bindings.BackgroundProcessor @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func join() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func join() -> LightningDevKit.Bindings.Result_NoneIOErrorZ @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func stop() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func stop() -> LightningDevKit.Bindings.Result_NoneIOErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned +public typealias PrintableString = LightningDevKit.Bindings.PrintableString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getSkimmedFeeMsat() -> Swift.UInt64? + public func setSkimmedFeeMsat(val: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey +public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public enum Secp256k1Error { + case IncorrectSignature + case InvalidMessage + case InvalidPublicKey + case InvalidSignature + case InvalidSecretKey + case InvalidSharedSecret + case InvalidRecoveryId + case InvalidTweak + case NotEnoughMemory + case InvalidPublicKeySum + case InvalidParityValue + public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget +extension LightningDevKit.Bindings { + public enum ConfirmationTarget { + case MempoolMinimum + case Background + case Normal + case HighPriority + public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(keyMaterial: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias Offer = LightningDevKit.Bindings.Offer +public typealias Refund = LightningDevKit.Bindings.Refund extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func chains() -> [[Swift.UInt8]] - public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool - public func metadata() -> [Swift.UInt8]? - public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString - public func features() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func supportedQuantity() -> LightningDevKit.Bindings.Quantity - public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool - public func expectsQuantity() -> Swift.Bool - public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +public typealias CreationError = LightningDevKit.Bindings.CreationError +extension LightningDevKit.Bindings { + public enum CreationError { + case DescriptionTooLong + case RouteTooLong + case TimestampOutOfBounds + case InvalidAmount + case MissingRouteHints + case MinFinalCltvExpiryDeltaTooShort + public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum RecentPaymentDetailsType { + case AwaitingInvoice + case Pending + case Fulfilled + case Abandoned + public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType + public class func initWithAwaitingInvoice(paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithPending(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithFulfilled(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithAbandoned(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public func getValueAsAwaitingInvoice() -> LightningDevKit.Bindings.RecentPaymentDetails.AwaitingInvoice? + public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? + public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? + public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + @objc deinit + @_hasMissingDesignatedInitializers public class AwaitingInvoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getTotalMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_PayeePubKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PayeePubKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + @objc deinit + } +} +public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentParameters? + @objc deinit + } +} +public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHop? + public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func contestDelay() -> Swift.UInt16 + public func isOutbound() -> Swift.Bool + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ +public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? + public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp + public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) + public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Payee = LightningDevKit.Bindings.Payee +public typealias Destination = LightningDevKit.Bindings.Destination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PayeeType { - case Blinded - case Clear - public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public enum DestinationType { + case Node + case BlindedPath + public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType - public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee - public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool - public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? - public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? + public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType + public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination + public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination + public func getValueAsNode() -> [Swift.UInt8]? + public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? @objc deinit - @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] - public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] - public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures - public func getFinalCltvExpiryDelta() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish +public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextLocalCommitmentNumber() -> Swift.UInt64 - public func setNextLocalCommitmentNumber(val: Swift.UInt64) - public func getNextRemoteCommitmentNumber() -> Swift.UInt64 - public func setNextRemoteCommitmentNumber(val: Swift.UInt64) - public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? - public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) - public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] - public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) - public func getNextFundingTxid() -> [Swift.UInt8]? - public func setNextFundingTxid(val: [Swift.UInt8]?) - public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? @objc deinit } } -public typealias Sha256 = LightningDevKit.Bindings.Sha256 +public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 + public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool - public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 + public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler +public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) - open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) - open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) - open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) - open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) - open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) - open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) - open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) - open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) - open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) - open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) - open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) - open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) - open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) - open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) - open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) - open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) - open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) - open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) - open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) - open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) - open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) - open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) - open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) - open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) - open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) - open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) - open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - open func getGenesisHashes() -> [[Swift.UInt8]]? - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - @objc deinit + public enum ChannelShutdownState { + case NotShuttingDown + case ShutdownInitiated + case ResolvingHTLCs + case NegotiatingClosingFee + case ShutdownComplete + public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent +public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum BumpTransactionEventType { - case ChannelClose - case HTLCResolution - public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public enum UtxoResultType { + case Sync + case Async + public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType - public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool - public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? - public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? + public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType + public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult + public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult + public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? + public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + @objc deinit + } +} +public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + @objc deinit + } +} +public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getCommitmentTx() -> [Swift.UInt8] - public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 - public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor - public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] - public func getTxLockTime() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor +public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getLatestUpdateId() -> Swift.UInt64 - public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) - public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] - public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) - public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] - public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) - public func getCounterpartyNodeId() -> [Swift.UInt8]? - public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] - public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] + public func txid() -> [Swift.UInt8] + public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction + public func keys() -> LightningDevKit.Bindings.TxCreationKeys + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func revokeableOutputIndex() -> Swift.UInt? + public func buildToLocalJusticeTx(feeratePerKw: Swift.UInt64, destinationScript: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo +public typealias Result_ChannelMonitorUpdateStatusNoneZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateStatusNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures - public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus? @objc deinit } } -public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys +public typealias Result_SocketAddressSocketAddressParseErrorZ = LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressSocketAddressParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getRevocationKey() -> [Swift.UInt8] - public func setRevocationKey(val: [Swift.UInt8]) - public func getBroadcasterHtlcKey() -> [Swift.UInt8] - public func setBroadcasterHtlcKey(val: [Swift.UInt8]) - public func getCountersignatoryHtlcKey() -> [Swift.UInt8] - public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) - public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] - public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) - public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SocketAddressParseError) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SocketAddressParseError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias BindingsError = LightningDevKit.Bindings.BindingsError +public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getDummy() -> Swift.UInt8 + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias Pong = LightningDevKit.Bindings.Pong +public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeSignature() -> [Swift.UInt8] + public func setNodeSignature(val: [Swift.UInt8]) + public func getBitcoinSignature() -> [Swift.UInt8] + public func setBitcoinSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Persist = LightningDevKit.Bindings.Persist +public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ @objc deinit } } -public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? @objc deinit } } -public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime +public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool - public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public func asSeconds() -> Swift.UInt64 - public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAbort = LightningDevKit.Bindings.TxAbort +public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> [Swift.UInt8] - public func setData(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ +public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? @objc deinit } } -public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement +public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeId1() -> LightningDevKit.Bindings.NodeId - public func setNodeId1(val: LightningDevKit.Bindings.NodeId) - public func getNodeId2() -> LightningDevKit.Bindings.NodeId - public func setNodeId2(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func getMinFundingSatoshis() -> Swift.UInt64 + public func setMinFundingSatoshis(val: Swift.UInt64) + public func getMaxFundingSatoshis() -> Swift.UInt64 + public func setMaxFundingSatoshis(val: Swift.UInt64) + public func getMaxHtlcMinimumMsat() -> Swift.UInt64 + public func setMaxHtlcMinimumMsat(val: Swift.UInt64) + public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getMaxChannelReserveSatoshis() -> Swift.UInt64 + public func setMaxChannelReserveSatoshis(val: Swift.UInt64) + public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) + public func getMaxMinimumDepth() -> Swift.UInt32 + public func setMaxMinimumDepth(val: Swift.UInt32) + public func getTrustOwnFunding0conf() -> Swift.Bool + public func setTrustOwnFunding0conf(val: Swift.Bool) + public func getForceAnnouncedChannelPreference() -> Swift.Bool + public func setForceAnnouncedChannelPreference(val: Swift.Bool) + public func getTheirToSelfDelay() -> Swift.UInt16 + public func setTheirToSelfDelay(val: Swift.UInt16) + public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +public typealias MonitorUpdatingPersister = LightningDevKit.Bindings.MonitorUpdatingPersister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdatingPersister : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(kvStore: LightningDevKit.Bindings.KVStore, logger: LightningDevKit.Bindings.Logger, maximumPendingUpdates: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) + public func readAllChannelMonitorsWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public func readChannelMonitorWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, monitorKey: Swift.String) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public func cleanupStaleUpdates(lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func asPersist() -> LightningDevKit.Bindings.Persist + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey +public typealias Persist = LightningDevKit.Bindings.Persist extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8] - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init() + open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus @objc deinit } } -public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig +public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) - public func getForwardingFeeBaseMsat() -> Swift.UInt32 - public func setForwardingFeeBaseMsat(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure - public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) - public func getAcceptUnderpayingHtlcs() -> Swift.Bool - public func setAcceptUnderpayingHtlcs(val: Swift.Bool) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool - public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingCreated? @objc deinit } } -public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath +public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getIntermediateNodes() -> [[Swift.UInt8]] - public func setIntermediateNodes(val: [[Swift.UInt8]]) - public func getDestination() -> LightningDevKit.Bindings.Destination - public func setDestination(val: LightningDevKit.Bindings.Destination) - public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTransaction() -> [Swift.UInt8] + public func setTransaction(val: [Swift.UInt8]) + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ +public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedTail? + public func getValue() -> LightningDevKit.Bindings.TxSignatures? @objc deinit } } -public typealias Description = LightningDevKit.Bindings.Description +public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getRevocationPubkey() -> [Swift.UInt8] + public func setRevocationPubkey(val: [Swift.UInt8]) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool - public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public func intoInner() -> Swift.String + public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage +public typealias KVStore = LightningDevKit.Bindings.KVStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class KVStore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + open func write(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, buf: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func remove(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func list(primaryNamespace: Swift.String, secondaryNamespace: Swift.String) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ @objc deinit } } @@ -4246,1979 +5162,1797 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? - @objc deinit - } -} -public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits +public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFundingSatoshis() -> Swift.UInt64 - public func setMinFundingSatoshis(val: Swift.UInt64) - public func getMaxFundingSatoshis() -> Swift.UInt64 - public func setMaxFundingSatoshis(val: Swift.UInt64) - public func getMaxHtlcMinimumMsat() -> Swift.UInt64 - public func setMaxHtlcMinimumMsat(val: Swift.UInt64) - public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getMaxChannelReserveSatoshis() -> Swift.UInt64 - public func setMaxChannelReserveSatoshis(val: Swift.UInt64) - public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) - public func getMaxMinimumDepth() -> Swift.UInt32 - public func setMaxMinimumDepth(val: Swift.UInt32) - public func getTrustOwnFunding0conf() -> Swift.Bool - public func setTrustOwnFunding0conf(val: Swift.Bool) - public func getForceAnnouncedChannelPreference() -> Swift.Bool - public func setForceAnnouncedChannelPreference(val: Swift.Bool) - public func getTheirToSelfDelay() -> Swift.UInt16 - public func setTheirToSelfDelay(val: Swift.UInt16) - public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func isOwned() -> Swift.Bool + public init() + open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] + open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + open func getDestinationScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ @objc deinit } } -public typealias Confirm = LightningDevKit.Bindings.Confirm +public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func transactionUnconfirmed(txid: [Swift.UInt8]?) - open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) - open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public enum BumpTransactionEventType { + case ChannelClose + case HTLCResolution + public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType + public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool + public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? + public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getCommitmentTx() -> [Swift.UInt8] + public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 + public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor + public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] + public func getTxLockTime() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ +public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger +public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) - public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler - public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider - public func isOwned() -> Swift.Bool - @objc deinit + public enum UtxoLookupError { + case UnknownChain + case UnknownTx + public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures +public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setInitialRoutingSyncOptional() - public func setInitialRoutingSyncRequired() - public func initialRoutingSync() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool + public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public func asSeconds() -> Swift.UInt64 + public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) - public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig - public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] - public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] - public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseAllChannelsBroadcastingLatestTxn() - public func forceCloseAllChannelsWithoutBroadcastingTxn() - public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ - public func abandonPayment(paymentId: [Swift.UInt8]) - public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func processPendingHtlcForwards() - public func timerTickOccurred() - public func failHtlcBackwards(paymentHash: [Swift.UInt8]) - public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) - public func claimFunds(paymentPreimage: [Swift.UInt8]) - public func getOurNodeId() -> [Swift.UInt8] - public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func getPhantomScid() -> Swift.UInt64 - public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints - public func getInterceptScid() -> Swift.UInt64 - public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func getPersistableUpdateFuture() -> LightningDevKit.Bindings.Future - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func initFeatures() -> LightningDevKit.Bindings.InitFeatures - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFee? @objc deinit } } -public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters +public typealias MultiThreadedScoreLockWrite = LightningDevKit.Bindings.MultiThreadedScoreLockWrite extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockWrite : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getValueSatoshis() -> Swift.UInt64 - public func setValueSatoshis(val: Swift.UInt64) - public func getKeysId() -> [Swift.UInt8]? - public func setKeysId(val: [Swift.UInt8]) - public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) - public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) - public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Hostname = LightningDevKit.Bindings.Hostname +public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool - public func len() -> Swift.UInt8 + public func getChannels() -> [Swift.UInt64] + public func setChannels(val: [Swift.UInt64]) + public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) + public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) + public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult +public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UtxoResultType { - case Sync - case Async - public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType - public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult - public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult - public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? - public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannel? @objc deinit } } -public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ +public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Hostname? + public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? @objc deinit } } -public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement +public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeSignature1() -> [Swift.UInt8] - public func setNodeSignature1(val: [Swift.UInt8]) - public func getNodeSignature2() -> [Swift.UInt8] - public func setNodeSignature2(val: [Swift.UInt8]) - public func getBitcoinSignature1() -> [Swift.UInt8] - public func setBitcoinSignature1(val: [Swift.UInt8]) - public func getBitcoinSignature2() -> [Swift.UInt8] - public func setBitcoinSignature2(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] + open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + open func signBolt12InvoiceRequest(invoiceRequest: LightningDevKit.Bindings.UnsignedInvoiceRequest) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signBolt12Invoice(invoice: LightningDevKit.Bindings.UnsignedBolt12Invoice) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ @objc deinit } } -public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ +public typealias Fallback = LightningDevKit.Bindings.Fallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public enum FallbackType { + case SegWitProgram + case PubKeyHash + case ScriptHash + public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType + public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool + public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? + public func getValueAsPubKeyHash() -> [Swift.UInt8]? + public func getValueAsScriptHash() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getVersion() -> Swift.UInt8 + public func getProgram() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHop? + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> Swift.Bool? @objc deinit } } -public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter +public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias +public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8]? - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ @objc deinit } } -public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ +public typealias Result_RecipientOnionFieldsNoneZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> Swift.Bool? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool + public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public func intoInner() -> LightningDevKit.Bindings.RouteHint + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error +public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bech32ErrorType { - case MissingSeparator - case InvalidChecksum - case InvalidLength - case InvalidChar - case InvalidData - case InvalidPadding - case MixedCase - public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType - public func getValueAsInvalidChar() -> Swift.UInt32? - public func getValueAsInvalidData() -> Swift.UInt8? + public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.GraphSyncError? + public func getValue() -> Swift.UInt32? @objc deinit } } -public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate +public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) - public func getForwardingFeeBaseMsat() -> Swift.UInt32? - public func setForwardingFeeBaseMsat(val: Swift.UInt32?) - public func getCltvExpiryDelta() -> Swift.UInt16? - public func setCltvExpiryDelta(val: Swift.UInt16?) - public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? - public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func getValueSatoshis() -> Swift.UInt64 + public func setValueSatoshis(val: Swift.UInt64) + public func getKeysId() -> [Swift.UInt8]? + public func setKeysId(val: [Swift.UInt8]) + public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters + public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit +public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getNetworks() -> [[Swift.UInt8]]? - public func setNetworks(val: [[Swift.UInt8]]?) - public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.NetAddress? - public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.NetAddress?) - public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.NetAddress?) - public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) + public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice + public func signableHash() -> [Swift.UInt8]? + public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature + public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func checkSignature() -> Swift.Bool + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func toStr() -> Swift.String public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus +public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ extension LightningDevKit.Bindings { - public enum ChannelMonitorUpdateStatus { - case Completed - case InProgress - case PermanentFailure - public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + @objc deinit } } -public typealias CreationError = LightningDevKit.Bindings.CreationError +public typealias Wallet = LightningDevKit.Bindings.Wallet extension LightningDevKit.Bindings { - public enum CreationError { - case DescriptionTooLong - case RouteTooLong - case TimestampOutOfBounds - case InvalidAmount - case MissingRouteHints - case MinFinalCltvExpiryDeltaTooShort - public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) + public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor +public typealias Router = LightningDevKit.Bindings.Router extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ @objc deinit } } -public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SignOrCreationError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public func getError() -> LightningDevKit.Bindings.ProbeSendFailure? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? @objc deinit } } -public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ +public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHint? + public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? @objc deinit } } -public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate +public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetworkUpdateType { - case ChannelUpdateMessage - case ChannelFailure - case NodeFailure - public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public enum ErrorActionType { + case DisconnectPeer + case DisconnectPeerWithWarning + case IgnoreError + case IgnoreAndLog + case IgnoreDuplicateGossip + case SendErrorMessage + case SendWarningMessage + public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType - public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? - public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? - public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? + public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType + public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? + public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? + public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? + public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? + public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getShortChannelId() -> Swift.UInt64 - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.WarningMessage @objc deinit } - @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - } -} -public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentSendFailureType { - case ParameterError - case PathParameterError - case AllFailedResendSafe - case DuplicatePayment - case PartialFailure - public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType - public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure - public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? - public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? - public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? - public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? - @objc deinit - @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] - public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters - public func getPaymentId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.WarningMessage + public func getLogLevel() -> LightningDevKit.Bindings.Level @objc deinit } } } -public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? - @objc deinit - } -} -public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ +public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? - @objc deinit - } -} -public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ -extension LightningDevKit.Bindings { - public enum Option_NoneZ { - case Some - case None - public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ +public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? + public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? @objc deinit } } -public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ +public typealias GossipSync = LightningDevKit.Bindings.GossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCDestination? + public enum GossipSyncType { + case P2P + case Rapid + case None + public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType + public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func none() -> LightningDevKit.Bindings.GossipSync + public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? + public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? @objc deinit } } -public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ +public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum HTLCClaim { + case OfferedTimeout + case OfferedPreimage + case AcceptedTimeout + case AcceptedPreimage + case Revocation + public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingCreated? + public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? @objc deinit } } -public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited +public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool - public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public func intoTransaction() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ +public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PathFailure? + public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? @objc deinit } } -public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ +public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + public func getValue() -> LightningDevKit.Bindings.TxAddInput? @objc deinit } } -public typealias WalletSource = LightningDevKit.Bindings.WalletSource +public typealias Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - open func getChangeScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)? @objc deinit } } -public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getData() -> LightningDevKit.Bindings.RawDataPart - public func setData(val: LightningDevKit.Bindings.RawDataPart) - public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func getSrcNodeId() -> [Swift.UInt8] + public func setSrcNodeId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64? + public func setHtlcMinimumMsat(val: Swift.UInt64?) + public func getHtlcMaximumMsat() -> Swift.UInt64? + public func setHtlcMaximumMsat(val: Swift.UInt64?) + public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func paymentHash() -> LightningDevKit.Bindings.Sha256? - public func description() -> LightningDevKit.Bindings.Description? - public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? - public func descriptionHash() -> LightningDevKit.Bindings.Sha256? - public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? - public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func amountPicoBtc() -> Swift.UInt64? - public func currency() -> LightningDevKit.Bindings.Currency + public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate +public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateId() -> Swift.UInt64 - public func setUpdateId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) + public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool + public func addresses() -> [LightningDevKit.Bindings.SocketAddress] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput +public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) public func getSerialId() -> Swift.UInt64 public func setSerialId(val: Swift.UInt64) - public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited - public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) - public func getPrevtxOut() -> Swift.UInt32 - public func setPrevtxOut(val: Swift.UInt32) - public func getSequence() -> Swift.UInt32 - public func setSequence(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func getSats() -> Swift.UInt64 + public func setSats(val: Swift.UInt64) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func call() - @objc deinit - } -} -public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getOurToSelfDelay() -> Swift.UInt16 - public func setOurToSelfDelay(val: Swift.UInt16) - public func getOurHtlcMinimumMsat() -> Swift.UInt64 - public func setOurHtlcMinimumMsat(val: Swift.UInt64) - public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 - public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) - public func getNegotiateScidPrivacy() -> Swift.Bool - public func setNegotiateScidPrivacy(val: Swift.Bool) - public func getAnnouncedChannel() -> Swift.Bool - public func setAnnouncedChannel(val: Swift.Bool) - public func getCommitUpfrontShutdownPubkey() -> Swift.Bool - public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) - public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 - public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) - public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) - public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 - public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) - public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias RouteHint = LightningDevKit.Bindings.RouteHint +public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [LightningDevKit.Bindings.RouteHintHop] - public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) - public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? @objc deinit } } -public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ +public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? + public func getError() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Result_PaymentHashPaymentSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ +public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> [Swift.UInt8]? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents +public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OnionMessageContentsType { - case Offers - case Custom - public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType - public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents - public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents - public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? - public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func call() @objc deinit } } -public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ +public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsType? + public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? @objc deinit } } -public typealias Wallet = LightningDevKit.Bindings.Wallet +public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) - public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource - public func isOwned() -> Swift.Bool + public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) + open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] + open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] + open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func channelKeysId() -> [Swift.UInt8] + open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys @objc deinit } } -public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ +public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? + public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ +public typealias Path = LightningDevKit.Bindings.Path extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func getHops() -> [LightningDevKit.Bindings.RouteHop] + public func setHops(val: [LightningDevKit.Bindings.RouteHop]) + public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? + public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) + public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool + public func feeMsat() -> Swift.UInt64 + public func finalValueMsat() -> Swift.UInt64 + public func finalCltvExpiryDelta() -> Swift.UInt32? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ +public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? @objc deinit } } -public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo +public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [Swift.UInt64] - public func setChannels(val: [Swift.UInt64]) - public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? - public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) - public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) - public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ +public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ +public typealias Description = LightningDevKit.Bindings.Description extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool + public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public func intoInner() -> Swift.String + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor +public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getPerCommitmentNumber() -> Swift.UInt64 - public func setPerCommitmentNumber(val: Swift.UInt64) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment - public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) - public func getPreimage() -> [Swift.UInt8]? - public func setPreimage(val: [Swift.UInt8]?) - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool - public func outpoint() -> LightningDevKit.Bindings.OutPoint - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func txOutput() -> LightningDevKit.Bindings.TxOut - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getIntroductionNodeId() -> [Swift.UInt8] + public func setIntroductionNodeId(val: [Swift.UInt8]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getBlindedHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setBlindedHops(val: [LightningDevKit.Bindings.BlindedHop]) + public init(introductionNodeIdArg: [Swift.UInt8], blindingPointArg: [Swift.UInt8], blindedHopsArg: [LightningDevKit.Bindings.BlindedHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool + public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func oneHopForPayment(payeeNodeId: [Swift.UInt8], payeeTlvs: LightningDevKit.Bindings.ReceiveTlvs, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ +public typealias Route = LightningDevKit.Bindings.Route extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getPaths() -> [LightningDevKit.Bindings.Path] + public func setPaths(val: [LightningDevKit.Bindings.Path]) + public func getRouteParams() -> LightningDevKit.Bindings.RouteParameters? + public func setRouteParams(val: LightningDevKit.Bindings.RouteParameters) + public init(pathsArg: [LightningDevKit.Bindings.Path], routeParamsArg: LightningDevKit.Bindings.RouteParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool + public func getTotalFees() -> Swift.UInt64 + public func getTotalAmount() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getPushMsat() -> Swift.UInt64 - public func setPushMsat(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool +public typealias Shutdown = LightningDevKit.Bindings.Shutdown +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getScriptpubkey() -> [Swift.UInt8] + public func setScriptpubkey(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ +public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.CoinSelection? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedTail? @objc deinit } } -public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> [Swift.UInt8]? + public init(scorer: LightningDevKit.Bindings.ScoreLookUp, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_KeyPairZNoneZ = LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_KeyPairZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ +public typealias EntropySource = LightningDevKit.Bindings.EntropySource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public init() + open func getSecureRandomBytes() -> [Swift.UInt8] @objc deinit } } -public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript +public typealias TxIn = LightningDevKit.Bindings.TxIn extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func intoInner() -> [Swift.UInt8] - public func asLegacyPubkey() -> [Swift.UInt8]? - public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) + public func getWitness() -> [Swift.UInt8] + public func getScriptSig() -> [Swift.UInt8] + public func getSequence() -> Swift.UInt32 + public func getPreviousTxid() -> [Swift.UInt8] + public func getPreviousVout() -> Swift.UInt32 @objc deinit } } -public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ +public typealias ScoreLookUp = LightningDevKit.Bindings.ScoreLookUp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreLookUp : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 @objc deinit } } -public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ +public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? + public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ +public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isInitialSyncComplete() -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OutPoint = LightningDevKit.Bindings.OutPoint +public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public func getIndex() -> Swift.UInt16 - public func setIndex(val: Swift.UInt16) - public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func toChannelId() -> [Swift.UInt8] + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]?) + public func getPaymentMetadata() -> [Swift.UInt8]? + public func setPaymentMetadata(val: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields + public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public func withCustomTlvs(customTlvs: [(Swift.UInt64, [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public func customTlvs() -> [(Swift.UInt64, [Swift.UInt8])] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SignatureNoneZ = LightningDevKit.Bindings.Result_SignatureNoneZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SignatureNoneZ + public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? @objc deinit } } -public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ +public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? + public init() + public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOffered() -> Swift.Bool - public func setOffered(val: Swift.Bool) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getTransactionOutputIndex() -> Swift.UInt32? - public func setTransactionOutputIndex(val: Swift.UInt32?) - public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) - public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getChannelTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func setChannelTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64, channelTransactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool + public func witnessScript() -> [Swift.UInt8]? + public func maxWitnessLength() -> Swift.UInt public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Refund = LightningDevKit.Bindings.Refund +public typealias Logger = LightningDevKit.Bindings.Logger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func log(record: LightningDevKit.Bindings.Record) + @objc deinit + } +} +public typealias Network = LightningDevKit.Bindings.Network +extension LightningDevKit.Bindings { + public enum Network { + case Bitcoin + case Testnet + case Regtest + case Signet + public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } +} +public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? - public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func metadata() -> [Swift.UInt8] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures public func quantity() -> Swift.UInt64? public func payerId() -> [Swift.UInt8] public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer +public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func debugLogLiquidityStats() - public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? - public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? - public func asScore() -> LightningDevKit.Bindings.Score + public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? + public func listChannels() -> [Swift.UInt64] + public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? + public func listNodes() -> [LightningDevKit.Bindings.NodeId] + public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.SocketAddress]? + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) + public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig + public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] + public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] + public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseAllChannelsBroadcastingLatestTxn() + public func forceCloseAllChannelsWithoutBroadcastingTxn() + public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ + public func abandonPayment(paymentId: [Swift.UInt8]) + public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public func sendSpontaneousPreflightProbes(nodeId: [Swift.UInt8], amountMsat: Swift.UInt64, finalCltvExpiryDelta: Swift.UInt32, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func sendPreflightProbes(routeParams: LightningDevKit.Bindings.RouteParameters, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func batchFundingTransactionGenerated(temporaryChannels: [([Swift.UInt8], [Swift.UInt8])], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func processPendingHtlcForwards() + public func timerTickOccurred() + public func failHtlcBackwards(paymentHash: [Swift.UInt8]) + public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) + public func claimFunds(paymentPreimage: [Swift.UInt8]) + public func claimFundsWithKnownCustomTlvs(paymentPreimage: [Swift.UInt8]) + public func getOurNodeId() -> [Swift.UInt8] + public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func getPhantomScid() -> Swift.UInt64 + public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints + public func getInterceptScid() -> Swift.UInt64 + public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func getEventOrPersistenceNeededFuture() -> LightningDevKit.Bindings.Future + public func getAndClearNeedsPersistence() -> Swift.Bool + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func initFeatures() -> LightningDevKit.Bindings.InitFeatures + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ +public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? + public init() + open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? + open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ @objc deinit } } -public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys +public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func asUnixTimestamp() -> Swift.UInt64 + public func asDurationSinceEpoch() -> Swift.UInt64 + public func asTime() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Watch = LightningDevKit.Bindings.Watch +public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] - @objc deinit + public enum Bolt11SemanticError { + case NoPaymentHash + case MultiplePaymentHashes + case NoDescription + case MultipleDescriptions + case NoPaymentSecret + case MultiplePaymentSecrets + case InvalidFeatures + case InvalidRecoveryId + case InvalidSignature + case ImpreciseAmount + public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler +public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) - open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? @objc deinit } } -public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +public typealias Utxo = LightningDevKit.Bindings.Utxo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool + public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias LightningError = LightningDevKit.Bindings.LightningError +public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func setErr(val: Swift.String) - public func getAction() -> LightningDevKit.Bindings.ErrorAction - public func setAction(val: LightningDevKit.Bindings.ErrorAction) - public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ +public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RoutingFees? + public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? @objc deinit } } -public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ +public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeFeatures? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getPaymentPreimage() -> [Swift.UInt8]? + public func setPaymentPreimage(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler +public typealias Ping = LightningDevKit.Bindings.Ping extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? - open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public func getPonglen() -> Swift.UInt16 + public func setPonglen(val: Swift.UInt16) + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlockHash() -> [Swift.UInt8]? - public func setBlockHash(val: [Swift.UInt8]?) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getScriptPubkey() -> [Swift.UInt8] - public func setScriptPubkey(val: [Swift.UInt8]) - public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] + public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) + public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] + public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) + public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] + public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) + public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] + public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) + public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? + public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) + public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned + public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) + public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) + public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Event? @objc deinit } } -public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ +public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxSignatures? + public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) + open func write() -> [Swift.UInt8] + public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner @objc deinit } } -public typealias Result_CVec_SignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ +public typealias DecodeError = LightningDevKit.Bindings.DecodeError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_SignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? + public enum DecodeErrorType { + case UnknownVersion + case UnknownRequiredFeature + case InvalidValue + case ShortRead + case BadLengthDescriptor + case Io + case UnsupportedCompression + public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType + public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError + public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError + public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError + public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError + public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError + public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError + public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError + public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool + public func getValueAsIo() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ +public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getPushMsat() -> Swift.UInt64 + public func setPushMsat(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ +public typealias PaymentError = LightningDevKit.Bindings.PaymentError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? + public enum PaymentErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError + public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError + public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? @objc deinit } } -public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ +public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? + public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? @objc deinit } } -public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters +public typealias Packet = LightningDevKit.Bindings.Packet extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Packet : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNetwork() -> LightningDevKit.Bindings.Network - public func setNetwork(val: LightningDevKit.Bindings.Network) - public func getBestBlock() -> LightningDevKit.Bindings.BestBlock - public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) - public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) + public func getVersion() -> Swift.UInt8 + public func setVersion(val: Swift.UInt8) + public func getPublicKey() -> [Swift.UInt8] + public func setPublicKey(val: [Swift.UInt8]) + public func getHopData() -> [Swift.UInt8] + public func setHopData(val: [Swift.UInt8]) + public func getHmac() -> [Swift.UInt8]? + public func setHmac(val: [Swift.UInt8]) + public init(versionArg: Swift.UInt8, publicKeyArg: [Swift.UInt8], hopDataArg: [Swift.UInt8], hmacArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Packet, b: LightningDevKit.Bindings.Packet) -> Swift.Bool + public func write() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - @objc deinit - } + public class func getLDKSwiftBindingsSerializationHash() -> Swift.String + public class func getLDKSwiftBindingsVersion() -> Swift.String + public class func getLDKSwiftBindingsCommitHash() -> Swift.String } -public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor +public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) - public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getBaseMsat() -> Swift.UInt32 + public func setBaseMsat(val: Swift.UInt32) + public func getProportionalMillionths() -> Swift.UInt32 + public func setProportionalMillionths(val: Swift.UInt32) + public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider +public typealias Listen = LightningDevKit.Bindings.Listen extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage + open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) + open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) @objc deinit } } -public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ +public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PrivateRoute? @objc deinit } } -public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ +public typealias FilesystemStore = LightningDevKit.Bindings.FilesystemStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FilesystemStore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + public init(dataDir: Swift.String) + public func getDataDir() -> Swift.String + public func asKVStore() -> LightningDevKit.Bindings.KVStore + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph +public typealias EventHandler = LightningDevKit.Bindings.EventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? - public func listChannels() -> [Swift.UInt64] - public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? - public func listNodes() -> [LightningDevKit.Bindings.NodeId] - public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.NetAddress]? - public func isOwned() -> Swift.Bool + public init() + open func handleEvent(event: LightningDevKit.Bindings.Event) @objc deinit } } -public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner +public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingKey() -> [Swift.UInt8]? - public func setFundingKey(val: [Swift.UInt8]) - public func getRevocationBaseKey() -> [Swift.UInt8]? - public func setRevocationBaseKey(val: [Swift.UInt8]) - public func getPaymentKey() -> [Swift.UInt8]? - public func setPaymentKey(val: [Swift.UInt8]) - public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? - public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) - public func getHtlcBaseKey() -> [Swift.UInt8]? - public func setHtlcBaseKey(val: [Swift.UInt8]) - public func getCommitmentSeed() -> [Swift.UInt8]? - public func setCommitmentSeed(val: [Swift.UInt8]) - public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) - public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func counterpartySelectedContestDelay() -> Swift.UInt16 - public func holderSelectedContestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner - public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner - public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) - public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice - public func signableHash() -> [Swift.UInt8]? - public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature - public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public func checkSignature() -> Swift.Bool - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func toStr() -> Swift.String + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice +public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func description() -> LightningDevKit.Bindings.PrintableString - public func createdAt() -> Swift.UInt64 - public func relativeExpiry() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func paymentHash() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func signingPubkey() -> [Swift.UInt8] - public func signableHash() -> [Swift.UInt8] - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> Swift.Bool - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? @objc deinit } } -public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ +public typealias MultiThreadedScoreLockRead = LightningDevKit.Bindings.MultiThreadedScoreLockRead extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockRead : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OnionMessage? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Event = LightningDevKit.Bindings.Event +public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EventType { - case FundingGenerationReady - case PaymentClaimable - case PaymentClaimed - case PaymentSent - case PaymentFailed - case PaymentPathSuccessful - case PaymentPathFailed - case ProbeSuccessful - case ProbeFailed - case PendingHTLCsForwardable - case HTLCIntercepted - case SpendableOutputs - case PaymentForwarded - case ChannelPending - case ChannelReady - case ChannelClosed - case DiscardFunding - case OpenChannelRequest - case HTLCHandlingFailed - case BumpTransaction - public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Event.EventType - public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8], viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Event - public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8], nextChannelId: [Swift.UInt8], feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event - public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason) -> LightningDevKit.Bindings.Event - public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event - public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event - public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? - public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? - public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? - public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? - public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? - public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? - public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? - public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? - public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? - public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? - public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? - public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? - public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? - public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? - public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? - public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? - public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? - public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? - public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? - public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) + public func getForwardingFeeBaseMsat() -> Swift.UInt32? + public func setForwardingFeeBaseMsat(val: Swift.UInt32?) + public func getCltvExpiryDelta() -> Swift.UInt16? + public func setCltvExpiryDelta(val: Swift.UInt16?) + public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + @objc deinit + } +} +public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OutPoint? + @objc deinit + } +} +public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + @objc deinit + } +} +public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? + @objc deinit + } +} +public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SendError? + @objc deinit + } +} +public typealias TxAbort = LightningDevKit.Bindings.TxAbort +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> [Swift.UInt8] + public func setData(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelValueSatoshis() -> Swift.UInt64 - public func getOutputScript() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields - public func getAmountMsat() -> Swift.UInt64 - public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - public func getViaChannelId() -> [Swift.UInt8] - public func getViaUserChannelId() -> [Swift.UInt8]? - public func getClaimDeadline() -> Swift.UInt32? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getAmountMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentPreimage() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getFeePaidMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8]? - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentFailedPermanently() -> Swift.Bool - public func getFailure() -> LightningDevKit.Bindings.PathFailure - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTimeForwardable() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getInterceptId() -> [Swift.UInt8] - public func getRequestedNextHopScid() -> Swift.UInt64 - public func getPaymentHash() -> [Swift.UInt8] - public func getInboundAmountMsat() -> Swift.UInt64 - public func getExpectedOutboundAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getNextChannelId() -> [Swift.UInt8] - public func getFeeEarnedMsat() -> Swift.UInt64? - public func getClaimFromOnchainTx() -> Swift.Bool - public func getOutboundAmountForwardedMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getFormerTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.ClosureReason - @objc deinit - } - @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getTransaction() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingSatoshis() -> Swift.UInt64 - public func getPushMsat() -> Swift.UInt64 - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination - @objc deinit - } } } public typealias InvoiceRequestFeatures = LightningDevKit.Bindings.InvoiceRequestFeatures @@ -6226,880 +6960,1033 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class InvoiceRequestFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + @objc deinit + } +} +public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getData() -> LightningDevKit.Bindings.RawDataPart + public func setData(val: LightningDevKit.Bindings.RawDataPart) + public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func paymentHash() -> LightningDevKit.Bindings.Sha256? + public func description() -> LightningDevKit.Bindings.Description? + public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? + public func descriptionHash() -> LightningDevKit.Bindings.Sha256? + public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? + public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func amountPicoBtc() -> Swift.UInt64? + public func currency() -> LightningDevKit.Bindings.Currency + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getEnabled() -> Swift.Bool + public func setEnabled(val: Swift.Bool) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? + public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) + public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func setKeysendOptional() + public func setKeysendRequired() + public func supportsKeysend() -> Swift.Bool + public func requiresKeysend() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteParameters? @objc deinit } } -public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Offer? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHop? @objc deinit } } -public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage +public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func getTxHash() -> [Swift.UInt8]? + public func setTxHash(val: [Swift.UInt8]) + public func getWitnesses() -> [[Swift.UInt8]] + public func setWitnesses(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ +public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func getIntermediateNodes() -> [[Swift.UInt8]] + public func setIntermediateNodes(val: [[Swift.UInt8]]) + public func getDestination() -> LightningDevKit.Bindings.Destination + public func setDestination(val: LightningDevKit.Bindings.Destination) + public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [LightningDevKit.Bindings.Utxo]? + @objc deinit + } +} +@_hasMissingDesignatedInitializers public class LDKExampleClass { + public class func printSomething() + public func printInstance() + @objc deinit +} +public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + @objc deinit + } +} +public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeInfo? + public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? @objc deinit } } -public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction +public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ErrorActionType { - case DisconnectPeer - case DisconnectPeerWithWarning - case IgnoreError - case IgnoreAndLog - case IgnoreDuplicateGossip - case SendErrorMessage - case SendWarningMessage - public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType - public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? - public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? - public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? - public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? - public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeSatoshis() -> Swift.UInt64 + public func setFeeSatoshis(val: Swift.UInt64) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) + public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) + public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - public func getLogLevel() -> LightningDevKit.Bindings.Level - @objc deinit - } } } -public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer +public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer - public func asScore() -> LightningDevKit.Bindings.Score + public func getA() -> [Swift.UInt8]? + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPreimageAPIErrorZ = LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ +public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPreimageAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? + public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters + public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public func getMaxTotalRoutingFeeMsat() -> Swift.UInt64? + public func setMaxTotalRoutingFeeMsat(val: Swift.UInt64?) + public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64, maxTotalRoutingFeeMsatArg: Swift.UInt64?) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public class func initWithPaymentParamsAndValue(paymentParams: LightningDevKit.Bindings.PaymentParameters, finalValueMsat: Swift.UInt64) -> LightningDevKit.Bindings.RouteParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ +public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? + public enum SignOrCreationErrorType { + case SignError + case CreationError + public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType + public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError + public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError + public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? @objc deinit } } -public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingSigned? + public init() + open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult @objc deinit } } -public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints +public enum NetworkGraphArgument { + case serialized([Swift.UInt8]) + case instance(LightningDevKit.NetworkGraph) +} +public struct ChannelManagerConstructionParameters { + public var config: LightningDevKit.UserConfig + public var entropySource: LightningDevKit.EntropySource + public var nodeSigner: LightningDevKit.NodeSigner + public var signerProvider: LightningDevKit.SignerProvider + public var feeEstimator: LightningDevKit.FeeEstimator + public var chainMonitor: LightningDevKit.ChainMonitor + public var txBroadcaster: LightningDevKit.BroadcasterInterface + public var enableP2PGossip: Swift.Bool + public var scorer: LightningDevKit.MultiThreadedLockableScore? + public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? + public var payerRetries: LightningDevKit.Bindings.Retry + public var logger: LightningDevKit.Logger + public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt32(3))) +} +@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { + final public let channelManager: LightningDevKit.ChannelManager + final public let channel_manager_latest_block_hash: [Swift.UInt8]? + public var netGraph: LightningDevKit.NetworkGraph? { + get + } + final public let peerManager: LightningDevKit.PeerManager + public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { + get + } + public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws + public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) + public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) + public func interrupt() + public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler + @objc deinit +} +public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { + func handleEvent(event: LightningDevKit.Event) +} +@_hasMissingDesignatedInitializers public class TCPPeerHandler { + public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool + public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool + @objc deinit +} +public typealias KeysManager = LightningDevKit.Bindings.KeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) - public func getPhantomScid() -> Swift.UInt64 - public func setPhantomScid(val: Swift.UInt64) - public func getRealNodePubkey() -> [Swift.UInt8] - public func setRealNodePubkey(val: [Swift.UInt8]) - public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) + public func getNodeSecretKey() -> [Swift.UInt8] + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ +public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias UserConfig = LightningDevKit.Bindings.UserConfig +public typealias Filter = LightningDevKit.Bindings.Filter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig - public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) - public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) - public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig - public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) - public func getAcceptForwardsToPrivChannels() -> Swift.Bool - public func setAcceptForwardsToPrivChannels(val: Swift.Bool) - public func getAcceptInboundChannels() -> Swift.Bool - public func setAcceptInboundChannels(val: Swift.Bool) - public func getManuallyAcceptInboundChannels() -> Swift.Bool - public func setManuallyAcceptInboundChannels(val: Swift.Bool) - public func getAcceptInterceptHtlcs() -> Swift.Bool - public func setAcceptInterceptHtlcs(val: Swift.Bool) - public func getAcceptMppKeysend() -> Swift.Bool - public func setAcceptMppKeysend(val: Swift.Bool) - public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) - public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig - public func isOwned() -> Swift.Bool + public init() + open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) + open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) @objc deinit } } -public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ +public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.Description? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? @objc deinit } } -public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 +public typealias Sha256 = LightningDevKit.Bindings.Sha256 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool + public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ +public typealias BindingsError = LightningDevKit.Bindings.BindingsError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + public func getDummy() -> Swift.UInt8 @objc deinit } } -public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure -extension LightningDevKit.Bindings { - public enum RetryableSendFailure { - case PaymentExpired - case RouteNotFound - case DuplicatePayment - public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange +public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public func getSyncComplete() -> Swift.Bool - public func setSyncComplete(val: Swift.Bool) - public func getShortChannelIds() -> [Swift.UInt64] - public func setShortChannelIds(val: [Swift.UInt64]) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) - public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDetails? @objc deinit } } -public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +public typealias APIError = LightningDevKit.Bindings.APIError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RecentPaymentDetailsType { - case Pending - case Fulfilled - case Abandoned - public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public enum APIErrorType { + case APIMisuseError + case FeeRateTooHigh + case InvalidRoute + case ChannelUnavailable + case MonitorUpdateInProgress + case IncompatibleShutdownScript + public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType - public class func initWithPending(paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithFulfilled(paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithAbandoned(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails - public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? - public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? - public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType + public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError + public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError + public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError + public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? + public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? + public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? + public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? + public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? @objc deinit - @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] - public func getTotalMsat() -> Swift.UInt64 + public func getErr() -> Swift.String @objc deinit } - @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8]? + public func getErr() -> Swift.String + public func getFeerate() -> Swift.UInt32 @objc deinit } - @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getScript() -> LightningDevKit.Bindings.ShutdownScript @objc deinit } } } -public typealias Record = LightningDevKit.Bindings.Record +public typealias TxComplete = LightningDevKit.Bindings.TxComplete extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLevel() -> LightningDevKit.Bindings.Level - public func setLevel(val: LightningDevKit.Bindings.Level) - public func getArgs() -> Swift.String - public func setArgs(val: Swift.String) - public func getModulePath() -> Swift.String - public func setModulePath(val: Swift.String) - public func getFile() -> Swift.String - public func setFile(val: Swift.String) - public func getLine() -> Swift.UInt32 - public func setLine(val: Swift.UInt32) + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ +public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getBasePenaltyMsat() -> Swift.UInt64 + public func setBasePenaltyMsat(val: Swift.UInt64) + public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getAntiProbingPenaltyMsat() -> Swift.UInt64 + public func setAntiProbingPenaltyMsat(val: Swift.UInt64) + public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 + public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) + public func getLinearSuccessProbability() -> Swift.Bool + public func setLinearSuccessProbability(val: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters + public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) + public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) + public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) + public func clearManualPenalties() + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler +public typealias Result_C2Tuple_CVec_u8ZusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_CVec_u8ZusizeZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? - public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) - public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? - public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) - public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? - public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) - public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? - public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) - public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], Swift.UInt)? @objc deinit } } -public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields +public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentSecret() -> [Swift.UInt8]? - public func setPaymentSecret(val: [Swift.UInt8]?) - public func getPaymentMetadata() -> [Swift.UInt8]? - public func setPaymentMetadata(val: [Swift.UInt8]?) - public init(paymentSecretArg: [Swift.UInt8]?, paymentMetadataArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields - public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity +public typealias ForwardTlvs = LightningDevKit.Bindings.ForwardTlvs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ForwardTlvs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EffectiveCapacityType { - case ExactLiquidity - case AdvertisedMaxHTLC - case Total - case Infinite - case HintMaxHTLC - case Unknown - public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType - public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity - public func asMsat() -> Swift.UInt64 - public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? - public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? - public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? - public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getPaymentRelay() -> LightningDevKit.Bindings.PaymentRelay + public func setPaymentRelay(val: LightningDevKit.Bindings.PaymentRelay) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(shortChannelIdArg: Swift.UInt64, paymentRelayArg: LightningDevKit.Bindings.PaymentRelay, paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getLiquidityMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getCapacityMsat() -> Swift.UInt64 - public func getHtlcMaximumMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } } } -public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager +public typealias OutPoint = LightningDevKit.Bindings.OutPoint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func getNodeSecretKey() -> [Swift.UInt8] - public func getPhantomNodeSecretKey() -> [Swift.UInt8] + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public func getIndex() -> Swift.UInt16 + public func setIndex(val: Swift.UInt16) + public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func toChannelId() -> [Swift.UInt8] + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ +public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? + public func getValue() -> LightningDevKit.Bindings.TxAbort? @objc deinit } } -public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ +public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPath? + public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? @objc deinit } } -public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ +public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? + public func getUpdateId() -> Swift.UInt64 + public func setUpdateId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ +public typealias Persister = LightningDevKit.Bindings.Persister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosureReason? + public init() + open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneIOErrorZ @objc deinit } } -public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFeeSatoshis() -> Swift.UInt64 - public func setMinFeeSatoshis(val: Swift.UInt64) - public func getMaxFeeSatoshis() -> Swift.UInt64 - public func setMaxFeeSatoshis(val: Swift.UInt64) - public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public func getSyncComplete() -> Swift.Bool + public func setSyncComplete(val: Swift.Bool) + public func getShortChannelIds() -> [Swift.UInt64] + public func setShortChannelIds(val: [Swift.UInt64]) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) + public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction +public typealias Score = LightningDevKit.Bindings.Score +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(scoreLookUp: LightningDevKit.Bindings.ScoreLookUp, scoreUpdate: LightningDevKit.Bindings.ScoreUpdate) + open func write() -> [Swift.UInt8] + public func getScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func getScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + @objc deinit + } +} +public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + @objc deinit + } +} +public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func tlvType() -> Swift.UInt64 + open func write() -> [Swift.UInt8] + @objc deinit + } +} +public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTransaction() -> [Swift.UInt8] - public func setTransaction(val: [Swift.UInt8]) - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? @objc deinit } } -public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError +public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] + public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) + public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? + public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) + public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters +public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getSelectedContestDelay() -> Swift.UInt16 - public func setSelectedContestDelay(val: Swift.UInt16) - public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ +public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Event? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) + public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) + public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ +public typealias VerifiedInvoiceRequest = LightningDevKit.Bindings.VerifiedInvoiceRequest extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class VerifiedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? + public func getKeys() -> [Swift.UInt8]? + public func setKeys(val: [Swift.UInt8]?) + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ +public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValue() -> LightningDevKit.Bindings.Hostname? @objc deinit } } -public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated +public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingTxid() -> [Swift.UInt8]? - public func setFundingTxid(val: [Swift.UInt8]) - public func getFundingOutputIndex() -> Swift.UInt16 - public func setFundingOutputIndex(val: Swift.UInt16) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeInfo? @objc deinit } } -public enum NetworkGraphArgument { - case serialized([Swift.UInt8]) - case instance(LightningDevKit.NetworkGraph) -} -public struct ChannelManagerConstructionParameters { - public var config: LightningDevKit.UserConfig - public var entropySource: LightningDevKit.EntropySource - public var nodeSigner: LightningDevKit.NodeSigner - public var signerProvider: LightningDevKit.SignerProvider - public var feeEstimator: LightningDevKit.FeeEstimator - public var chainMonitor: LightningDevKit.ChainMonitor - public var txBroadcaster: LightningDevKit.BroadcasterInterface - public var enableP2PGossip: Swift.Bool - public var scorer: LightningDevKit.MultiThreadedLockableScore? - public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? - public var payerRetries: LightningDevKit.Bindings.Retry - public var logger: LightningDevKit.Logger - public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt(3))) -} -@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { - final public let channelManager: LightningDevKit.ChannelManager - final public let channel_manager_latest_block_hash: [Swift.UInt8]? - public var netGraph: LightningDevKit.NetworkGraph? { - get - } - final public let peerManager: LightningDevKit.PeerManager - public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { - get - } - public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws - public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) - public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) - public func interrupt() - public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler - @objc deinit -} -public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { - func handleEvent(event: LightningDevKit.Event) -} -@_hasMissingDesignatedInitializers public class TCPPeerHandler { - public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool - public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool - @objc deinit -} -public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC +public typealias Result_NoneIOErrorZ = LightningDevKit.Bindings.Result_NoneIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getPaymentPreimage() -> [Swift.UInt8]? - public func setPaymentPreimage(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias IOError = LightningDevKit.Bindings.IOError +public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ extension LightningDevKit.Bindings { - public enum IOError { - case NotFound - case PermissionDenied - case ConnectionRefused - case ConnectionReset - case ConnectionAborted - case NotConnected - case AddrInUse - case AddrNotAvailable - case BrokenPipe - case AlreadyExists - case WouldBlock - case InvalidInput - case InvalidData - case TimedOut - case WriteZero - case Interrupted - case Other - case UnexpectedEof - public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.CoinSelection? + @objc deinit } } -public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ +public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Ping? + public func getFundingKey() -> [Swift.UInt8]? + public func setFundingKey(val: [Swift.UInt8]) + public func getRevocationBaseKey() -> [Swift.UInt8]? + public func setRevocationBaseKey(val: [Swift.UInt8]) + public func getPaymentKey() -> [Swift.UInt8]? + public func setPaymentKey(val: [Swift.UInt8]) + public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? + public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) + public func getHtlcBaseKey() -> [Swift.UInt8]? + public func setHtlcBaseKey(val: [Swift.UInt8]) + public func getCommitmentSeed() -> [Swift.UInt8]? + public func setCommitmentSeed(val: [Swift.UInt8]) + public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) + public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys? + public func counterpartySelectedContestDelay() -> Swift.UInt16? + public func holderSelectedContestDelay() -> Swift.UInt16? + public func isOutbound() -> Swift.Bool? + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getSkimmedFeeMsat() -> Swift.UInt64? - public func setSkimmedFeeMsat(val: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public func getShortChannelIdAlias() -> Swift.UInt64? + public func setShortChannelIdAlias(val: Swift.UInt64?) + public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MonitorEventType { - case HTLCEvent - case CommitmentTxConfirmed - case Completed - case UpdateFailed - public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType - public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCommitmentTxConfirmed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithUpdateFailed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? - public func getValueAsCommitmentTxConfirmed() -> LightningDevKit.Bindings.OutPoint? - public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? - public func getValueAsUpdateFailed() -> LightningDevKit.Bindings.OutPoint? + public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxInitRbf? @objc deinit - @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - public func getMonitorUpdateId() -> Swift.UInt64 - @objc deinit - } } } -public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + public func getValue() -> LightningDevKit.Bindings.HTLCDestination? @objc deinit } } @@ -7120,373 +8007,189 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) - public func getGenesisHash() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) - public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph - public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? - public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) - public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func channelFailedPermanent(shortChannelId: Swift.UInt64) - public func nodeFailedPermanent(nodeId: [Swift.UInt8]) - public func removeStaleChannelsAndTracking() - public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) - public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Quantity = LightningDevKit.Bindings.Quantity +public typealias Result_ThirtyTwoBytesPaymentErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Shutdown = LightningDevKit.Bindings.Shutdown +public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getScriptpubkey() -> [Swift.UInt8] - public func setScriptpubkey(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? @objc deinit } } -public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo +public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getNodeOne() -> LightningDevKit.Bindings.NodeId - public func setNodeOne(val: LightningDevKit.Bindings.NodeId) - public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getNodeTwo() -> LightningDevKit.Bindings.NodeId - public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) - public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getCapacitySats() -> Swift.UInt64? - public func setCapacitySats(val: Swift.UInt64?) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool - public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? @objc deinit } } -public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError +public typealias TxOut = LightningDevKit.Bindings.TxOut extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ParseOrSemanticErrorType { - case ParseError - case SemanticError - public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType - public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) + public func getScriptPubkey() -> [Swift.UInt8] + public func getValue() -> Swift.UInt64 @objc deinit } } -@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { - public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - @objc deinit - open var hashValue: Swift.Int { - get - } -} -@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { - public func activate() -> Self - public func activateOnce() -> Self - @objc deinit -} -@_hasMissingDesignatedInitializers public class Bindings { - public enum PrintSeverity : Swift.UInt { - case DEBUG - case WARNING - case ERROR - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { - get - } - } - public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) - public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) - public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer - public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper - public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String - public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func ldkGetCompiledVersion() -> Swift.String - public class func ldkCBindingsGetCompiledVersion() -> Swift.String - public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool - public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] - public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures - public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] - public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] - public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] - public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] - public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] - public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 - public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.Score, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") - public class func readBlockHashChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func readBlockHashChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - @objc deinit -} -@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { - public init() - public func getPointer() -> Swift.UnsafeMutableRawPointer - @objc deinit -} -public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo +public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) - public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool - public func addresses() -> [LightningDevKit.Bindings.NetAddress] + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsInit? + public func getValue() -> LightningDevKit.Bindings.PathFailure? @objc deinit } } -public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop +public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) + open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader @objc deinit } } -public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice +public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func signingPubkey() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOk() -> Swift.Bool @objc deinit } } -public typealias APIError = LightningDevKit.Bindings.APIError +public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum APIErrorType { - case APIMisuseError - case FeeRateTooHigh - case InvalidRoute - case ChannelUnavailable - case MonitorUpdateInProgress - case IncompatibleShutdownScript - public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType - public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError - public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError - public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError - public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? - public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? - public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? - public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? - public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? + public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) + open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider @objc deinit - @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func getFeerate() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getScript() -> LightningDevKit.Bindings.ShutdownScript - @objc deinit - } } } -public typealias Result_NoneErrorZ = LightningDevKit.Bindings.Result_NoneErrorZ +public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? @objc deinit } } -public typealias NetAddress = LightningDevKit.Bindings.NetAddress +public typealias SocketAddress = LightningDevKit.Bindings.SocketAddress extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetAddress : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SocketAddress : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetAddressType { - case IPv4 - case IPv6 + public enum SocketAddressType { + case TcpIpV4 + case TcpIpV6 case OnionV2 case OnionV3 case Hostname - public static func == (a: LightningDevKit.Bindings.NetAddress.NetAddressType, b: LightningDevKit.Bindings.NetAddress.NetAddressType) -> Swift.Bool + public static func == (a: LightningDevKit.Bindings.SocketAddress.SocketAddressType, b: LightningDevKit.Bindings.SocketAddress.SocketAddressType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetAddress.NetAddressType - public class func initWithIpv4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithIpv6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func eq(a: LightningDevKit.Bindings.NetAddress, b: LightningDevKit.Bindings.NetAddress) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func getValueAsIPv4() -> LightningDevKit.Bindings.NetAddress.IPv4? - public func getValueAsIPv6() -> LightningDevKit.Bindings.NetAddress.IPv6? + public func getValueType() -> LightningDevKit.Bindings.SocketAddress.SocketAddressType + public class func initWithTcpIpV4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithTcpIpV6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func eq(a: LightningDevKit.Bindings.SocketAddress, b: LightningDevKit.Bindings.SocketAddress) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func getValueAsTcpIpV4() -> LightningDevKit.Bindings.SocketAddress.TcpIpV4? + public func getValueAsTcpIpV6() -> LightningDevKit.Bindings.SocketAddress.TcpIpV6? public func getValueAsOnionV2() -> [Swift.UInt8]? - public func getValueAsOnionV3() -> LightningDevKit.Bindings.NetAddress.OnionV3? - public func getValueAsHostname() -> LightningDevKit.Bindings.NetAddress.Hostname? + public func getValueAsOnionV3() -> LightningDevKit.Bindings.SocketAddress.OnionV3? + public func getValueAsHostname() -> LightningDevKit.Bindings.SocketAddress.Hostname? @objc deinit - @_hasMissingDesignatedInitializers public class IPv4 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV4 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] public func getPort() -> Swift.UInt16 @objc deinit } - @_hasMissingDesignatedInitializers public class IPv6 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV6 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] @@ -7511,1396 +8214,1367 @@ extension LightningDevKit.Bindings { } } } -public typealias NodeId = LightningDevKit.Bindings.NodeId +public typealias RouteHop = LightningDevKit.Bindings.RouteHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId - public func asSlice() -> [Swift.UInt8] - public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public func getPubkey() -> [Swift.UInt8] + public func setPubkey(val: [Swift.UInt8]) + public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getFeeMsat() -> Swift.UInt64 + public func setFeeMsat(val: Swift.UInt64) + public func getCltvExpiryDelta() -> Swift.UInt32 + public func setCltvExpiryDelta(val: Swift.UInt32) + public func getMaybeAnnouncedChannel() -> Swift.Bool + public func setMaybeAnnouncedChannel(val: Swift.Bool) + public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32, maybeAnnouncedChannelArg: Swift.Bool) public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ +public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) + public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] + public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] + public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] + public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func getUpdateFuture() -> LightningDevKit.Bindings.Future + public func rebroadcastPendingClaims() + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func asWatch() -> LightningDevKit.Bindings.Watch + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstTimestamp() -> Swift.UInt32 + public func setFirstTimestamp(val: Swift.UInt32) + public func getTimestampRange() -> Swift.UInt32 + public func setTimestampRange(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + @objc deinit + } +} +public typealias Result_RetryDecodeErrorZ = LightningDevKit.Bindings.Result_RetryDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RetryDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddInput? + public func getValue() -> LightningDevKit.Bindings.Retry? @objc deinit } } -public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate +public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] - public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) - public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] - public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) - public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] - public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) - public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] - public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) - public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? - public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) - public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned - public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) - public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) - public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> Swift.Bool? + @objc deinit + } +} +public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_SignatureCVec_SignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ +public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_SignatureCVec_SignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? + public init() + public func getMinSeenSecret() -> Swift.UInt64 + public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState -extension LightningDevKit.Bindings { - public enum ChannelShutdownState { - case NotShuttingDown - case ShutdownInitiated - case ResolvingHTLCs - case NegotiatingClosingFee - case ShutdownComplete - public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ +public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? @objc deinit } } -public typealias DecodeError = LightningDevKit.Bindings.DecodeError +public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DecodeErrorType { - case UnknownVersion - case UnknownRequiredFeature - case InvalidValue - case ShortRead - case BadLengthDescriptor - case Io - case UnsupportedCompression - public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType - public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError - public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError - public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError - public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError - public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError - public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError - public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError - public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool - public func getValueAsIo() -> LightningDevKit.Bindings.IOError? + public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WarningMessage? @objc deinit } } -public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider +public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ +public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReady? + public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? @objc deinit } } -public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +public typealias PaymentConstraints = LightningDevKit.Bindings.PaymentConstraints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentConstraints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + public func getMaxCltvExpiry() -> Swift.UInt32 + public func setMaxCltvExpiry(val: Swift.UInt32) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public init(maxCltvExpiryArg: Swift.UInt32, htlcMinimumMsatArg: Swift.UInt64) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ +public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannel? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? @objc deinit } } -public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate +public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? @objc deinit } } -public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor +public typealias Future = LightningDevKit.Bindings.Future extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) - public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] - public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] - public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] - public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func getUpdateFuture() -> LightningDevKit.Bindings.Future - public func rebroadcastPendingClaims() - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func asWatch() -> LightningDevKit.Bindings.Watch - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError +public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ClosingSigned? @objc deinit } } -public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner +public typealias RouteHint = LightningDevKit.Bindings.RouteHint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] - open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_SignatureNoneZ + public func getA() -> [LightningDevKit.Bindings.RouteHintHop] + public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) + public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures +public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } -public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection +public typealias Result_CVec_u8ZIOErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] - public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) - public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? - public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) - public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias FilesystemPersister = LightningDevKit.Bindings.FilesystemPersister +public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FilesystemPersister : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(pathToChannelData: Swift.String) - public func getDataDir() -> Swift.String - public func readChannelmonitors(entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ + public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func debugLogLiquidityStats() + public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? + public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? + public func historicalEstimatedPaymentSuccessProbability(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId, amountMsat: Swift.UInt64, params: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.Double? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func asScore() -> LightningDevKit.Bindings.Score + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool +public typealias NodeId = LightningDevKit.Bindings.NodeId +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId + public func asSlice() -> [Swift.UInt8] + public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner +public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) - open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func getNodeSignature1() -> [Swift.UInt8] + public func setNodeSignature1(val: [Swift.UInt8]) + public func getNodeSignature2() -> [Swift.UInt8] + public func setNodeSignature2(val: [Swift.UInt8]) + public func getBitcoinSignature1() -> [Swift.UInt8] + public func setBitcoinSignature1(val: [Swift.UInt8]) + public func getBitcoinSignature2() -> [Swift.UInt8] + public func setBitcoinSignature2(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ +public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum ChannelMonitorUpdateStatus { + case Completed + case InProgress + case UnrecoverableError + public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAckRbf? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters +public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func contestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func isOwned() -> Swift.Bool + public enum HTLCDestinationType { + case NextHopChannel + case UnknownNextHop + case InvalidForward + case FailedPayment + public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType + public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? + public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? + public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? + public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? @objc deinit + @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } } } -public typealias Result_PaymentSecretNoneZ = LightningDevKit.Bindings.Result_PaymentSecretNoneZ +public typealias Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ = LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.SendError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)? @objc deinit } } -public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty - public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? - public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getShortChannelId() -> Swift.UInt64? - public func setShortChannelId(val: Swift.UInt64?) - public func getOutboundScidAlias() -> Swift.UInt64? - public func setOutboundScidAlias(val: Swift.UInt64?) - public func getInboundScidAlias() -> Swift.UInt64? - public func setInboundScidAlias(val: Swift.UInt64?) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public func getUnspendablePunishmentReserve() -> Swift.UInt64? - public func setUnspendablePunishmentReserve(val: Swift.UInt64?) - public func getUserChannelId() -> [Swift.UInt8] - public func setUserChannelId(val: [Swift.UInt8]) - public func getFeerateSatPer1000Weight() -> Swift.UInt32? - public func setFeerateSatPer1000Weight(val: Swift.UInt32?) - public func getBalanceMsat() -> Swift.UInt64 - public func setBalanceMsat(val: Swift.UInt64) - public func getOutboundCapacityMsat() -> Swift.UInt64 - public func setOutboundCapacityMsat(val: Swift.UInt64) - public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 - public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) - public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 - public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) - public func getInboundCapacityMsat() -> Swift.UInt64 - public func setInboundCapacityMsat(val: Swift.UInt64) - public func getConfirmationsRequired() -> Swift.UInt32? - public func setConfirmationsRequired(val: Swift.UInt32?) - public func getConfirmations() -> Swift.UInt32? - public func setConfirmations(val: Swift.UInt32?) - public func getForceCloseSpendDelay() -> Swift.UInt16? - public func setForceCloseSpendDelay(val: Swift.UInt16?) - public func getIsOutbound() -> Swift.Bool - public func setIsOutbound(val: Swift.Bool) - public func getIsChannelReady() -> Swift.Bool - public func setIsChannelReady(val: Swift.Bool) - public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? - public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) - public func getIsUsable() -> Swift.Bool - public func setIsUsable(val: Swift.Bool) - public func getIsPublic() -> Swift.Bool - public func setIsPublic(val: Swift.Bool) - public func getInboundHtlcMinimumMsat() -> Swift.UInt64? - public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getInboundHtlcMaximumMsat() -> Swift.UInt64? - public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) - public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? - public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) - public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) - public func getInboundPaymentScid() -> Swift.UInt64? - public func getOutboundPaymentScid() -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias Result_PublicKeyErrorZ = LightningDevKit.Bindings.Result_PublicKeyErrorZ +public typealias Result_PaymentRelayDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentRelayDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentRelay) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentRelay? @objc deinit } } -public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId +public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool - public func isOwned() -> Swift.Bool + public enum ParseOrSemanticErrorType { + case ParseError + case SemanticError + public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType + public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? @objc deinit } } -public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentError = LightningDevKit.Bindings.PaymentError +public typealias SendError = LightningDevKit.Bindings.SendError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PaymentErrorType { - case Invoice - case Sending - public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public enum SendErrorType { + case Secp256k1 + case TooBigPacket + case TooFewBlindedHops + case InvalidFirstHop + case InvalidMessage + case BufferFull + case GetNodeIdFailed + case BlindedPathAdvanceFailed + public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType - public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError - public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError - public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool - public func getValueAsInvoice() -> Swift.String? - public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType + public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError + public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError + public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError + public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError + public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError + public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError + public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool + public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? @objc deinit } } -public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHint? @objc deinit } } -public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ +public typealias Result_VerifiedInvoiceRequestNoneZ = LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_VerifiedInvoiceRequestNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.VerifiedInvoiceRequest) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAlias? + public func getValue() -> LightningDevKit.Bindings.VerifiedInvoiceRequest? @objc deinit } } -public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? @objc deinit } } -public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ +public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BigSize? + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingTxid() -> [Swift.UInt8]? + public func setFundingTxid(val: [Swift.UInt8]) + public func getFundingOutputIndex() -> Swift.UInt16 + public func setFundingOutputIndex(val: Swift.UInt16) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ +public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Refund? @objc deinit } } -public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ +public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? @objc deinit } } -public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ +public typealias FailureCode = LightningDevKit.Bindings.FailureCode extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FailureCode : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UntrustedString? + public enum FailureCodeType { + case TemporaryNodeFailure + case RequiredNodeFeatureMissing + case IncorrectOrUnknownPaymentDetails + case InvalidOnionPayload + public static func == (a: LightningDevKit.Bindings.FailureCode.FailureCodeType, b: LightningDevKit.Bindings.FailureCode.FailureCodeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.FailureCode.FailureCodeType + public class func initWithTemporaryNodeFailure() -> LightningDevKit.Bindings.FailureCode + public class func initWithRequiredNodeFeatureMissing() -> LightningDevKit.Bindings.FailureCode + public class func initWithIncorrectOrUnknownPaymentDetails() -> LightningDevKit.Bindings.FailureCode + public class func initWithInvalidOnionPayload(a: (Swift.UInt64, Swift.UInt16)?) -> LightningDevKit.Bindings.FailureCode + public func getValueAsInvalidOnionPayload() -> (Swift.UInt64, Swift.UInt16)?? @objc deinit } } -public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ +public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] + public func signature() -> [Swift.UInt8] + public func signableHash() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ +public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool + public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) + public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction + public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public func toHolderValueSat() -> Swift.UInt64 + public func toCounterpartyValueSat() -> Swift.UInt64 + public func toHolderScript() -> [Swift.UInt8] + public func toCounterpartyScript() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PartiallySignedTransactionNoneZ = LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ +public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PartiallySignedTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? @objc deinit } } -public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters +public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getUnspendablePunishmentReserve() -> Swift.UInt64 + public func setUnspendablePunishmentReserve(val: Swift.UInt64) + public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) + public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? + public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? + public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) + public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters +public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPayee() -> LightningDevKit.Bindings.Payee - public func setPayee(val: LightningDevKit.Bindings.Payee) - public func getExpiryTime() -> Swift.UInt64? - public func setExpiryTime(val: Swift.UInt64?) - public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 - public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) - public func getMaxPathCount() -> Swift.UInt8 - public func setMaxPathCount(val: Swift.UInt8) - public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 - public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) - public func getPreviouslyFailedChannels() -> [Swift.UInt64] - public func setPreviouslyFailedChannels(val: [Swift.UInt64]) - public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters - public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters - public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ +public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? + public func getValue() -> LightningDevKit.Bindings.OnionMessage? @objc deinit } } -public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +public typealias Result_CVec_StrZIOErrorZ = LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_StrZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithOk(o: [Swift.String]) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? - @objc deinit - } -} -public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func channel() -> LightningDevKit.Bindings.ChannelInfo - public func htlcMaximumMsat() -> Swift.UInt64 - public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.String]? @objc deinit } } -public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler +public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) - open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider + public func getBlindedNodeId() -> [Swift.UInt8] + public func setBlindedNodeId(val: [Swift.UInt8]) + public func getEncryptedPayload() -> [Swift.UInt8] + public func setEncryptedPayload(val: [Swift.UInt8]) + public init(blindedNodeIdArg: [Swift.UInt8], encryptedPayloadArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxIn = LightningDevKit.Bindings.TxIn +public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) - public func getWitness() -> [Swift.UInt8] - public func getScriptSig() -> [Swift.UInt8] - public func getSequence() -> Swift.UInt32 - public func getPreviousTxid() -> [Swift.UInt8] - public func getPreviousVout() -> Swift.UInt32 + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? @objc deinit } } -public typealias Retry = LightningDevKit.Bindings.Retry +public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RetryType { - case Attempts - case Timeout - public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public enum GraphSyncErrorType { + case DecodeError + case LightningError + public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType - public class func initWithAttempts(a: Swift.UInt) -> LightningDevKit.Bindings.Retry - public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry - public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func getValueAsAttempts() -> Swift.UInt? - public func getValueAsTimeout() -> Swift.UInt64? - @objc deinit - } -} -public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getBaseMsat() -> Swift.UInt32 - public func setBaseMsat(val: Swift.UInt32) - public func getProportionalMillionths() -> Swift.UInt32 - public func setProportionalMillionths(val: Swift.UInt32) - public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType + public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError + public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError + public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? + public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop +public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSrcNodeId() -> [Swift.UInt8] - public func setSrcNodeId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64? - public func setHtlcMinimumMsat(val: Swift.UInt64?) - public func getHtlcMaximumMsat() -> Swift.UInt64? - public func setHtlcMaximumMsat(val: Swift.UInt64?) - public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) + public enum SpendableOutputDescriptorType { + case StaticOutput + case DelayedPaymentOutput + case StaticPaymentOutput + public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType + public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? + public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit + @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func getOutput() -> LightningDevKit.Bindings.TxOut + @objc deinit + } } } -public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ +public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? + public enum OnionMessageContentsType { + case Offers + case Custom + public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType + public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents + public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents + public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? + public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +public typealias Result_ThirtyTwoBytesAPIErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OutPoint? + public func getError() -> LightningDevKit.Bindings.APIError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange +public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool - public func endBlocknum() -> Swift.UInt32 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func getNodeSecretKey() -> [Swift.UInt8] + public func getPhantomNodeSecretKey() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SendError? - @objc deinit - } -} -public typealias LockableScore = LightningDevKit.Bindings.LockableScore +public typealias LightningError = LightningDevKit.Bindings.LightningError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func lock() -> LightningDevKit.Bindings.Score + public func getErr() -> Swift.String + public func setErr(val: Swift.String) + public func getAction() -> LightningDevKit.Bindings.ErrorAction + public func setAction(val: LightningDevKit.Bindings.ErrorAction) + public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +public typealias Quantity = LightningDevKit.Bindings.Quantity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool - public func setKeysendOptional() - public func setKeysendRequired() - public func supportsKeysend() -> Swift.Bool - public func requiresKeysend() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getFlags() -> Swift.UInt8 - public func setFlags(val: Swift.UInt8) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getExcessData() -> [Swift.UInt8] - public func setExcessData(val: [Swift.UInt8]) - public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getRevocationKey() -> [Swift.UInt8] + public func setRevocationKey(val: [Swift.UInt8]) + public func getBroadcasterHtlcKey() -> [Swift.UInt8] + public func setBroadcasterHtlcKey(val: [Swift.UInt8]) + public func getCountersignatoryHtlcKey() -> [Swift.UInt8] + public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) + public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] + public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) + public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ +public typealias Result_StrSecp256k1ErrorZ = LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StrSecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> Swift.String? @objc deinit } } -public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +public typealias ProbingError = LightningDevKit.Bindings.ProbingError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ProbingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + public enum ProbingErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.ProbingError.ProbingErrorType, b: LightningDevKit.Bindings.ProbingError.ProbingErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbingError.ProbingErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.ProbingError + public class func initWithSending(a: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.ProbingError + public class func eq(a: LightningDevKit.Bindings.ProbingError, b: LightningDevKit.Bindings.ProbingError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.ProbeSendFailure? @objc deinit } } -public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ +public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] + public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_PaymentHashPaymentSecretZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ +public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? @objc deinit } } -public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public enum PaymentSendFailureType { + case ParameterError + case PathParameterError + case AllFailedResendSafe + case DuplicatePayment + case PartialFailure + public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType + public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func eq(a: LightningDevKit.Bindings.PaymentSendFailure, b: LightningDevKit.Bindings.PaymentSendFailure) -> Swift.Bool + public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? + public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? + public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? + public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? @objc deinit + @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] + public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } } } -public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) + public func asRouter() -> LightningDevKit.Bindings.Router public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ +public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Pong? + public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? @objc deinit } } -public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError +public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SignOrCreationErrorType { - case SignError - case CreationError - public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType - public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError - public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError - public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? + public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelConfig? @objc deinit } } -public typealias Balance = LightningDevKit.Bindings.Balance +public typealias IOError = LightningDevKit.Bindings.IOError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum BalanceType { - case ClaimableOnChannelClose - case ClaimableAwaitingConfirmations - case ContentiousClaimable - case MaybeTimeoutClaimableHTLC - case MaybePreimageClaimableHTLC - case CounterpartyRevokedOutputClaimable - public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType - public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance - public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool - public func claimableAmountSatoshis() -> Swift.UInt64 - public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? - public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? - public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? - public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? - public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? - public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? - @objc deinit - @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getConfirmationHeight() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getTimeoutHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentPreimage() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getClaimableHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getExpiryHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit + public enum IOError { + case NotFound + case PermissionDenied + case ConnectionRefused + case ConnectionReset + case ConnectionAborted + case NotConnected + case AddrInUse + case AddrNotAvailable + case BrokenPipe + case AlreadyExists + case WouldBlock + case InvalidInput + case InvalidData + case TimedOut + case WriteZero + case Interrupted + case Other + case UnexpectedEof + public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get } } } -public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ +public typealias Result_ClaimedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClaimedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClaimedHTLC) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WarningMessage? + public func getValue() -> LightningDevKit.Bindings.ClaimedHTLC? @objc deinit } } -public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ +public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxInitRbf? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_StringErrorZ = LightningDevKit.Bindings.Result_StringErrorZ +public typealias Result_PublicKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StringErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PublicKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StringErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> Swift.String? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel +public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + @objc deinit + } +} +public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMinFeeSatoshis() -> Swift.UInt64 + public func setMinFeeSatoshis(val: Swift.UInt64) + public func getMaxFeeSatoshis() -> Swift.UInt64 + public func setMaxFeeSatoshis(val: Swift.UInt64) + public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} extension LightningDevKit.Bindings.Currency : Swift.Equatable {} extension LightningDevKit.Bindings.Currency : Swift.Hashable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Equatable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Equatable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} -extension LightningDevKit.Bindings.Network : Swift.Equatable {} -extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Hashable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} extension LightningDevKit.Bindings.Level : Swift.Equatable {} extension LightningDevKit.Bindings.Level : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Hashable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} extension LightningDevKit.Bindings.Recipient : Swift.Equatable {} extension LightningDevKit.Bindings.Recipient : Swift.Hashable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} -extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} -extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Equatable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} +extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} +extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Equatable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Hashable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} -extension LightningDevKit.Bindings.IOError : Swift.Equatable {} -extension LightningDevKit.Bindings.IOError : Swift.Hashable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Equatable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Equatable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} +extension LightningDevKit.Bindings.Network : Swift.Equatable {} +extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Equatable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Hashable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.IOError : Swift.Equatable {} +extension LightningDevKit.Bindings.IOError : Swift.Hashable {} diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc index fc80843d..4a072bb9 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc differ diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface index 8e598330..0cb916b3 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface @@ -7,561 +7,1358 @@ import Foundation @_exported import LightningDevKit import Swift import _Concurrency -public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput +public typealias Result_SocketAddressDecodeErrorZ = LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias TxComplete = LightningDevKit.Bindings.TxComplete +public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool + public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public func intoTransaction() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler +public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) - public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + @objc deinit + } +} +public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? + public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) + public func getMessage() -> LightningDevKit.Bindings.UntrustedString + public func setMessage(val: LightningDevKit.Bindings.UntrustedString) + public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? @objc deinit } } -public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC +public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getFailureCode() -> Swift.UInt16 - public func setFailureCode(val: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) + public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider +public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] - open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner - open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - open func getDestinationScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? @objc deinit } } -public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getEnabled() -> Swift.Bool - public func setEnabled(val: Swift.Bool) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? - public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) - public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func getA() -> [Swift.UInt8] + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func channel() -> LightningDevKit.Bindings.ChannelInfo + public func htlcMaximumMsat() -> Swift.UInt64 + public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ +public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? @objc deinit } } -public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField +public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTlvFieldnum() -> Swift.UInt64 - public func setTlvFieldnum(val: Swift.UInt64) - public func getSuggestedValue() -> [Swift.UInt8]? - public func setSuggestedValue(val: [Swift.UInt8]?) - public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeId? @objc deinit } } -public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ +public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +public typealias Record = LightningDevKit.Bindings.Record extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OffersMessage? + public func getLevel() -> LightningDevKit.Bindings.Level + public func setLevel(val: LightningDevKit.Bindings.Level) + public func getArgs() -> Swift.String + public func setArgs(val: Swift.String) + public func getModulePath() -> Swift.String + public func setModulePath(val: Swift.String) + public func getFile() -> Swift.String + public func setFile(val: Swift.String) + public func getLine() -> Swift.UInt32 + public func setLine(val: Swift.UInt32) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ +public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxComplete? + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getOnionRoutingPacket() -> LightningDevKit.Bindings.Packet + public func setOnionRoutingPacket(val: LightningDevKit.Bindings.Packet) + public init(blindingPointArg: [Swift.UInt8], onionRoutingPacketArg: LightningDevKit.Bindings.Packet) + public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ +public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? + public func getValue() -> LightningDevKit.Bindings.MonitorEvent? @objc deinit } } -public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor +public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SpendableOutputDescriptorType { - case StaticOutput - case DelayedPaymentOutput - case StaticPaymentOutput - public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public enum EffectiveCapacityType { + case ExactLiquidity + case AdvertisedMaxHTLC + case Total + case Infinite + case HintMaxHTLC + case Unknown + public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType - public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor - public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? - public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? - public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType + public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity + public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity + public func asMsat() -> Swift.UInt64 + public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? + public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? + public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? + public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? @objc deinit - @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getOutput() -> LightningDevKit.Bindings.TxOut + public func getLiquidityMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCapacityMsat() -> Swift.UInt64 + public func getHtlcMaximumMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountMsat() -> Swift.UInt64 @objc deinit } } } -public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ +public typealias PathFailure = LightningDevKit.Bindings.PathFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? + public enum PathFailureType { + case InitialSend + case OnPath + public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType + public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure + public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure + public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? + public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? @objc deinit + @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> LightningDevKit.Bindings.APIError + @objc deinit + } + @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? + @objc deinit + } } } -public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ +public typealias Result_SchnorrSignatureNoneZ = LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SchnorrSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ +public typealias Watch = LightningDevKit.Bindings.Watch extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public init() + open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] @objc deinit } } -public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ +public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InvoiceError? + public func getValue() -> LightningDevKit.Bindings.BigSize? @objc deinit } } -public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? @objc deinit } } -public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore +public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asLockableScore() -> LightningDevKit.Bindings.LockableScore - public func write() -> [Swift.UInt8] - public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore - public init(score: LightningDevKit.Bindings.Score) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? @objc deinit } } -public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice - public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func timestamp() -> Swift.UInt64 - public func durationSinceEpoch() -> Swift.UInt64 - public func paymentHash() -> [Swift.UInt8]? - public func payeePubKey() -> [Swift.UInt8]? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func recoverPayeePubKey() -> [Swift.UInt8] - public func expiresAt() -> Swift.UInt64? - public func expiryTime() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func durationUntilExpiry() -> Swift.UInt64 - public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 - public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool - public func minFinalCltvExpiryDelta() -> Swift.UInt64 - public func fallbackAddresses() -> [Swift.String] - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func routeHints() -> [LightningDevKit.Bindings.RouteHint] - public func currency() -> LightningDevKit.Bindings.Currency - public func amountMilliSatoshis() -> Swift.UInt64? - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ - public func toStr() -> Swift.String - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RoutingFees? @objc deinit } } -public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs +public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(scorer: LightningDevKit.Bindings.Score, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias Currency = LightningDevKit.Bindings.Currency -extension LightningDevKit.Bindings { - public enum Currency { - case Bitcoin - case BitcoinTestnet - case Regtest - case Simnet - case Signet - public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? @objc deinit } } -public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ClosureReasonType { - case CounterpartyForceClosed - case HolderForceClosed - case CooperativeClosure - case CommitmentTxConfirmed - case FundingTimedOut - case ProcessingError - case DisconnectedPeer - case OutdatedChannelManager - case CounterpartyCoopClosedUnfundedChannel - public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool + public enum MaxDustHTLCExposureType { + case FixedLimitMsat + case FeeRateMultiplier + public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType - public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason - public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason - public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason - public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason - public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason - public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason - public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason - public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType + public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure + public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? - public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public func getValueAsFixedLimitMsat() -> Swift.UInt64? + public func getValueAsFeeRateMultiplier() -> Swift.UInt64? @objc deinit - @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } } } -public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter +public typealias Result_ThirtyTwoBytesNoneZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) - public func asRouter() -> LightningDevKit.Bindings.Router + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + @objc deinit + } +} +public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias ReceiveTlvs = LightningDevKit.Bindings.ReceiveTlvs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ReceiveTlvs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public init(paymentSecretArg: [Swift.UInt8], paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ +public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) + public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) + public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbingError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.ProbingError? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? + @objc deinit + } +} +public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOffered() -> Swift.Bool + public func setOffered(val: Swift.Bool) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getTransactionOutputIndex() -> Swift.UInt32? + public func setTransactionOutputIndex(val: Swift.UInt32?) + public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) + public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias BigSize = LightningDevKit.Bindings.BigSize +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(lockableScore: LightningDevKit.Bindings.LockableScore) + open func write() -> [Swift.UInt8] + public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + @objc deinit + } +} +public typealias Result_HTLCDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_HTLCDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSigned? + public func getValue() -> LightningDevKit.Bindings.HTLCDescriptor? @objc deinit } } -public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError +public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ extension LightningDevKit.Bindings { - public enum Bolt12SemanticError { - case AlreadyExpired - case UnsupportedChain - case UnexpectedChain - case MissingAmount - case InvalidAmount - case InsufficientAmount - case UnexpectedAmount - case UnsupportedCurrency - case UnknownRequiredFeatures - case UnexpectedFeatures - case MissingDescription - case MissingSigningPubkey - case InvalidSigningPubkey - case UnexpectedSigningPubkey - case MissingQuantity - case InvalidQuantity - case UnexpectedQuantity - case InvalidMetadata - case UnexpectedMetadata - case MissingPayerMetadata - case MissingPayerId - case MissingPaths - case InvalidPayInfo - case MissingCreationTime - case MissingPaymentHash - case MissingSignature - public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsType? + @objc deinit } } -public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures +public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + @objc deinit + } +} +public typealias Result_OffersMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OffersMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias BlindedHopFeatures = LightningDevKit.Bindings.BlindedHopFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class BlindedHopFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.BlindedHopFeatures, b: LightningDevKit.Bindings.BlindedHopFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.BlindedHopFeatures public func requiresUnknownBitsFrom() -> Swift.Bool public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setPaymentMetadataOptional() - public func setPaymentMetadataRequired() - public func supportsPaymentMetadata() -> Swift.Bool - public func requiresPaymentMetadata() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public enum RetryableSendFailure { + case PaymentExpired + case RouteNotFound + case DuplicatePayment + public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MessageSendEventType { - case SendAcceptChannel - case SendAcceptChannelV2 - case SendOpenChannel + public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + @objc deinit + } +} +public typealias Result_ThirtyTwoBytesPaymentSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + @objc deinit + } +} +public typealias Bolt11Invoice = LightningDevKit.Bindings.Bolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11Invoice, b: LightningDevKit.Bindings.Bolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func intoSignedRaw() -> LightningDevKit.Bindings.SignedRawBolt11Invoice + public func checkSignature() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func fromSigned(signedInvoice: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ + public func timestamp() -> Swift.UInt64 + public func durationSinceEpoch() -> Swift.UInt64 + public func paymentHash() -> [Swift.UInt8]? + public func payeePubKey() -> [Swift.UInt8]? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func recoverPayeePubKey() -> [Swift.UInt8] + public func expiresAt() -> Swift.UInt64? + public func expiryTime() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func durationUntilExpiry() -> Swift.UInt64 + public func expirationRemainingFromEpoch(time: Swift.UInt64) -> Swift.UInt64 + public func wouldExpire(atTime: Swift.UInt64) -> Swift.Bool + public func minFinalCltvExpiryDelta() -> Swift.UInt64 + public func fallbackAddresses() -> [Swift.String] + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func routeHints() -> [LightningDevKit.Bindings.RouteHint] + public func currency() -> LightningDevKit.Bindings.Currency + public func amountMilliSatoshis() -> Swift.UInt64? + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public func toStr() -> Swift.String + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func signature() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? + public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) + public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? + public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) + public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? + public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) + public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? + public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) + public func getChainMonitor() -> LightningDevKit.Bindings.Watch? + public func setChainMonitor(val: LightningDevKit.Bindings.Watch) + public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? + public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) + public func getRouter() -> LightningDevKit.Bindings.Router? + public func setRouter(val: LightningDevKit.Bindings.Router) + public func getLogger() -> LightningDevKit.Bindings.Logger? + public func setLogger(val: LightningDevKit.Bindings.Logger) + public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig + public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Currency = LightningDevKit.Bindings.Currency +extension LightningDevKit.Bindings { + public enum Currency { + case Bitcoin + case BitcoinTestnet + case Regtest + case Simnet + case Signet + public static func == (a: LightningDevKit.Bindings.Currency, b: LightningDevKit.Bindings.Currency) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_ECDSASignatureNoneZ = LightningDevKit.Bindings.Result_ECDSASignatureNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ECDSASignatureNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? + @objc deinit + } +} +public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum PaymentPurposeType { + case InvoicePayment + case SpontaneousPayment + public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType + public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose + public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? + public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentPreimage() -> [Swift.UInt8]? + public func getPaymentSecret() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + @objc deinit + } +} +public typealias ForwardNode = LightningDevKit.Bindings.ForwardNode +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ForwardNode : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTlvs() -> LightningDevKit.Bindings.ForwardTlvs + public func setTlvs(val: LightningDevKit.Bindings.ForwardTlvs) + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public init(tlvsArg: LightningDevKit.Bindings.ForwardTlvs, nodeIdArg: [Swift.UInt8], htlcMaximumMsatArg: Swift.UInt64) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BindingsInit? + @objc deinit + } +} +public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty + public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? + public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getShortChannelId() -> Swift.UInt64? + public func setShortChannelId(val: Swift.UInt64?) + public func getOutboundScidAlias() -> Swift.UInt64? + public func setOutboundScidAlias(val: Swift.UInt64?) + public func getInboundScidAlias() -> Swift.UInt64? + public func setInboundScidAlias(val: Swift.UInt64?) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getUnspendablePunishmentReserve() -> Swift.UInt64? + public func setUnspendablePunishmentReserve(val: Swift.UInt64?) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getFeerateSatPer1000Weight() -> Swift.UInt32? + public func setFeerateSatPer1000Weight(val: Swift.UInt32?) + public func getBalanceMsat() -> Swift.UInt64 + public func setBalanceMsat(val: Swift.UInt64) + public func getOutboundCapacityMsat() -> Swift.UInt64 + public func setOutboundCapacityMsat(val: Swift.UInt64) + public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 + public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) + public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 + public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) + public func getInboundCapacityMsat() -> Swift.UInt64 + public func setInboundCapacityMsat(val: Swift.UInt64) + public func getConfirmationsRequired() -> Swift.UInt32? + public func setConfirmationsRequired(val: Swift.UInt32?) + public func getConfirmations() -> Swift.UInt32? + public func setConfirmations(val: Swift.UInt32?) + public func getForceCloseSpendDelay() -> Swift.UInt16? + public func setForceCloseSpendDelay(val: Swift.UInt16?) + public func getIsOutbound() -> Swift.Bool + public func setIsOutbound(val: Swift.Bool) + public func getIsChannelReady() -> Swift.Bool + public func setIsChannelReady(val: Swift.Bool) + public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? + public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) + public func getIsUsable() -> Swift.Bool + public func setIsUsable(val: Swift.Bool) + public func getIsPublic() -> Swift.Bool + public func setIsPublic(val: Swift.Bool) + public func getInboundHtlcMinimumMsat() -> Swift.UInt64? + public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getInboundHtlcMaximumMsat() -> Swift.UInt64? + public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) + public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? + public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) + public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) + public func getInboundPaymentScid() -> Swift.UInt64? + public func getOutboundPaymentScid() -> Swift.UInt64? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias TaggedHash = LightningDevKit.Bindings.TaggedHash +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TaggedHash : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + @objc deinit + } +} +public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.UtxoLookupError? + public func getValue() -> LightningDevKit.Bindings.TxOut? + @objc deinit + } +} +public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func builtTransaction() -> [Swift.UInt8] + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_ChannelDerivationParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ChannelDerivationParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDerivationParameters) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDerivationParameters? + @objc deinit + } +} +public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getHtlcSignatures() -> [[Swift.UInt8]] + public func setHtlcSignatures(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ProbeSendFailure = LightningDevKit.Bindings.ProbeSendFailure +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ProbeSendFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ProbeSendFailureType { + case RouteNotFound + case SendingFailed + public static func == (a: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType, b: LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType + public class func initWithRouteNotFound() -> LightningDevKit.Bindings.ProbeSendFailure + public class func initWithSendingFailed(a: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.ProbeSendFailure + public class func eq(a: LightningDevKit.Bindings.ProbeSendFailure, b: LightningDevKit.Bindings.ProbeSendFailure) -> Swift.Bool + public func getValueAsSendingFailed() -> LightningDevKit.Bindings.PaymentSendFailure? + @objc deinit + } +} +public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MonitorEventType { + case HTLCEvent + case HolderForceClosed + case Completed + public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType + public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithHolderForceClosed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent + public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent + public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValueAsHolderForceClosed() -> LightningDevKit.Bindings.OutPoint? + public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? + @objc deinit + @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + public func getMonitorUpdateId() -> Swift.UInt64 + @objc deinit + } + } +} +public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingSigned? + @objc deinit + } +} +public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getBlockHash() -> [Swift.UInt8]? + public func setBlockHash(val: [Swift.UInt8]?) + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getScriptPubkey() -> [Swift.UInt8] + public func setScriptPubkey(val: [Swift.UInt8]) + public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum OffersMessageType { + case InvoiceRequest + case Invoice + case InvoiceError + public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType + public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage + public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage + public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool + public func tlvType() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ + public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? + public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? + public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + @objc deinit + } +} +public typealias Input = LightningDevKit.Bindings.Input +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut + public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt + open func disconnectSocket() + open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool + open func hash() -> Swift.UInt64 + @objc deinit + } +} +public typealias PaymentRelay = LightningDevKit.Bindings.PaymentRelay +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class PaymentRelay : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public init(cltvExpiryDeltaArg: Swift.UInt16, feeProportionalMillionthsArg: Swift.UInt32, feeBaseMsatArg: Swift.UInt32) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +extension LightningDevKit.Bindings { + public enum SiPrefix { + case Milli + case Micro + case Nano + case Pico + public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.InMemorySigner? + @objc deinit + } +} +public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedHop? + @objc deinit + } +} +public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getFlags() -> Swift.UInt8 + public func setFlags(val: Swift.UInt8) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Offer? + @objc deinit + } +} +public typealias MessageSendEvent = LightningDevKit.Bindings.MessageSendEvent +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MessageSendEvent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum MessageSendEventType { + case SendAcceptChannel + case SendAcceptChannelV2 + case SendOpenChannel case SendOpenChannelV2 case SendFundingCreated case SendFundingSigned @@ -612,7 +1409,7 @@ extension LightningDevKit.Bindings { public class func initWithSendTxSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxInitRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendTxAckRbf(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.MessageSendEvent - public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.MessageSendEvent + public class func initWithSendTxAbort(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendChannelReady(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithSendAnnouncementSignatures(nodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.MessageSendEvent public class func initWithUpdateHtlcs(nodeId: [Swift.UInt8], updates: LightningDevKit.Bindings.CommitmentUpdate) -> LightningDevKit.Bindings.MessageSendEvent @@ -765,7 +1562,7 @@ extension LightningDevKit.Bindings { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.TxAddInput + public func getMsg() -> LightningDevKit.Bindings.TxAbort @objc deinit } @_hasMissingDesignatedInitializers public class SendChannelReady : LightningDevKit.NativeTypeWrapper { @@ -854,553 +1651,257 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class HandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getAction() -> LightningDevKit.Bindings.ErrorAction - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter - @objc deinit - } - } -} -public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOk() -> Swift.Bool - @objc deinit - } -} -public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getRevocationPubkey() -> [Swift.UInt8] - public func setRevocationPubkey(val: [Swift.UInt8]) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? - @objc deinit - } -} -public typealias Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? - @objc deinit - } -} -public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) - open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] - open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] - open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func channelKeysId() -> [Swift.UInt8] - open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - @objc deinit - } -} -public typealias Result__u832APIErrorZ = LightningDevKit.Bindings.Result__u832APIErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result__u832APIErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.BlindedHop] - public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 - public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? - @objc deinit - } -} -public typealias BestBlock = LightningDevKit.Bindings.BestBlock -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool - public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock - public init(blockHash: [Swift.UInt8], height: Swift.UInt32) - public func blockHash() -> [Swift.UInt8] - public func height() -> Swift.UInt32 - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 - public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) - public func getLiquidityOffsetHalfLife() -> Swift.UInt64 - public func setLiquidityOffsetHalfLife(val: Swift.UInt64) - public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget -extension LightningDevKit.Bindings { - public enum ConfirmationTarget { - case MempoolMinimum - case Background - case Normal - case HighPriority - public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.BlindedPath? - @objc deinit - } -} -public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public func getSats() -> Swift.UInt64 - public func setSats(val: Swift.UInt64) - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias CommitmentSigned = LightningDevKit.Bindings.CommitmentSigned -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentSigned : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getHtlcSignatures() -> [[Swift.UInt8]] - public func setHtlcSignatures(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8], htlcSignaturesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.CommitmentSigned, b: LightningDevKit.Bindings.CommitmentSigned) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FailureCode = LightningDevKit.Bindings.FailureCode -extension LightningDevKit.Bindings { - public enum FailureCode { - case TemporaryNodeFailure - case RequiredNodeFeatureMissing - case IncorrectOrUnknownPaymentDetails - public static func == (a: LightningDevKit.Bindings.FailureCode, b: LightningDevKit.Bindings.FailureCode) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + public func getNodeId() -> [Swift.UInt8] + public func getAction() -> LightningDevKit.Bindings.ErrorAction + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendChannelRangeQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendShortIdsQuery : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.QueryShortChannelIds + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendReplyChannelRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.ReplyChannelRange + @objc deinit + } + @_hasMissingDesignatedInitializers public class SendGossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.GossipTimestampFilter + @objc deinit } } } -public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ +public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? + public func getValue() -> LightningDevKit.Bindings.Shutdown? @objc deinit } } -public typealias InFlightHtlcs = LightningDevKit.Bindings.InFlightHtlcs +public typealias ScoreUpdate = LightningDevKit.Bindings.ScoreUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InFlightHtlcs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreUpdate : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - public func processPath(path: LightningDevKit.Bindings.Path, payerNodeId: [Swift.UInt8]) - public func addInflightHtlc(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64, usedMsat: Swift.UInt64) - public func usedLiquidityMsat(source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, channelScid: Swift.UInt64) -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getInflightHtlcMsat() -> Swift.UInt64 - public func setInflightHtlcMsat(val: Swift.UInt64) - public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) - public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Input = LightningDevKit.Bindings.Input -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Input : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getPreviousUtxo() -> LightningDevKit.Bindings.TxOut - public func setPreviousUtxo(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, previousUtxoArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Input, b: LightningDevKit.Bindings.Input) -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias TxOut = LightningDevKit.Bindings.TxOut -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) - public func getScriptPubkey() -> [Swift.UInt8] - public func getValue() -> Swift.UInt64 + open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) + open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) + open func probeSuccessful(path: LightningDevKit.Bindings.Path) @objc deinit } } -public typealias KeysManager = LightningDevKit.Bindings.KeysManager +public typealias WalletSource = LightningDevKit.Bindings.WalletSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) - public func getNodeSecretKey() -> [Swift.UInt8] - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public func isOwned() -> Swift.Bool + public init() + open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + open func getChangeScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias BigSize = LightningDevKit.Bindings.BigSize +public typealias Offer = LightningDevKit.Bindings.Offer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BigSize : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BigSize, b: LightningDevKit.Bindings.BigSize) -> Swift.Bool + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool + public func isExpired() -> Swift.Bool + public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool + public func expectsQuantity() -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - @objc deinit - } -} -public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AcceptChannel? - @objc deinit - } -} -public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PrivateRoute? - @objc deinit - } -} -public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? - @objc deinit - } -} -public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? - @objc deinit - } -} -public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim +public typealias Bolt12SemanticError = LightningDevKit.Bindings.Bolt12SemanticError extension LightningDevKit.Bindings { - public enum HTLCClaim { - case OfferedTimeout - case OfferedPreimage - case AcceptedTimeout - case AcceptedPreimage - case Revocation - public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public enum Bolt12SemanticError { + case AlreadyExpired + case UnsupportedChain + case UnexpectedChain + case MissingAmount + case InvalidAmount + case InsufficientAmount + case UnexpectedAmount + case UnsupportedCurrency + case UnknownRequiredFeatures + case UnexpectedFeatures + case MissingDescription + case MissingSigningPubkey + case InvalidSigningPubkey + case UnexpectedSigningPubkey + case MissingQuantity + case InvalidQuantity + case UnexpectedQuantity + case InvalidMetadata + case UnexpectedMetadata + case MissingPayerMetadata + case MissingPayerId + case MissingPaths + case InvalidPayInfo + case MissingCreationTime + case MissingPaymentHash + case MissingSignature + public static func == (a: LightningDevKit.Bindings.Bolt12SemanticError, b: LightningDevKit.Bindings.Bolt12SemanticError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Score = LightningDevKit.Bindings.Score +public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 - open func paymentPathFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func paymentPathSuccessful(path: LightningDevKit.Bindings.Path) - open func probeFailed(path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64) - open func probeSuccessful(path: LightningDevKit.Bindings.Path) - open func write() -> [Swift.UInt8] + public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters + public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) + public func getPerCommitmentNumber() -> Swift.UInt64 + public func setPerCommitmentNumber(val: Swift.UInt64) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment + public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) + public func getPreimage() -> [Swift.UInt8]? + public func setPreimage(val: [Swift.UInt8]?) + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCDescriptorDecodeErrorZ + public func outpoint() -> LightningDevKit.Bindings.OutPoint + public func previousUtxo() -> LightningDevKit.Bindings.TxOut + public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn + public func txOutput() -> LightningDevKit.Bindings.TxOut + public func witnessScript() -> [Swift.UInt8] + public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] + public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Fallback = LightningDevKit.Bindings.Fallback +public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum FallbackType { - case SegWitProgram - case PubKeyHash - case ScriptHash - public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public enum Bech32ErrorType { + case MissingSeparator + case InvalidChecksum + case InvalidLength + case InvalidChar + case InvalidData + case InvalidPadding + case MixedCase + public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType - public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool - public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? - public func getValueAsPubKeyHash() -> [Swift.UInt8]? - public func getValueAsScriptHash() -> [Swift.UInt8]? + public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType + public func getValueAsInvalidChar() -> Swift.UInt32? + public func getValueAsInvalidData() -> Swift.UInt8? @objc deinit - @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getVersion() -> Swift.UInt8 - public func getProgram() -> [Swift.UInt8] - @objc deinit - } } } -public typealias Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ +public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? - public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? + public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getHolderSelectedContestDelay() -> Swift.UInt16 + public func setHolderSelectedContestDelay(val: Swift.UInt16) + public func getIsOutboundFromHolder() -> Swift.Bool + public func setIsOutboundFromHolder(val: Swift.Bool) + public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) + public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool + public func isPopulated() -> Swift.Bool + public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature +public typealias Amount = LightningDevKit.Bindings.Amount extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MultiThreadedScoreLock = LightningDevKit.Bindings.MultiThreadedScoreLock +public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MultiThreadedScoreLock : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func asScore() -> LightningDevKit.Bindings.Score - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAlias? @objc deinit } } -public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +public typealias Sleeper = LightningDevKit.Bindings.Sleeper extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper + public init(futures: [LightningDevKit.Bindings.Future]) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } @@ -1416,1046 +1917,1181 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool - public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ - public func intoInner() -> LightningDevKit.Bindings.RouteHint - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias GossipSync = LightningDevKit.Bindings.GossipSync -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum GossipSyncType { - case P2P - case Rapid - case None - public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType - public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync - public class func none() -> LightningDevKit.Bindings.GossipSync - public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? - public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? - @objc deinit - } -} -public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeSignature() -> [Swift.UInt8] - public func setNodeSignature(val: [Swift.UInt8]) - public func getBitcoinSignature() -> [Swift.UInt8] - public func setBitcoinSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError -extension LightningDevKit.Bindings { - public enum UtxoLookupError { - case UnknownChain - case UnknownTx - public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Refund? - @objc deinit - } -} -public typealias Network = LightningDevKit.Bindings.Network +public typealias SocketAddressParseError = LightningDevKit.Bindings.SocketAddressParseError extension LightningDevKit.Bindings { - public enum Network { - case Bitcoin - case Testnet - case Regtest - case Signet - public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public enum SocketAddressParseError { + case SocketAddrParse + case InvalidInput + case InvalidPort + case InvalidOnionV3 + public static func == (a: LightningDevKit.Bindings.SocketAddressParseError, b: LightningDevKit.Bindings.SocketAddressParseError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias Ping = LightningDevKit.Bindings.Ping +public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPonglen() -> Swift.UInt16 - public func setPonglen(val: Swift.UInt16) - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getLatestUpdateId() -> Swift.UInt64 + public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) + public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] + public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) + public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] + public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func initialCounterpartyCommitmentTx() -> LightningDevKit.Bindings.CommitmentTransaction? + public func counterpartyCommitmentTxsFromUpdate(update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> [LightningDevKit.Bindings.CommitmentTransaction] + public func signToLocalJusticeTx(justiceTx: [Swift.UInt8], inputIdx: Swift.UInt, value: Swift.UInt64, commitmentNumber: Swift.UInt64) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func getCounterpartyNodeId() -> [Swift.UInt8]? + public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] + public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] + public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) + public func getSpendableOutputs(tx: [Swift.UInt8], confirmationHeight: Swift.UInt32) -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentIdPaymentErrorZ = LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentIdPaymentErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentError? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ +public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelDetails? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias Result_PayeePubKeyErrorZ = LightningDevKit.Bindings.Result_PayeePubKeyErrorZ +public typealias Result_AcceptChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PayeePubKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannelV2) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannelV2? @objc deinit } } -public typealias Route = LightningDevKit.Bindings.Route +public typealias Payee = LightningDevKit.Bindings.Payee extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaths() -> [LightningDevKit.Bindings.Path] - public func setPaths(val: [LightningDevKit.Bindings.Path]) - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters? - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public init(pathsArg: [LightningDevKit.Bindings.Path], paymentParamsArg: LightningDevKit.Bindings.PaymentParameters) + public enum PayeeType { + case Blinded + case Clear + public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType + public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee + public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool - public func getTotalFees() -> Swift.UInt64 - public func getTotalAmount() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool + public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? + public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? @objc deinit + @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] + public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] + public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func getFinalCltvExpiryDelta() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ +public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Ping? @objc deinit } } -public typealias Future = LightningDevKit.Bindings.Future +public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters +public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBasePenaltyMsat() -> Swift.UInt64 - public func setBasePenaltyMsat(val: Swift.UInt64) - public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) - public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 - public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) - public func getAntiProbingPenaltyMsat() -> Swift.UInt64 - public func setAntiProbingPenaltyMsat(val: Swift.UInt64) - public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 - public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) - public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters - public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) - public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) - public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) - public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) - public func clearManualPenalties() + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public func commitmentNumber() -> Swift.UInt64 + public func toBroadcasterValueSat() -> Swift.UInt64 + public func toCountersignatoryValueSat() -> Swift.UInt64 + public func feeratePerKw() -> Swift.UInt32 + public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction + public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ +public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) + public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 + public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ +public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? + public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript + public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func intoInner() -> [Swift.UInt8] + public func asLegacyPubkey() -> [Swift.UInt8]? + public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Level = LightningDevKit.Bindings.Level -extension LightningDevKit.Bindings { - public enum Level { - case Gossip - case Trace - case Debug - case Info - case Warn - case Error - public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } +@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { + public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + @objc deinit + open var hashValue: Swift.Int { + get } } -public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? - @objc deinit +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { + public func activate() -> Self + public func activateOnce() -> Self + @objc deinit +} +@_hasMissingDesignatedInitializers public class Bindings { + public enum PrintSeverity : Swift.UInt { + case DEBUG + case WARNING + case ERROR + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } } + public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) + public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) + public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer + public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper + public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String + public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer + public class func ldkGetCompiledVersion() -> Swift.String + public class func ldkCBindingsGetCompiledVersion() -> Swift.String + public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool + public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] + public class func readChannelMonitors(kvStore: LightningDevKit.Bindings.KVStore, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures + public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public class func parseOnionAddress(host: Swift.String, port: Swift.UInt16) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 + public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] + public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] + public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] + public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCounterpartyPaymentScript(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, paymentKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] + public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] + public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] + public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] + public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] + public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 + public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.ScoreLookUp, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + public class func createOnionMessage(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func preflightProbeInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func preflightProbeZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsat: Swift.UInt64, channelmanager: LightningDevKit.Bindings.ChannelManager, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ + public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") + public class func readThirtyTwoBytesChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func readThirtyTwoBytesChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + @objc deinit } -public typealias InvoiceRequest = LightningDevKit.Bindings.InvoiceRequest -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func metadata() -> [Swift.UInt8] - public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64? - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func quantity() -> Swift.UInt64? - public func payerId() -> [Swift.UInt8] - public func payerNote() -> LightningDevKit.Bindings.PrintableString? - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } +@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { + public init() + public func getPointer() -> Swift.UnsafeMutableRawPointer + @objc deinit } -public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ +public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InitFeatures? + public func getValue() -> LightningDevKit.Bindings.Pong? @objc deinit } } -public typealias Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ +public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PartiallySignedTransactionusizeZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], Swift.UInt)? - @objc deinit - } -} -public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func broadcastTransactions(txs: [[Swift.UInt8]]) - @objc deinit - } -} -public typealias ChannelTransactionParameters = LightningDevKit.Bindings.ChannelTransactionParameters -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getHolderPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setHolderPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getHolderSelectedContestDelay() -> Swift.UInt16 - public func setHolderSelectedContestDelay(val: Swift.UInt16) - public func getIsOutboundFromHolder() -> Swift.Bool - public func setIsOutboundFromHolder(val: Swift.Bool) - public func getCounterpartyParameters() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? - public func setCounterpartyParameters(val: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) - public func getFundingOutpoint() -> LightningDevKit.Bindings.OutPoint? - public func setFundingOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getChannelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func setChannelTypeFeatures(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(holderPubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, holderSelectedContestDelayArg: Swift.UInt16, isOutboundFromHolderArg: Swift.Bool, counterpartyParametersArg: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, fundingOutpointArg: LightningDevKit.Bindings.OutPoint, channelTypeFeaturesArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.ChannelTransactionParameters, b: LightningDevKit.Bindings.ChannelTransactionParameters) -> Swift.Bool - public func isPopulated() -> Swift.Bool - public func asHolderBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func asCounterpartyBroadcastable() -> LightningDevKit.Bindings.DirectedChannelTransactionParameters - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.Description? @objc deinit } } -public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler +public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? - open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func processingQueueHigh() -> Swift.Bool - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? @objc deinit } } -public typealias Router = LightningDevKit.Bindings.Router +public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? @objc deinit } } -public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK +public typealias UpdateFailMalformedHTLC = LightningDevKit.Bindings.UpdateFailMalformedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailMalformedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getPerCommitmentSecret() -> [Swift.UInt8]? - public func setPerCommitmentSecret(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getFailureCode() -> Swift.UInt16 + public func setFailureCode(val: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.UpdateFailMalformedHTLC, b: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ +public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelInfo) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelInfo? + public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? @objc deinit } } -public typealias ChannelManagerReadArgs = LightningDevKit.Bindings.ChannelManagerReadArgs +public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManagerReadArgs : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getEntropySource() -> LightningDevKit.Bindings.EntropySource? - public func setEntropySource(val: LightningDevKit.Bindings.EntropySource) - public func getNodeSigner() -> LightningDevKit.Bindings.NodeSigner? - public func setNodeSigner(val: LightningDevKit.Bindings.NodeSigner) - public func getSignerProvider() -> LightningDevKit.Bindings.SignerProvider? - public func setSignerProvider(val: LightningDevKit.Bindings.SignerProvider) - public func getFeeEstimator() -> LightningDevKit.Bindings.FeeEstimator? - public func setFeeEstimator(val: LightningDevKit.Bindings.FeeEstimator) - public func getChainMonitor() -> LightningDevKit.Bindings.Watch? - public func setChainMonitor(val: LightningDevKit.Bindings.Watch) - public func getTxBroadcaster() -> LightningDevKit.Bindings.BroadcasterInterface? - public func setTxBroadcaster(val: LightningDevKit.Bindings.BroadcasterInterface) - public func getRouter() -> LightningDevKit.Bindings.Router? - public func setRouter(val: LightningDevKit.Bindings.Router) - public func getLogger() -> LightningDevKit.Bindings.Logger? - public func setLogger(val: LightningDevKit.Bindings.Logger) - public func getDefaultConfig() -> LightningDevKit.Bindings.UserConfig - public func setDefaultConfig(val: LightningDevKit.Bindings.UserConfig) - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, feeEstimator: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, defaultConfig: LightningDevKit.Bindings.UserConfig, channelMonitors: [LightningDevKit.Bindings.ChannelMonitor]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit } } -public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures +public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public init() + open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage @objc deinit } } -public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty +public typealias Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func setNodeId(val: [Swift.UInt8]) - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getUnspendablePunishmentReserve() -> Swift.UInt64 - public func setUnspendablePunishmentReserve(val: Swift.UInt64) - public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? - public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) - public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? - public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? - public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) - public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? @objc deinit } } -public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + public func getValue() -> LightningDevKit.Bindings.UntrustedString? @objc deinit } } -public typealias Result_InMemorySignerDecodeErrorZ = LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ +public typealias Level = LightningDevKit.Bindings.Level extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InMemorySignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InMemorySigner) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InMemorySigner? - @objc deinit + public enum Level { + case Gossip + case Trace + case Debug + case Info + case Warn + case Error + public static func == (a: LightningDevKit.Bindings.Level, b: LightningDevKit.Bindings.Level) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_NodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ +public typealias Result_PaymentConstraintsDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentConstraintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentConstraints) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncement? + public func getValue() -> LightningDevKit.Bindings.PaymentConstraints? @objc deinit } } -public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction +public typealias Retry = LightningDevKit.Bindings.Retry extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] - public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public enum RetryType { + case Attempts + case Timeout + public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType + public class func initWithAttempts(a: Swift.UInt32) -> LightningDevKit.Bindings.Retry + public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry + public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool + public func hash() -> Swift.UInt64 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public func getValueAsAttempts() -> Swift.UInt32? + public func getValueAsTimeout() -> Swift.UInt64? @objc deinit } } -public typealias PrintableString = LightningDevKit.Bindings.PrintableString +public typealias Result_NonePaymentErrorZ = LightningDevKit.Bindings.Result_NonePaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? @objc deinit } } -public typealias WriteableScore = LightningDevKit.Bindings.WriteableScore +public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(lockableScore: LightningDevKit.Bindings.LockableScore) - open func write() -> [Swift.UInt8] - public func getLockableScore() -> LightningDevKit.Bindings.LockableScore + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) + public func getSelectedContestDelay() -> Swift.UInt16 + public func setSelectedContestDelay(val: Swift.UInt16) + public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NetAddressDecodeErrorZ = LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ +public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetAddressDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NetAddress) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetAddress? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture +public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeFeatures? @objc deinit } } -public typealias Persister = LightningDevKit.Bindings.Persister +public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneErrorZ - open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneErrorZ + public enum Bolt11ParseErrorType { + case Bech32Error + case ParseAmountError + case MalformedSignature + case BadPrefix + case UnknownCurrency + case UnknownSiPrefix + case MalformedHRP + case TooShortDataPart + case UnexpectedEndOfTaggedFields + case DescriptionDecodeError + case PaddingError + case IntegerOverflowError + case InvalidSegWitProgramLength + case InvalidPubKeyHashLength + case InvalidScriptHashLength + case InvalidRecoveryId + case InvalidSliceLength + case Skip + public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType + public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError + public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError + public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? + public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? + public func getValueAsInvalidSliceLength() -> Swift.String? @objc deinit } } -public typealias Filter = LightningDevKit.Bindings.Filter +public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) - open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? @objc deinit } } -public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart +public typealias MultiThreadedLockableScore = LightningDevKit.Bindings.MultiThreadedLockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedLockableScore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp - public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) - public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func asLockableScore() -> LightningDevKit.Bindings.LockableScore + public func write() -> [Swift.UInt8] + public func asWriteableScore() -> LightningDevKit.Bindings.WriteableScore + public init(score: LightningDevKit.Bindings.Score) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Listen = LightningDevKit.Bindings.Listen +public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) - open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(scriptArg: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ +public typealias Result_ThirtyTwoBytesRetryableSendFailureZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady +public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextPerCommitmentPoint() -> [Swift.UInt8] - public func setNextPerCommitmentPoint(val: [Swift.UInt8]) - public func getShortChannelIdAlias() -> Swift.UInt64? - public func setShortChannelIdAlias(val: Swift.UInt64?) - public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getNetworks() -> [[Swift.UInt8]]? + public func setNetworks(val: [[Swift.UInt8]]?) + public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.SocketAddress? + public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.SocketAddress?) + public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.SocketAddress?) + public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError -extension LightningDevKit.Bindings { - public enum Bolt11SemanticError { - case NoPaymentHash - case MultiplePaymentHashes - case NoDescription - case MultipleDescriptions - case NoPaymentSecret - case MultiplePaymentSecrets - case InvalidFeatures - case InvalidRecoveryId - case InvalidSignature - case ImpreciseAmount - public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +public typealias ChannelUsage = LightningDevKit.Bindings.ChannelUsage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUsage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteParameters? + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getInflightHtlcMsat() -> Swift.UInt64 + public func setInflightHtlcMsat(val: Swift.UInt64) + public func getEffectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity + public func setEffectiveCapacity(val: LightningDevKit.Bindings.EffectiveCapacity) + public init(amountMsatArg: Swift.UInt64, inflightHtlcMsatArg: Swift.UInt64, effectiveCapacityArg: LightningDevKit.Bindings.EffectiveCapacity) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ +public typealias RoutingMessageHandler = LightningDevKit.Bindings.RoutingMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class RoutingMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> Swift.Bool? + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func handleChannelUpdate(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + open func getNextChannelAnnouncement(startingPoint: Swift.UInt64) -> (LightningDevKit.Bindings.ChannelAnnouncement, LightningDevKit.Bindings.ChannelUpdate, LightningDevKit.Bindings.ChannelUpdate)? + open func getNextNodeAnnouncement(startingPoint: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeAnnouncement + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleReplyChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleReplyShortChannelIdsEnd(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryChannelRange(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func handleQueryShortChannelIds(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func processingQueueHigh() -> Swift.Bool + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ +public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? + public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? @objc deinit } } -public typealias Logger = LightningDevKit.Bindings.Logger +public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func log(record: LightningDevKit.Bindings.Record) + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannel? @objc deinit } } -public typealias OffersMessage = LightningDevKit.Bindings.OffersMessage +public typealias Event = LightningDevKit.Bindings.Event extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OffersMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OffersMessageType { - case InvoiceRequest - case Invoice - case InvoiceError - public static func == (a: LightningDevKit.Bindings.OffersMessage.OffersMessageType, b: LightningDevKit.Bindings.OffersMessage.OffersMessageType) -> Swift.Bool + public enum EventType { + case FundingGenerationReady + case PaymentClaimable + case PaymentClaimed + case PaymentSent + case PaymentFailed + case PaymentPathSuccessful + case PaymentPathFailed + case ProbeSuccessful + case ProbeFailed + case PendingHTLCsForwardable + case HTLCIntercepted + case SpendableOutputs + case PaymentForwarded + case ChannelPending + case ChannelReady + case ChannelClosed + case DiscardFunding + case OpenChannelRequest + case HTLCHandlingFailed + case BumpTransaction + public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.OffersMessage.OffersMessageType - public class func initWithInvoiceRequest(a: LightningDevKit.Bindings.InvoiceRequest) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoice(a: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.OffersMessage - public class func initWithInvoiceError(a: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.OffersMessage - public class func isKnownType(tlvType: Swift.UInt64) -> Swift.Bool - public func tlvType() -> Swift.UInt64 + public func getValueType() -> LightningDevKit.Bindings.Event.EventType + public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8]?, viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, htlcs: [LightningDevKit.Bindings.ClaimedHTLC], senderIntendedTotalMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event + public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event + public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor], channelId: [Swift.UInt8]?) -> LightningDevKit.Bindings.Event + public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8]?, nextChannelId: [Swift.UInt8]?, feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8]?, counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event + public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason, counterpartyNodeId: [Swift.UInt8], channelCapacitySats: Swift.UInt64?) -> LightningDevKit.Bindings.Event + public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event + public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event + public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event + public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event + public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: Swift.UInt64, argB: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_OffersMessageDecodeErrorZ - public func getValueAsInvoiceRequest() -> LightningDevKit.Bindings.InvoiceRequest? - public func getValueAsInvoice() -> LightningDevKit.Bindings.Bolt12Invoice? - public func getValueAsInvoiceError() -> LightningDevKit.Bindings.InvoiceError? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? + public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? + public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? + public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? + public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? + public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? + public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? + public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? + public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? + public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? + public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? + public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? + public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? + public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? + public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? + public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? + public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? + public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? + public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? + public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? @objc deinit - } -} -public typealias PaymentPurpose = LightningDevKit.Bindings.PaymentPurpose -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentPurpose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentPurposeType { - case InvoicePayment - case SpontaneousPayment - public static func == (a: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType, b: LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelValueSatoshis() -> Swift.UInt64 + public func getOutputScript() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields + public func getAmountMsat() -> Swift.UInt64 + public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getViaChannelId() -> [Swift.UInt8]? + public func getViaUserChannelId() -> [Swift.UInt8]? + public func getClaimDeadline() -> Swift.UInt32? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getReceiverNodeId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getAmountMsat() -> Swift.UInt64 + public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose + public func getHtlcs() -> [LightningDevKit.Bindings.ClaimedHTLC] + public func getSenderIntendedTotalMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentPreimage() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getFeePaidMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8]? + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentFailedPermanently() -> Swift.Bool + public func getFailure() -> LightningDevKit.Bindings.PathFailure + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + @objc deinit + } + @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getPath() -> LightningDevKit.Bindings.Path + public func getShortChannelId() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTimeForwardable() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getInterceptId() -> [Swift.UInt8] + public func getRequestedNextHopScid() -> Swift.UInt64 + public func getPaymentHash() -> [Swift.UInt8] + public func getInboundAmountMsat() -> Swift.UInt64 + public func getExpectedOutboundAmountMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] + public func getChannelId() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8]? + public func getNextChannelId() -> [Swift.UInt8]? + public func getFeeEarnedMsat() -> Swift.UInt64? + public func getClaimFromOnchainTx() -> Swift.Bool + public func getOutboundAmountForwardedMsat() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getFormerTemporaryChannelId() -> [Swift.UInt8]? + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getUserChannelId() -> [Swift.UInt8] + public func getReason() -> LightningDevKit.Bindings.ClosureReason + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getChannelCapacitySats() -> Swift.UInt64? + @objc deinit + } + @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8] + public func getTransaction() -> [Swift.UInt8] + @objc deinit } - public func getValueType() -> LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType - public class func initWithInvoicePayment(paymentPreimage: [Swift.UInt8]?, paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func initWithSpontaneousPayment(a: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentPurpose - public class func eq(a: LightningDevKit.Bindings.PaymentPurpose, b: LightningDevKit.Bindings.PaymentPurpose) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public func getValueAsInvoicePayment() -> LightningDevKit.Bindings.PaymentPurpose.InvoicePayment? - public func getValueAsSpontaneousPayment() -> [Swift.UInt8]? - @objc deinit - @_hasMissingDesignatedInitializers public class InvoicePayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentPreimage() -> [Swift.UInt8]? - public func getPaymentSecret() -> [Swift.UInt8] + public func getTemporaryChannelId() -> [Swift.UInt8] + public func getCounterpartyNodeId() -> [Swift.UInt8] + public func getFundingSatoshis() -> Swift.UInt64 + public func getPushMsat() -> Swift.UInt64 + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPrevChannelId() -> [Swift.UInt8] + public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination @objc deinit } } } -public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ +public typealias Result_InitFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InitFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InitFeatures) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? + public func getValue() -> LightningDevKit.Bindings.InitFeatures? @objc deinit } } -public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync +public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public func isInitialSyncComplete() -> Swift.Bool - public func isOwned() -> Swift.Bool - @objc deinit + public enum Option_NoneZ { + case Some + case None + public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ +public typealias RevokeAndACK = LightningDevKit.Bindings.RevokeAndACK extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RevokeAndACK : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFee? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getPerCommitmentSecret() -> [Swift.UInt8]? + public func setPerCommitmentSecret(val: [Swift.UInt8]) + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], perCommitmentSecretArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.RevokeAndACK, b: LightningDevKit.Bindings.RevokeAndACK) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SendError = LightningDevKit.Bindings.SendError +public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SendErrorType { - case Secp256k1 - case TooBigPacket - case TooFewBlindedHops - case InvalidFirstHop - case InvalidMessage - case BufferFull - case GetNodeIdFailed - case BlindedPathAdvanceFailed - public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType - public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError - public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError - public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError - public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError - public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError - public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError - public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError - public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool - public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getTimestamp() -> Swift.UInt32 + public func setTimestamp(val: Swift.UInt32) + public func getNodeId() -> LightningDevKit.Bindings.NodeId + public func setNodeId(val: LightningDevKit.Bindings.NodeId) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAddresses() -> [LightningDevKit.Bindings.SocketAddress] + public func setAddresses(val: [LightningDevKit.Bindings.SocketAddress]) + public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentHashRetryableSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ +public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashRetryableSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.RetryableSendFailure? - public func getValue() -> [Swift.UInt8]? - @objc deinit - } -} -public typealias OpenChannelV2 = LightningDevKit.Bindings.OpenChannelV2 -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannelV2 : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFundingFeerateSatPer1000Weight(val: Swift.UInt32) - public func getCommitmentFeerateSatPer1000Weight() -> Swift.UInt32 - public func setCommitmentFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingFeerateSatPer1000WeightArg: Swift.UInt32, commitmentFeerateSatPer1000WeightArg: Swift.UInt32, fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, locktimeArg: Swift.UInt32, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.OpenChannelV2, b: LightningDevKit.Bindings.OpenChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SignOrCreationError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_UnsignedNodeAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ +public typealias LockableScore = LightningDevKit.Bindings.LockableScore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedNodeAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public init() + open func readLock() -> LightningDevKit.Bindings.ScoreLookUp + open func writeLock() -> LightningDevKit.Bindings.ScoreUpdate @objc deinit } } -public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage +public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UnsignedGossipMessageType { - case ChannelAnnouncement - case ChannelUpdate - case NodeAnnouncement - public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType - public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage - public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getNodeOne() -> LightningDevKit.Bindings.NodeId + public func setNodeOne(val: LightningDevKit.Bindings.NodeId) + public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getNodeTwo() -> LightningDevKit.Bindings.NodeId + public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) + public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) + public func getCapacitySats() -> Swift.UInt64? + public func setCapacitySats(val: Swift.UInt64?) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool + public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? public func write() -> [Swift.UInt8] - public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? - public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? - public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Destination = LightningDevKit.Bindings.Destination +public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DestinationType { - case Node - case BlindedPath - public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType - public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination - public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination - public func getValueAsNode() -> [Swift.UInt8]? - public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? + public init() + open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + @objc deinit + } +} +public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ +public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? @objc deinit } } -public typealias Result_SharedSecretNoneZ = LightningDevKit.Bindings.Result_SharedSecretNoneZ +public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SharedSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SharedSecretNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } @@ -2472,576 +3108,592 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination +public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum HTLCDestinationType { - case NextHopChannel - case UnknownNextHop - case InvalidForward - case FailedPayment - public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + @objc deinit + } +} +public typealias OffersMessageHandler = LightningDevKit.Bindings.OffersMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class OffersMessageHandler : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func handleMessage(message: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OffersMessage? + @objc deinit + } +} +public typealias ClosureReason = LightningDevKit.Bindings.ClosureReason +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosureReason : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum ClosureReasonType { + case CounterpartyForceClosed + case HolderForceClosed + case CooperativeClosure + case CommitmentTxConfirmed + case FundingTimedOut + case ProcessingError + case DisconnectedPeer + case OutdatedChannelManager + case CounterpartyCoopClosedUnfundedChannel + case FundingBatchClosure + public static func == (a: LightningDevKit.Bindings.ClosureReason.ClosureReasonType, b: LightningDevKit.Bindings.ClosureReason.ClosureReasonType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType - public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination - public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination - public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.ClosureReason.ClosureReasonType + public class func initWithCounterpartyForceClosed(peerMsg: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.ClosureReason + public class func initWithHolderForceClosed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCooperativeClosure() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCommitmentTxConfirmed() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingTimedOut() -> LightningDevKit.Bindings.ClosureReason + public class func initWithProcessingError(err: Swift.String) -> LightningDevKit.Bindings.ClosureReason + public class func initWithDisconnectedPeer() -> LightningDevKit.Bindings.ClosureReason + public class func initWithOutdatedChannelManager() -> LightningDevKit.Bindings.ClosureReason + public class func initWithCounterpartyCoopClosedUnfundedChannel() -> LightningDevKit.Bindings.ClosureReason + public class func initWithFundingBatchClosure() -> LightningDevKit.Bindings.ClosureReason + public class func eq(a: LightningDevKit.Bindings.ClosureReason, b: LightningDevKit.Bindings.ClosureReason) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? - public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? - public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? - public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public func getValueAsCounterpartyForceClosed() -> LightningDevKit.Bindings.ClosureReason.CounterpartyForceClosed? + public func getValueAsProcessingError() -> LightningDevKit.Bindings.ClosureReason.ProcessingError? @objc deinit - @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForceClosed : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getRequestedForwardScid() -> Swift.UInt64 + public func getPeerMsg() -> LightningDevKit.Bindings.UntrustedString @objc deinit } - @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProcessingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String @objc deinit } } } -public typealias EventHandler = LightningDevKit.Bindings.EventHandler -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func handleEvent(event: LightningDevKit.Bindings.Event) - @objc deinit - } -} -public typealias TrustedClosingTransaction = LightningDevKit.Bindings.TrustedClosingTransaction -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedClosingTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func builtTransaction() -> [Swift.UInt8] - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func sign(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ +public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.GraphSyncError? - public func getValue() -> Swift.UInt32? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAckRbf? @objc deinit } } -public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ +public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? - @objc deinit - } -} -public typealias EntropySource = LightningDevKit.Bindings.EntropySource -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func getSecureRandomBytes() -> [Swift.UInt8] - @objc deinit - } -} -public typealias MaxDustHTLCExposure = LightningDevKit.Bindings.MaxDustHTLCExposure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MaxDustHTLCExposure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum MaxDustHTLCExposureType { - case FixedLimitMsat - case FeeRateMultiplier - public static func == (a: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType, b: LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType - public class func initWithFixedLimitMsat(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func initWithFeeRateMultiplier(a: Swift.UInt64) -> LightningDevKit.Bindings.MaxDustHTLCExposure - public class func eq(a: LightningDevKit.Bindings.MaxDustHTLCExposure, b: LightningDevKit.Bindings.MaxDustHTLCExposure) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public func getValueAsFixedLimitMsat() -> Swift.UInt64? - public func getValueAsFeeRateMultiplier() -> Swift.UInt64? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? @objc deinit } } -public typealias Bolt11ParseError = LightningDevKit.Bindings.Bolt11ParseError +public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt11ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bolt11ParseErrorType { - case Bech32Error - case ParseAmountError - case MalformedSignature - case BadPrefix - case UnknownCurrency - case UnknownSiPrefix - case MalformedHRP - case TooShortDataPart - case UnexpectedEndOfTaggedFields - case DescriptionDecodeError - case PaddingError - case IntegerOverflowError - case InvalidSegWitProgramLength - case InvalidPubKeyHashLength - case InvalidScriptHashLength - case InvalidRecoveryId - case InvalidSliceLength - case Skip - public static func == (a: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType, b: LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType - public class func initWithBech32Error(a: LightningDevKit.Bindings.Bech32Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithParseAmountError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedSignature(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithBadPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownCurrency() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnknownSiPrefix() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithMalformedHrp() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithTooShortDataPart() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithUnexpectedEndOfTaggedFields() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithDescriptionDecodeError(a: LightningDevKit.Bindings.BindingsError) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithPaddingError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithIntegerOverflowError() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSegWitProgramLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidPubKeyHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidScriptHashLength() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidRecoveryId() -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithInvalidSliceLength(a: Swift.String) -> LightningDevKit.Bindings.Bolt11ParseError - public class func initWithSkip() -> LightningDevKit.Bindings.Bolt11ParseError - public class func eq(a: LightningDevKit.Bindings.Bolt11ParseError, b: LightningDevKit.Bindings.Bolt11ParseError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsBech32Error() -> LightningDevKit.Bindings.Bech32Error? - public func getValueAsParseAmountError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsMalformedSignature() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValueAsDescriptionDecodeError() -> LightningDevKit.Bindings.BindingsError? - public func getValueAsInvalidSliceLength() -> Swift.String? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ +public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? + public func getValue() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Amount = LightningDevKit.Bindings.Amount +public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Amount : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited + public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) + public func getPrevtxOut() -> Swift.UInt32 + public func setPrevtxOut(val: Swift.UInt32) + public func getSequence() -> Swift.UInt32 + public func setSequence(val: Swift.UInt32) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxOutUtxoLookupErrorZ = LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ +public typealias ProbabilisticScoringDecayParameters = LightningDevKit.Bindings.ProbabilisticScoringDecayParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxOutUtxoLookupErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringDecayParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.UtxoLookupError) -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.UtxoLookupError? - public func getValue() -> LightningDevKit.Bindings.TxOut? + public func getHistoricalNoUpdatesHalfLife() -> Swift.UInt64 + public func setHistoricalNoUpdatesHalfLife(val: Swift.UInt64) + public func getLiquidityOffsetHalfLife() -> Swift.UInt64 + public func setLiquidityOffsetHalfLife(val: Swift.UInt64) + public init(historicalNoUpdatesHalfLifeArg: Swift.UInt64, liquidityOffsetHalfLifeArg: Swift.UInt64) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringDecayParameters + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath +public typealias BestBlock = LightningDevKit.Bindings.BestBlock extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BestBlock : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool - public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.BestBlock, b: LightningDevKit.Bindings.BestBlock) -> Swift.Bool + public class func initWithNetwork(network: LightningDevKit.Bindings.Network) -> LightningDevKit.Bindings.BestBlock + public init(blockHash: [Swift.UInt8], height: Swift.UInt32) + public func blockHash() -> [Swift.UInt8] + public func height() -> Swift.UInt32 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FeeEstimator = LightningDevKit.Bindings.FeeEstimator +public typealias UtxoFuture = LightningDevKit.Bindings.UtxoFuture extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FeeEstimator : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UtxoFuture : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func getEstSatPer1000Weight(confirmationTarget: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.UInt32 + public func resolveWithoutForwarding(graph: LightningDevKit.Bindings.NetworkGraph, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func resolve(graph: LightningDevKit.Bindings.NetworkGraph, gossip: LightningDevKit.Bindings.P2PGossipSync, result: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) + public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ extension LightningDevKit.Bindings { - public class func getLDKSwiftBindingsSerializationHash() -> Swift.String - public class func getLDKSwiftBindingsVersion() -> Swift.String - public class func getLDKSwiftBindingsCommitHash() -> Swift.String -} -public typealias UpdateFee = LightningDevKit.Bindings.UpdateFee -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], feeratePerKwArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.UpdateFee, b: LightningDevKit.Bindings.UpdateFee) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? @objc deinit } } -public typealias Result_COption_MonitorEventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ +public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_MonitorEventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MonitorEvent?) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MonitorEvent? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? @objc deinit } } -public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func tlvType() -> Swift.UInt64 - open func write() -> [Swift.UInt8] + open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) @objc deinit } } -public typealias UpdateFailHTLC = LightningDevKit.Bindings.UpdateFailHTLC +public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFailHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.UpdateFailHTLC, b: LightningDevKit.Bindings.UpdateFailHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) + open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ + public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner @objc deinit } } -public typealias Bolt12InvoiceFeatures = LightningDevKit.Bindings.Bolt12InvoiceFeatures +public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12InvoiceFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Bolt12InvoiceFeatures, b: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentBasepoint() -> [Swift.UInt8] + public func setPaymentBasepoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getSecondPerCommitmentPoint() -> [Swift.UInt8] + public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") + public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") + public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) + public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SiPrefix = LightningDevKit.Bindings.SiPrefix +public typealias Balance = LightningDevKit.Bindings.Balance extension LightningDevKit.Bindings { - public enum SiPrefix { - case Milli - case Micro - case Nano - case Pico - public static func == (a: LightningDevKit.Bindings.SiPrefix, b: LightningDevKit.Bindings.SiPrefix) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get + @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum BalanceType { + case ClaimableOnChannelClose + case ClaimableAwaitingConfirmations + case ContentiousClaimable + case MaybeTimeoutClaimableHTLC + case MaybePreimageClaimableHTLC + case CounterpartyRevokedOutputClaimable + public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType + public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance + public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance + public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance + public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool + public func claimableAmountSatoshis() -> Swift.UInt64 + public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? + public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? + public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? + public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? + public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? + public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? + @objc deinit + @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getConfirmationHeight() -> Swift.UInt32 + @objc deinit + } + @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getTimeoutHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + public func getPaymentPreimage() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getClaimableHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + public func getExpiryHeight() -> Swift.UInt32 + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getAmountSatoshis() -> Swift.UInt64 + @objc deinit } } } -public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ - @objc deinit - } -} -public typealias InvoiceError = LightningDevKit.Bindings.InvoiceError +public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvoiceError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErroneousField() -> LightningDevKit.Bindings.ErroneousField? - public func setErroneousField(val: LightningDevKit.Bindings.ErroneousField) - public func getMessage() -> LightningDevKit.Bindings.UntrustedString - public func setMessage(val: LightningDevKit.Bindings.UntrustedString) - public init(erroneousFieldArg: LightningDevKit.Bindings.ErroneousField, messageArg: LightningDevKit.Bindings.UntrustedString) + public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) + public func getGenesisHash() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) + public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph + public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? + public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) + public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func channelFailedPermanent(shortChannelId: Swift.UInt64) + public func nodeFailedPermanent(nodeId: [Swift.UInt8]) + public func removeStaleChannelsAndTracking() + public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) + public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader +public typealias Confirm = LightningDevKit.Bindings.Confirm extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - @objc deinit - } -} -public typealias Result_COption_APIErrorZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_APIErrorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.APIError?) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.APIError? + open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func transactionUnconfirmed(txid: [Swift.UInt8]?) + open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) + open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] @objc deinit } } -public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error +public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason extension LightningDevKit.Bindings { - public enum Secp256k1Error { - case IncorrectSignature - case InvalidMessage - case InvalidPublicKey - case InvalidSignature - case InvalidSecretKey - case InvalidSharedSecret - case InvalidRecoveryId - case InvalidTweak - case NotEnoughMemory - case InvalidPublicKeySum - case InvalidParityValue - public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public enum PaymentFailureReason { + case RecipientRejected + case UserAbandoned + case RetriesExhausted + case PaymentExpired + case RouteNotFound + case UnexpectedError + public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } } -public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput +public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getSerialId() -> Swift.UInt64 - public func setSerialId(val: Swift.UInt64) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? + public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) + public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? + public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) + public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? + public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) + public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? + public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) + public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PaymentParameters? - @objc deinit - } -} -public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ +public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddOutput? + public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) + public func getPhantomScid() -> Swift.UInt64 + public func setPhantomScid(val: Swift.UInt64) + public func getRealNodePubkey() -> [Swift.UInt8] + public func setRealNodePubkey(val: [Swift.UInt8]) + public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ +public typealias Pong = LightningDevKit.Bindings.Pong extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ScriptNoneZ = LightningDevKit.Bindings.Result_ScriptNoneZ +public typealias BumpTransactionEventHandler = LightningDevKit.Bindings.BumpTransactionEventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ScriptNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEventHandler : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ScriptNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_ScriptNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, utxoSource: LightningDevKit.Bindings.CoinSelectionSource, signerProvider: LightningDevKit.Bindings.SignerProvider, logger: LightningDevKit.Bindings.Logger) + public func handleEvent(event: LightningDevKit.Bindings.BumpTransactionEvent) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ +public typealias Result_InvoiceErrorDecodeErrorZ = LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_InvoiceErrorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.InvoiceError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InvoiceErrorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAbort? + public func getValue() -> LightningDevKit.Bindings.InvoiceError? @objc deinit } } -public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ +public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelConfig? + public func getValue() -> LightningDevKit.Bindings.ChannelReady? @objc deinit } } -public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction +public typealias UnsignedGossipMessage = LightningDevKit.Bindings.UnsignedGossipMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedGossipMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func txid() -> [Swift.UInt8] - public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction - public func keys() -> LightningDevKit.Bindings.TxCreationKeys - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOwned() -> Swift.Bool + public enum UnsignedGossipMessageType { + case ChannelAnnouncement + case ChannelUpdate + case NodeAnnouncement + public static func == (a: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType, b: LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType + public class func initWithChannelAnnouncement(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithChannelUpdate(a: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.UnsignedGossipMessage + public class func initWithNodeAnnouncement(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.UnsignedGossipMessage + public func write() -> [Swift.UInt8] + public func getValueAsChannelAnnouncement() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValueAsChannelUpdate() -> LightningDevKit.Bindings.UnsignedChannelUpdate? + public func getValueAsNodeAnnouncement() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement? @objc deinit } } -public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +public typealias Result_TxAddOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddOutput) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [LightningDevKit.Bindings.Utxo]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxAddOutput? @objc deinit } } -public typealias Result_NodeIdDecodeErrorZ = LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ +public typealias Result_RouteDecodeErrorZ = LightningDevKit.Bindings.Result_RouteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeIdDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeId? + public func getValue() -> LightningDevKit.Bindings.Route? @objc deinit } } -public typealias CommitmentTransaction = LightningDevKit.Bindings.CommitmentTransaction +public typealias Bolt11InvoiceSignature = LightningDevKit.Bindings.Bolt11InvoiceSignature extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentTransaction : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public func commitmentNumber() -> Swift.UInt64 - public func toBroadcasterValueSat() -> Swift.UInt64 - public func toCountersignatoryValueSat() -> Swift.UInt64 - public func feeratePerKw() -> Swift.UInt32 - public func trust() -> LightningDevKit.Bindings.TrustedCommitmentTransaction - public func verify(channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + @_hasMissingDesignatedInitializers public class Bolt11InvoiceSignature : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceSignature, b: LightningDevKit.Bindings.Bolt11InvoiceSignature) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } @@ -3064,598 +3716,781 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ +public typealias Result_TxCompleteDecodeErrorZ = LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxCompleteDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxComplete) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? - @objc deinit - } -} -public typealias PeerManager = LightningDevKit.Bindings.PeerManager -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") - public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) - public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.NetAddress?)] - public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.NetAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func processEvents() - public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) - public func disconnectByNodeId(nodeId: [Swift.UInt8]) - public func disconnectAllPeers() - public func timerTickOccurred() - public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.NetAddress]) - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxComplete? @objc deinit } } -public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ +public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError +public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum GraphSyncErrorType { - case DecodeError - case LightningError - public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType - public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError - public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError - public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? - public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getNextLocalCommitmentNumber() -> Swift.UInt64 + public func setNextLocalCommitmentNumber(val: Swift.UInt64) + public func getNextRemoteCommitmentNumber() -> Swift.UInt64 + public func setNextRemoteCommitmentNumber(val: Swift.UInt64) + public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? + public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) + public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] + public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) + public func getNextFundingTxid() -> [Swift.UInt8]? + public func setNextFundingTxid(val: [Swift.UInt8]?) + public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo +public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? @objc deinit } } -public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +public typealias Result_CVec_u8ZNoneZ = LightningDevKit.Bindings.Result_CVec_u8ZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd +public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFullInformation() -> Swift.Bool - public func setFullInformation(val: Swift.Bool) - public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func getNetwork() -> LightningDevKit.Bindings.Network + public func setNetwork(val: LightningDevKit.Bindings.Network) + public func getBestBlock() -> LightningDevKit.Bindings.BestBlock + public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) + public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelCounterpartyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ +public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelCounterpartyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelCounterparty) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelCounterparty? + public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? @objc deinit } } -public typealias Result_ShutdownDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ +public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Shutdown) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Shutdown? + public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool + public func endBlocknum() -> Swift.UInt32 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessage = LightningDevKit.Bindings.OnionMessage +public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlindingPoint() -> [Swift.UInt8] - public func setBlindingPoint(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.OnionMessage, b: LightningDevKit.Bindings.OnionMessage) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public func getPayee() -> LightningDevKit.Bindings.Payee + public func setPayee(val: LightningDevKit.Bindings.Payee) + public func getExpiryTime() -> Swift.UInt64? + public func setExpiryTime(val: Swift.UInt64?) + public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 + public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) + public func getMaxPathCount() -> Swift.UInt8 + public func setMaxPathCount(val: Swift.UInt8) + public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 + public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) + public func getPreviouslyFailedChannels() -> [Swift.UInt64] + public func setPreviouslyFailedChannels(val: [Swift.UInt64]) + public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters + public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters + public class func initWithBlinded(blindedRouteHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)]) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias InvalidShutdownScript = LightningDevKit.Bindings.InvalidShutdownScript +public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InvalidShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getScript() -> [Swift.UInt8] - public func setScript(val: [Swift.UInt8]) - public init(scriptArg: [Swift.UInt8]) + public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) + public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler + public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync +public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) - public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) - public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + @objc deinit + } +} +public typealias ErroringMessageHandler = LightningDevKit.Bindings.ErroringMessageHandler +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ErroringMessageHandler : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedNodeAnnouncement = LightningDevKit.Bindings.UnsignedNodeAnnouncement +public typealias Recipient = LightningDevKit.Bindings.Recipient extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedNodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public enum Recipient { + case Node + case PhantomNode + public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Hostname = LightningDevKit.Bindings.Hostname +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getNodeId() -> LightningDevKit.Bindings.NodeId - public func setNodeId(val: LightningDevKit.Bindings.NodeId) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAddresses() -> [LightningDevKit.Bindings.NetAddress] - public func setAddresses(val: [LightningDevKit.Bindings.NetAddress]) - public class func eq(a: LightningDevKit.Bindings.UnsignedNodeAnnouncement, b: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool + public func len() -> Swift.UInt8 public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedNodeAnnouncementDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString +public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.String - public func setA(val: Swift.String) - public init(aArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) + open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) + open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) + open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) + open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) + open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) + open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) + open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) + open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) + open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) + open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) + open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) + open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) + open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) + open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) + open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) + open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) + open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) + open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) + open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) + open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) + open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) + open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) + open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) + open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) + open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) + open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) + open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) + open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + open func getGenesisHashes() -> [[Swift.UInt8]]? + public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider @objc deinit } } -public typealias Sleeper = LightningDevKit.Bindings.Sleeper +public typealias ClaimedHTLC = LightningDevKit.Bindings.ClaimedHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sleeper : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClaimedHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithSingleFuture(future: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public class func initWithTwoFutures(futA: LightningDevKit.Bindings.Future, futB: LightningDevKit.Bindings.Future) -> LightningDevKit.Bindings.Sleeper - public init(futures: [LightningDevKit.Bindings.Future]) - public func wait() - public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getUserChannelId() -> [Swift.UInt8] + public func setUserChannelId(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getValueMsat() -> Swift.UInt64 + public func setValueMsat(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], userChannelIdArg: [Swift.UInt8], cltvExpiryArg: Swift.UInt32, valueMsatArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClaimedHTLC, b: LightningDevKit.Bindings.ClaimedHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? + public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? @objc deinit } } -public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor +public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeId1() -> LightningDevKit.Bindings.NodeId + public func setNodeId1(val: LightningDevKit.Bindings.NodeId) + public func getNodeId2() -> LightningDevKit.Bindings.NodeId + public func setNodeId2(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) + public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId + public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) + public func getExcessData() -> [Swift.UInt8] + public func setExcessData(val: [Swift.UInt8]) + public init(featuresArg: LightningDevKit.Bindings.ChannelFeatures, chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeId1Arg: LightningDevKit.Bindings.NodeId, nodeId2Arg: LightningDevKit.Bindings.NodeId, bitcoinKey1Arg: LightningDevKit.Bindings.NodeId, bitcoinKey2Arg: LightningDevKit.Bindings.NodeId, excessDataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup +public typealias UserConfig = LightningDevKit.Bindings.UserConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult + public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) + public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits + public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) + public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig + public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) + public func getAcceptForwardsToPrivChannels() -> Swift.Bool + public func setAcceptForwardsToPrivChannels(val: Swift.Bool) + public func getAcceptInboundChannels() -> Swift.Bool + public func setAcceptInboundChannels(val: Swift.Bool) + public func getManuallyAcceptInboundChannels() -> Swift.Bool + public func setManuallyAcceptInboundChannels(val: Swift.Bool) + public func getAcceptInterceptHtlcs() -> Swift.Bool + public func setAcceptInterceptHtlcs(val: Swift.Bool) + public func getAcceptMppKeysend() -> Swift.Bool + public func setAcceptMppKeysend(val: Swift.Bool) + public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +public typealias Bolt11InvoiceFeatures = LightningDevKit.Bindings.Bolt11InvoiceFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt11InvoiceFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstTimestamp() -> Swift.UInt32 - public func setFirstTimestamp(val: Swift.UInt32) - public func getTimestampRange() -> Swift.UInt32 - public func setTimestampRange(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.Bolt11InvoiceFeatures, b: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setPaymentMetadataOptional() + public func setPaymentMetadataRequired() + public func supportsPaymentMetadata() -> Swift.Bool + public func requiresPaymentMetadata() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp +public typealias Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool - public func hash() -> Swift.UInt64 - public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public func asUnixTimestamp() -> Swift.UInt64 - public func asDurationSinceEpoch() -> Swift.UInt64 - public func asTime() -> Swift.UInt64 - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? @objc deinit } } -public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures +public typealias PeerManager = LightningDevKit.Bindings.PeerManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PeerManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getTxHash() -> [Swift.UInt8]? - public func setTxHash(val: [Swift.UInt8]) - public func getWitnesses() -> [[Swift.UInt8]] - public func setWitnesses(val: [[Swift.UInt8]]) - public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) - public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `messageHandler`.") + public init(messageHandler: LightningDevKit.Bindings.MessageHandler, currentTime: Swift.UInt32, ephemeralRandomData: [Swift.UInt8], logger: LightningDevKit.Bindings.Logger, nodeSigner: LightningDevKit.Bindings.NodeSigner) + public func getPeerNodeIds() -> [([Swift.UInt8], LightningDevKit.Bindings.SocketAddress?)] + public func newOutboundConnection(theirNodeId: [Swift.UInt8], descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ + public func newInboundConnection(descriptor: LightningDevKit.Bindings.SocketDescriptor, remoteNetworkAddress: LightningDevKit.Bindings.SocketAddress?) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func writeBufferSpaceAvail(descriptor: LightningDevKit.Bindings.SocketDescriptor) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func readEvent(peerDescriptor: LightningDevKit.Bindings.SocketDescriptor, data: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public func processEvents() + public func socketDisconnected(descriptor: LightningDevKit.Bindings.SocketDescriptor) + public func disconnectByNodeId(nodeId: [Swift.UInt8]) + public func disconnectAllPeers() + public func timerTickOccurred() + public func broadcastNodeAnnouncement(rgb: [Swift.UInt8], alias: [Swift.UInt8], addresses: [LightningDevKit.Bindings.SocketAddress]) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf +public typealias TxRemoveOutput = LightningDevKit.Bindings.TxRemoveOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getLocktime() -> Swift.UInt32 - public func setLocktime(val: Swift.UInt32) - public func getFeerateSatPer1000Weight() -> Swift.UInt32 - public func setFeerateSatPer1000Weight(val: Swift.UInt32) - public func getFundingOutputContribution() -> Swift.Int64? - public func setFundingOutputContribution(val: Swift.Int64?) - public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) - public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveOutput, b: LightningDevKit.Bindings.TxRemoveOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned +public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getFeeSatoshis() -> Swift.UInt64 - public func setFeeSatoshis(val: Swift.UInt64) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? - public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) - public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) - public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public enum NetworkUpdateType { + case ChannelUpdateMessage + case ChannelFailure + case NodeFailure + public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType + public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate + public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? + public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? + public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getShortChannelId() -> Swift.UInt64 + public func isPermanent() -> Swift.Bool + @objc deinit + } + @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func isPermanent() -> Swift.Bool + @objc deinit + } } } -public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets +public typealias ErroneousField = LightningDevKit.Bindings.ErroneousField extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErroneousField : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func getMinSeenSecret() -> Swift.UInt64 - public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func getTlvFieldnum() -> Swift.UInt64 + public func setTlvFieldnum(val: Swift.UInt64) + public func getSuggestedValue() -> [Swift.UInt8]? + public func setSuggestedValue(val: [Swift.UInt8]?) + public init(tlvFieldnumArg: Swift.UInt64, suggestedValueArg: [Swift.UInt8]?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TransactionU16LenLimitedNoneZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? + public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Path = LightningDevKit.Bindings.Path +public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getHops() -> [LightningDevKit.Bindings.RouteHop] - public func setHops(val: [LightningDevKit.Bindings.RouteHop]) - public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? - public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) - public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool - public func feeMsat() -> Swift.UInt64 - public func finalValueMsat() -> Swift.UInt64 - public func finalCltvExpiryDelta() -> Swift.UInt32? + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getOurToSelfDelay() -> Swift.UInt16 + public func setOurToSelfDelay(val: Swift.UInt16) + public func getOurHtlcMinimumMsat() -> Swift.UInt64 + public func setOurHtlcMinimumMsat(val: Swift.UInt64) + public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 + public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) + public func getNegotiateScidPrivacy() -> Swift.Bool + public func setNegotiateScidPrivacy(val: Swift.Bool) + public func getAnnouncedChannel() -> Swift.Bool + public func setAnnouncedChannel(val: Swift.Bool) + public func getCommitUpfrontShutdownPubkey() -> Swift.Bool + public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) + public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 + public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) + public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) + public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 + public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) + public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ +public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? + public func getValue() -> LightningDevKit.Bindings.ClosureReason? @objc deinit } } -public typealias Utxo = LightningDevKit.Bindings.Utxo +public typealias BroadcasterInterface = LightningDevKit.Bindings.BroadcasterInterface extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class BroadcasterInterface : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getSatisfactionWeight() -> Swift.UInt64 - public func setSatisfactionWeight(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool - public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo - public func isOwned() -> Swift.Bool + public init() + open func broadcastTransactions(txs: [[Swift.UInt8]]) @objc deinit } } -public typealias PaymentFailureReason = LightningDevKit.Bindings.PaymentFailureReason +public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey extension LightningDevKit.Bindings { - public enum PaymentFailureReason { - case RecipientRejected - case UserAbandoned - case RetriesExhausted - case PaymentExpired - case RouteNotFound - case UnexpectedError - public static func == (a: LightningDevKit.Bindings.PaymentFailureReason, b: LightningDevKit.Bindings.PaymentFailureReason) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(keyMaterial: [Swift.UInt8]) + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias PathFailure = LightningDevKit.Bindings.PathFailure +public typealias ReplyShortChannelIdsEnd = LightningDevKit.Bindings.ReplyShortChannelIdsEnd extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PathFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyShortChannelIdsEnd : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PathFailureType { - case InitialSend - case OnPath - public static func == (a: LightningDevKit.Bindings.PathFailure.PathFailureType, b: LightningDevKit.Bindings.PathFailure.PathFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PathFailure.PathFailureType - public class func initWithInitialSend(err: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PathFailure - public class func initWithOnPath(networkUpdate: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.PathFailure - public class func eq(a: LightningDevKit.Bindings.PathFailure, b: LightningDevKit.Bindings.PathFailure) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFullInformation() -> Swift.Bool + public func setFullInformation(val: Swift.Bool) + public init(chainHashArg: [Swift.UInt8], fullInformationArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ReplyShortChannelIdsEnd, b: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public func getValueAsInitialSend() -> LightningDevKit.Bindings.PathFailure.InitialSend? - public func getValueAsOnPath() -> LightningDevKit.Bindings.PathFailure.OnPath? + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class InitialSend : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> LightningDevKit.Bindings.APIError - @objc deinit - } - @_hasMissingDesignatedInitializers public class OnPath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNetworkUpdate() -> LightningDevKit.Bindings.NetworkUpdate? - @objc deinit - } } } -@_hasMissingDesignatedInitializers public class LDKExampleClass { - public class func printSomething() - public func printInstance() - @objc deinit -} -public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction +public typealias Result_ReceiveTlvsDecodeErrorZ = LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReceiveTlvsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool - public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) - public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction - public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ - public func toHolderValueSat() -> Swift.UInt64 - public func toCounterpartyValueSat() -> Swift.UInt64 - public func toHolderScript() -> [Swift.UInt8] - public func toCounterpartyScript() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReceiveTlvs) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReceiveTlvsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReceiveTlvs? @objc deinit } } -public typealias Recipient = LightningDevKit.Bindings.Recipient +public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures extension LightningDevKit.Bindings { - public enum Recipient { - case Node - case PhantomNode - public static func == (a: LightningDevKit.Bindings.Recipient, b: LightningDevKit.Bindings.Recipient) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setInitialRoutingSyncOptional() + public func setInitialRoutingSyncRequired() + public func initialRoutingSync() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner +public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) - open func write() -> [Swift.UInt8] - public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias SocketDescriptor = LightningDevKit.Bindings.SocketDescriptor +public typealias Result_COption_NetworkUpdateZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class SocketDescriptor : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_NetworkUpdateZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func sendData(data: [Swift.UInt8], resumeRead: Swift.Bool) -> Swift.UInt - open func disconnectSocket() - open func eq(otherArg: LightningDevKit.Bindings.SocketDescriptor) -> Swift.Bool - open func hash() -> Swift.UInt64 + public class func initWithOk(o: LightningDevKit.Bindings.NetworkUpdate?) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NetworkUpdate? @objc deinit } } -public typealias RouteHop = LightningDevKit.Bindings.RouteHop +public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkey() -> [Swift.UInt8] - public func setPubkey(val: [Swift.UInt8]) - public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getFeeMsat() -> Swift.UInt64 - public func setFeeMsat(val: Swift.UInt64) - public func getCltvExpiryDelta() -> Swift.UInt32 - public func setCltvExpiryDelta(val: Swift.UInt32) - public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) + public func getForwardingFeeBaseMsat() -> Swift.UInt32 + public func setForwardingFeeBaseMsat(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure + public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) + public func getAcceptUnderpayingHtlcs() -> Swift.Bool + public func setAcceptUnderpayingHtlcs(val: Swift.Bool) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) + public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool + public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } +public typealias Result_CVec_ECDSASignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_ECDSASignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? + @objc deinit + } +} public typealias BackgroundProcessor = LightningDevKit.Bindings.BackgroundProcessor extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class BackgroundProcessor : LightningDevKit.NativeTypeWrapper { @@ -3664,573 +4499,654 @@ extension LightningDevKit.Bindings { @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `gossipSync`.") public class func start(persister: LightningDevKit.Bindings.Persister, eventHandler: LightningDevKit.Bindings.EventHandler, chainMonitor: LightningDevKit.Bindings.ChainMonitor, channelManager: LightningDevKit.Bindings.ChannelManager, gossipSync: LightningDevKit.Bindings.GossipSync, peerManager: LightningDevKit.Bindings.PeerManager, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.WriteableScore?) -> LightningDevKit.Bindings.BackgroundProcessor @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func join() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func join() -> LightningDevKit.Bindings.Result_NoneIOErrorZ @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: self.") - public func stop() -> LightningDevKit.Bindings.Result_NoneErrorZ + public func stop() -> LightningDevKit.Bindings.Result_NoneIOErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias FundingSigned = LightningDevKit.Bindings.FundingSigned +public typealias PrintableString = LightningDevKit.Bindings.PrintableString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingSigned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrintableString : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingSigned, b: LightningDevKit.Bindings.FundingSigned) -> Swift.Bool + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getAmountMsat() -> Swift.UInt64 + public func setAmountMsat(val: Swift.UInt64) + public func getPaymentHash() -> [Swift.UInt8]? + public func setPaymentHash(val: [Swift.UInt8]) + public func getCltvExpiry() -> Swift.UInt32 + public func setCltvExpiry(val: Swift.UInt32) + public func getSkimmedFeeMsat() -> Swift.UInt64? + public func setSkimmedFeeMsat(val: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ExpandedKey = LightningDevKit.Bindings.ExpandedKey +public typealias Secp256k1Error = LightningDevKit.Bindings.Secp256k1Error extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpandedKey : LightningDevKit.NativeTypeWrapper { + public enum Secp256k1Error { + case IncorrectSignature + case InvalidMessage + case InvalidPublicKey + case InvalidSignature + case InvalidSecretKey + case InvalidSharedSecret + case InvalidRecoveryId + case InvalidTweak + case NotEnoughMemory + case InvalidPublicKeySum + case InvalidParityValue + public static func == (a: LightningDevKit.Bindings.Secp256k1Error, b: LightningDevKit.Bindings.Secp256k1Error) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias ConfirmationTarget = LightningDevKit.Bindings.ConfirmationTarget +extension LightningDevKit.Bindings { + public enum ConfirmationTarget { + case MempoolMinimum + case Background + case Normal + case HighPriority + public static func == (a: LightningDevKit.Bindings.ConfirmationTarget, b: LightningDevKit.Bindings.ConfirmationTarget) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(keyMaterial: [Swift.UInt8]) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias Offer = LightningDevKit.Bindings.Offer +public typealias Refund = LightningDevKit.Bindings.Refund extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Offer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func chains() -> [[Swift.UInt8]] - public func supportsChain(chain: [Swift.UInt8]) -> Swift.Bool - public func metadata() -> [Swift.UInt8]? - public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString - public func features() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func supportedQuantity() -> LightningDevKit.Bindings.Quantity - public func isValidQuantity(quantity: Swift.UInt64) -> Swift.Bool - public func expectsQuantity() -> Swift.Bool - public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_QueryChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ +public typealias CreationError = LightningDevKit.Bindings.CreationError +extension LightningDevKit.Bindings { + public enum CreationError { + case DescriptionTooLong + case RouteTooLong + case TimestampOutOfBounds + case InvalidAmount + case MissingRouteHints + case MinFinalCltvExpiryDeltaTooShort + public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public enum RecentPaymentDetailsType { + case AwaitingInvoice + case Pending + case Fulfilled + case Abandoned + public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType + public class func initWithAwaitingInvoice(paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithPending(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithFulfilled(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails + public class func initWithAbandoned(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails + public func getValueAsAwaitingInvoice() -> LightningDevKit.Bindings.RecentPaymentDetails.AwaitingInvoice? + public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? + public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? + public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + @objc deinit + @_hasMissingDesignatedInitializers public class AwaitingInvoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + public func getTotalMsat() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8]? + @objc deinit + } + @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentId() -> [Swift.UInt8] + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_PayeePubKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PayeePubKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PayeePubKey) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> LightningDevKit.Bindings.PayeePubKey? + @objc deinit + } +} +public typealias Result_PaymentParametersDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentParameters) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentParameters? + @objc deinit + } +} +public typealias TxRemoveInput = LightningDevKit.Bindings.TxRemoveInput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxRemoveInput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryChannelRange) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryChannelRange? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getSerialId() -> Swift.UInt64 + public func setSerialId(val: Swift.UInt64) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.TxRemoveInput, b: LightningDevKit.Bindings.TxRemoveInput) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedHopDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ +public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHop) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHop? + public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys + public func contestDelay() -> Swift.UInt16 + public func isOutbound() -> Swift.Bool + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ +public typealias RawDataPart = LightningDevKit.Bindings.RawDataPart extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RawDataPart : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? + public func getTimestamp() -> LightningDevKit.Bindings.PositiveTimestamp + public func setTimestamp(val: LightningDevKit.Bindings.PositiveTimestamp) + public class func eq(a: LightningDevKit.Bindings.RawDataPart, b: LightningDevKit.Bindings.RawDataPart) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Payee = LightningDevKit.Bindings.Payee +public typealias Destination = LightningDevKit.Bindings.Destination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Payee : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Destination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PayeeType { - case Blinded - case Clear - public static func == (a: LightningDevKit.Bindings.Payee.PayeeType, b: LightningDevKit.Bindings.Payee.PayeeType) -> Swift.Bool + public enum DestinationType { + case Node + case BlindedPath + public static func == (a: LightningDevKit.Bindings.Destination.DestinationType, b: LightningDevKit.Bindings.Destination.DestinationType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Payee.PayeeType - public class func initWithBlinded(routeHints: [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)], features: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Payee - public class func initWithClear(nodeId: [Swift.UInt8], routeHints: [LightningDevKit.Bindings.RouteHint], features: LightningDevKit.Bindings.Bolt11InvoiceFeatures, finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.Payee - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Payee, b: LightningDevKit.Bindings.Payee) -> Swift.Bool - public func getValueAsBlinded() -> LightningDevKit.Bindings.Payee.Blinded? - public func getValueAsClear() -> LightningDevKit.Bindings.Payee.Clear? + public func getValueType() -> LightningDevKit.Bindings.Destination.DestinationType + public class func initWithNode(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Destination + public class func initWithBlindedPath(a: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Destination + public func getValueAsNode() -> [Swift.UInt8]? + public func getValueAsBlindedPath() -> LightningDevKit.Bindings.BlindedPath? @objc deinit - @_hasMissingDesignatedInitializers public class Blinded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getRouteHints() -> [(LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)] - public func getFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class Clear : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func getRouteHints() -> [LightningDevKit.Bindings.RouteHint] - public func getFeatures() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures - public func getFinalCltvExpiryDelta() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelReestablish = LightningDevKit.Bindings.ChannelReestablish +public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelReestablish : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getNextLocalCommitmentNumber() -> Swift.UInt64 - public func setNextLocalCommitmentNumber(val: Swift.UInt64) - public func getNextRemoteCommitmentNumber() -> Swift.UInt64 - public func setNextRemoteCommitmentNumber(val: Swift.UInt64) - public func getYourLastPerCommitmentSecret() -> [Swift.UInt8]? - public func setYourLastPerCommitmentSecret(val: [Swift.UInt8]) - public func getMyCurrentPerCommitmentPoint() -> [Swift.UInt8] - public func setMyCurrentPerCommitmentPoint(val: [Swift.UInt8]) - public func getNextFundingTxid() -> [Swift.UInt8]? - public func setNextFundingTxid(val: [Swift.UInt8]?) - public init(channelIdArg: [Swift.UInt8], nextLocalCommitmentNumberArg: Swift.UInt64, nextRemoteCommitmentNumberArg: Swift.UInt64, yourLastPerCommitmentSecretArg: [Swift.UInt8], myCurrentPerCommitmentPointArg: [Swift.UInt8], nextFundingTxidArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.ChannelReestablish, b: LightningDevKit.Bindings.ChannelReestablish) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? @objc deinit } } -public typealias Sha256 = LightningDevKit.Bindings.Sha256 +public typealias BlindedTail = LightningDevKit.Bindings.BlindedTail extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedTail : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setHops(val: [LightningDevKit.Bindings.BlindedHop]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getExcessFinalCltvExpiryDelta() -> Swift.UInt32 + public func setExcessFinalCltvExpiryDelta(val: Swift.UInt32) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public init(hopsArg: [LightningDevKit.Bindings.BlindedHop], blindingPointArg: [Swift.UInt8], excessFinalCltvExpiryDeltaArg: Swift.UInt32, finalValueMsatArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool - public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 + public class func eq(a: LightningDevKit.Bindings.BlindedTail, b: LightningDevKit.Bindings.BlindedTail) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMessageHandler = LightningDevKit.Bindings.ChannelMessageHandler +public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class ChannelMessageHandler : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(messageSendEventsProvider: LightningDevKit.Bindings.MessageSendEventsProvider) - open func handleOpenChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannel) - open func handleOpenChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OpenChannelV2) - open func handleAcceptChannel(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannel) - open func handleAcceptChannelV2(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AcceptChannelV2) - open func handleFundingCreated(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingCreated) - open func handleFundingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.FundingSigned) - open func handleChannelReady(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReady) - open func handleShutdown(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.Shutdown) - open func handleClosingSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ClosingSigned) - open func handleTxAddInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddInput) - open func handleTxAddOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAddOutput) - open func handleTxRemoveInput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveInput) - open func handleTxRemoveOutput(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxRemoveOutput) - open func handleTxComplete(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxComplete) - open func handleTxSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxSignatures) - open func handleTxInitRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxInitRbf) - open func handleTxAckRbf(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAckRbf) - open func handleTxAbort(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.TxAbort) - open func handleUpdateAddHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateAddHTLC) - open func handleUpdateFulfillHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFulfillHTLC) - open func handleUpdateFailHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailHTLC) - open func handleUpdateFailMalformedHtlc(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFailMalformedHTLC) - open func handleCommitmentSigned(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.CommitmentSigned) - open func handleRevokeAndAck(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.RevokeAndACK) - open func handleUpdateFee(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.UpdateFee) - open func handleAnnouncementSignatures(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.AnnouncementSignatures) - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func peerConnected(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func handleChannelReestablish(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelReestablish) - open func handleChannelUpdate(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ChannelUpdate) - open func handleError(theirNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.ErrorMessage) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - open func getGenesisHashes() -> [[Swift.UInt8]]? - public func getMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - @objc deinit + public enum ChannelShutdownState { + case NotShuttingDown + case ShutdownInitiated + case ResolvingHTLCs + case NegotiatingClosingFee + case ShutdownComplete + public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent +public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum BumpTransactionEventType { - case ChannelClose - case HTLCResolution - public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public enum UtxoResultType { + case Sync + case Async + public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType - public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent - public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool - public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? - public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? + public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType + public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult + public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult + public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? + public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + @objc deinit + } +} +public typealias Result_SignedRawBolt11InvoiceBolt11ParseErrorZ = LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValue() -> LightningDevKit.Bindings.SignedRawBolt11Invoice? + @objc deinit + } +} +public typealias Result_CounterpartyChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CounterpartyChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyChannelTransactionParameters? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getCommitmentTx() -> [Swift.UInt8] - public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 - public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor - public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getClaimId() -> [Swift.UInt8] - public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 - public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] - public func getTxLockTime() -> Swift.UInt32 - @objc deinit - } } } -public typealias ChannelMonitor = LightningDevKit.Bindings.ChannelMonitor +public typealias TrustedCommitmentTransaction = LightningDevKit.Bindings.TrustedCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TrustedCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func write() -> [Swift.UInt8] - public func updateMonitor(updates: LightningDevKit.Bindings.ChannelMonitorUpdate, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func getLatestUpdateId() -> Swift.UInt64 - public func getFundingTxo() -> (LightningDevKit.Bindings.OutPoint, [Swift.UInt8]) - public func getOutputsToWatch() -> [([Swift.UInt8], [(Swift.UInt32, [Swift.UInt8])])] - public func loadOutputsToWatch(filter: LightningDevKit.Bindings.Filter) - public func getAndClearPendingMonitorEvents() -> [LightningDevKit.Bindings.MonitorEvent] - public func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) - public func getCounterpartyNodeId() -> [Swift.UInt8]? - public func getLatestHolderCommitmentTxn(logger: LightningDevKit.Bindings.Logger) -> [[Swift.UInt8]] - public func blockConnected(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func blockDisconnected(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func transactionsConfirmed(header: [Swift.UInt8], txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func transactionUnconfirmed(txid: [Swift.UInt8], broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func bestBlockUpdated(header: [Swift.UInt8], height: Swift.UInt32, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) -> [([Swift.UInt8], [(Swift.UInt32, LightningDevKit.Bindings.TxOut)])] - public func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func rebroadcastPendingClaims(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, logger: LightningDevKit.Bindings.Logger) - public func getClaimableBalances() -> [LightningDevKit.Bindings.Balance] + public func txid() -> [Swift.UInt8] + public func builtTransaction() -> LightningDevKit.Bindings.BuiltCommitmentTransaction + public func keys() -> LightningDevKit.Bindings.TxCreationKeys + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func getHtlcSigs(htlcBaseKey: [Swift.UInt8], channelParameters: LightningDevKit.Bindings.DirectedChannelTransactionParameters, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_CVec_ECDSASignatureZNoneZ + public func revokeableOutputIndex() -> Swift.UInt? + public func buildToLocalJusticeTx(feeratePerKw: Swift.UInt64, destinationScript: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo +public typealias Result_ChannelMonitorUpdateStatusNoneZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateStatusNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures - public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) - public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateStatusNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus? @objc deinit } } -public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys +public typealias Result_SocketAddressSocketAddressParseErrorZ = LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SocketAddressSocketAddressParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getRevocationKey() -> [Swift.UInt8] - public func setRevocationKey(val: [Swift.UInt8]) - public func getBroadcasterHtlcKey() -> [Swift.UInt8] - public func setBroadcasterHtlcKey(val: [Swift.UInt8]) - public func getCountersignatoryHtlcKey() -> [Swift.UInt8] - public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) - public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] - public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) - public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ - public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys - public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.SocketAddress) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SocketAddressParseError) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SocketAddressParseError? + public func getValue() -> LightningDevKit.Bindings.SocketAddress? @objc deinit } } -public typealias BindingsError = LightningDevKit.Bindings.BindingsError +public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getDummy() -> Swift.UInt8 + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias Pong = LightningDevKit.Bindings.Pong +public typealias AnnouncementSignatures = LightningDevKit.Bindings.AnnouncementSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Pong : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AnnouncementSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getByteslen() -> Swift.UInt16 - public func setByteslen(val: Swift.UInt16) - public init(byteslenArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.Pong, b: LightningDevKit.Bindings.Pong) -> Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getNodeSignature() -> [Swift.UInt8] + public func setNodeSignature(val: [Swift.UInt8]) + public func getBitcoinSignature() -> [Swift.UInt8] + public func setBitcoinSignature(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, nodeSignatureArg: [Swift.UInt8], bitcoinSignatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.AnnouncementSignatures, b: LightningDevKit.Bindings.AnnouncementSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Persist = LightningDevKit.Bindings.Persist +public typealias MessageRouter = LightningDevKit.Bindings.MessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class MessageRouter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func findPath(sender: [Swift.UInt8], peers: [[Swift.UInt8]], destination: LightningDevKit.Bindings.Destination) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ @objc deinit } } -public typealias Result_NetworkGraphDecodeErrorZ = LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ +public typealias Result_CommitmentSignedDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NetworkGraphDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentSigned) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentSignedDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NetworkGraph? + public func getValue() -> LightningDevKit.Bindings.CommitmentSigned? @objc deinit } } -public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime +public typealias LockedChannelMonitor = LightningDevKit.Bindings.LockedChannelMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class LockedChannelMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool - public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime - public func asSeconds() -> Swift.UInt64 - public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAbort = LightningDevKit.Bindings.TxAbort +public typealias Result_ShutdownScriptInvalidShutdownScriptZ = LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptInvalidShutdownScriptZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> [Swift.UInt8] - public func setData(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public class func initWithErr(e: LightningDevKit.Bindings.InvalidShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.InvalidShutdownScript? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ +public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? @objc deinit } } -public typealias UnsignedChannelAnnouncement = LightningDevKit.Bindings.UnsignedChannelAnnouncement +public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getNodeId1() -> LightningDevKit.Bindings.NodeId - public func setNodeId1(val: LightningDevKit.Bindings.NodeId) - public func getNodeId2() -> LightningDevKit.Bindings.NodeId - public func setNodeId2(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey1() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey1(val: LightningDevKit.Bindings.NodeId) - public func getBitcoinKey2() -> LightningDevKit.Bindings.NodeId - public func setBitcoinKey2(val: LightningDevKit.Bindings.NodeId) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelAnnouncement, b: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public func getMinFundingSatoshis() -> Swift.UInt64 + public func setMinFundingSatoshis(val: Swift.UInt64) + public func getMaxFundingSatoshis() -> Swift.UInt64 + public func setMaxFundingSatoshis(val: Swift.UInt64) + public func getMaxHtlcMinimumMsat() -> Swift.UInt64 + public func setMaxHtlcMinimumMsat(val: Swift.UInt64) + public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getMaxChannelReserveSatoshis() -> Swift.UInt64 + public func setMaxChannelReserveSatoshis(val: Swift.UInt64) + public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) + public func getMaxMinimumDepth() -> Swift.UInt32 + public func setMaxMinimumDepth(val: Swift.UInt32) + public func getTrustOwnFunding0conf() -> Swift.Bool + public func setTrustOwnFunding0conf(val: Swift.Bool) + public func getForceAnnouncedChannelPreference() -> Swift.Bool + public func setForceAnnouncedChannelPreference(val: Swift.Bool) + public func getTheirToSelfDelay() -> Swift.UInt16 + public func setTheirToSelfDelay(val: Swift.UInt16) + public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PublicKeyNoneZ = LightningDevKit.Bindings.Result_PublicKeyNoneZ +public typealias MonitorUpdatingPersister = LightningDevKit.Bindings.MonitorUpdatingPersister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdatingPersister : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public init(kvStore: LightningDevKit.Bindings.KVStore, logger: LightningDevKit.Bindings.Logger, maximumPendingUpdates: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) + public func readAllChannelMonitorsWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public func readChannelMonitorWithUpdates(broadcaster: LightningDevKit.Bindings.BroadcasterInterface, feeEstimator: LightningDevKit.Bindings.FeeEstimator, monitorKey: Swift.String) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public func cleanupStaleUpdates(lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func asPersist() -> LightningDevKit.Bindings.Persist + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PayeePubKey = LightningDevKit.Bindings.PayeePubKey +public typealias Persist = LightningDevKit.Bindings.Persist extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PayeePubKey : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persist : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8] - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PayeePubKey, b: LightningDevKit.Bindings.PayeePubKey) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init() + open func persistNewChannel(channelId: LightningDevKit.Bindings.OutPoint, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus + open func updatePersistedChannel(channelId: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate, data: LightningDevKit.Bindings.ChannelMonitor, updateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus @objc deinit } } -public typealias ChannelConfig = LightningDevKit.Bindings.ChannelConfig +public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32 - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32) - public func getForwardingFeeBaseMsat() -> Swift.UInt32 - public func setForwardingFeeBaseMsat(val: Swift.UInt32) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getMaxDustHtlcExposure() -> LightningDevKit.Bindings.MaxDustHTLCExposure - public func setMaxDustHtlcExposure(val: LightningDevKit.Bindings.MaxDustHTLCExposure) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64 - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64) - public func getAcceptUnderpayingHtlcs() -> Swift.Bool - public func setAcceptUnderpayingHtlcs(val: Swift.Bool) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32, forwardingFeeBaseMsatArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, maxDustHtlcExposureArg: LightningDevKit.Bindings.MaxDustHTLCExposure, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64, acceptUnderpayingHtlcsArg: Swift.Bool) - public class func eq(a: LightningDevKit.Bindings.ChannelConfig, b: LightningDevKit.Bindings.ChannelConfig) -> Swift.Bool - public func apply(update: LightningDevKit.Bindings.ChannelConfigUpdate) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfig - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FundingCreated? @objc deinit } } -public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath +public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getIntermediateNodes() -> [[Swift.UInt8]] - public func setIntermediateNodes(val: [[Swift.UInt8]]) - public func getDestination() -> LightningDevKit.Bindings.Destination - public func setDestination(val: LightningDevKit.Bindings.Destination) - public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getTransaction() -> [Swift.UInt8] + public func setTransaction(val: [Swift.UInt8]) + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] + public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ +public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedTail? + public func getValue() -> LightningDevKit.Bindings.TxSignatures? @objc deinit } } -public typealias Description = LightningDevKit.Bindings.Description +public typealias DelayedPaymentOutputDescriptor = LightningDevKit.Bindings.DelayedPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DelayedPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getRevocationPubkey() -> [Swift.UInt8] + public func setRevocationPubkey(val: [Swift.UInt8]) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, perCommitmentPointArg: [Swift.UInt8], toSelfDelayArg: Swift.UInt16, outputArg: LightningDevKit.Bindings.TxOut, revocationPubkeyArg: [Swift.UInt8], channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool - public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public func intoInner() -> Swift.String + public class func eq(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor, b: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WarningMessage = LightningDevKit.Bindings.WarningMessage +public typealias KVStore = LightningDevKit.Bindings.KVStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WarningMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class KVStore : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.WarningMessage, b: LightningDevKit.Bindings.WarningMessage) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + open func write(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, buf: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func remove(primaryNamespace: Swift.String, secondaryNamespace: Swift.String, key: Swift.String, lazy: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func list(primaryNamespace: Swift.String, secondaryNamespace: Swift.String) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ @objc deinit } } @@ -4246,1979 +5162,1797 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ = LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelManager)? - @objc deinit - } -} -public typealias ChannelHandshakeLimits = LightningDevKit.Bindings.ChannelHandshakeLimits +public typealias SignerProvider = LightningDevKit.Bindings.SignerProvider extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeLimits : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class SignerProvider : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFundingSatoshis() -> Swift.UInt64 - public func setMinFundingSatoshis(val: Swift.UInt64) - public func getMaxFundingSatoshis() -> Swift.UInt64 - public func setMaxFundingSatoshis(val: Swift.UInt64) - public func getMaxHtlcMinimumMsat() -> Swift.UInt64 - public func setMaxHtlcMinimumMsat(val: Swift.UInt64) - public func getMinMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMinMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getMaxChannelReserveSatoshis() -> Swift.UInt64 - public func setMaxChannelReserveSatoshis(val: Swift.UInt64) - public func getMinMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMinMaxAcceptedHtlcs(val: Swift.UInt16) - public func getMaxMinimumDepth() -> Swift.UInt32 - public func setMaxMinimumDepth(val: Swift.UInt32) - public func getTrustOwnFunding0conf() -> Swift.Bool - public func setTrustOwnFunding0conf(val: Swift.Bool) - public func getForceAnnouncedChannelPreference() -> Swift.Bool - public func setForceAnnouncedChannelPreference(val: Swift.Bool) - public func getTheirToSelfDelay() -> Swift.UInt16 - public func setTheirToSelfDelay(val: Swift.UInt16) - public init(minFundingSatoshisArg: Swift.UInt64, maxFundingSatoshisArg: Swift.UInt64, maxHtlcMinimumMsatArg: Swift.UInt64, minMaxHtlcValueInFlightMsatArg: Swift.UInt64, maxChannelReserveSatoshisArg: Swift.UInt64, minMaxAcceptedHtlcsArg: Swift.UInt16, maxMinimumDepthArg: Swift.UInt32, trustOwnFunding0confArg: Swift.Bool, forceAnnouncedChannelPreferenceArg: Swift.Bool, theirToSelfDelayArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func isOwned() -> Swift.Bool + public init() + open func generateChannelKeysId(inbound: Swift.Bool, channelValueSatoshis: Swift.UInt64, userChannelId: [Swift.UInt8]) -> [Swift.UInt8] + open func deriveChannelSigner(channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8]) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + open func readChanSigner(reader: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ + open func getDestinationScript() -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + open func getShutdownScriptpubkey() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ @objc deinit } } -public typealias Confirm = LightningDevKit.Bindings.Confirm +public typealias BumpTransactionEvent = LightningDevKit.Bindings.BumpTransactionEvent extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Confirm : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BumpTransactionEvent : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func transactionsConfirmed(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) - open func transactionUnconfirmed(txid: [Swift.UInt8]?) - open func bestBlockUpdated(header: [Swift.UInt8]?, height: Swift.UInt32) - open func getRelevantTxids() -> [([Swift.UInt8], [Swift.UInt8]?)] + public enum BumpTransactionEventType { + case ChannelClose + case HTLCResolution + public static func == (a: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType, b: LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType + public class func initWithChannelClose(claimId: [Swift.UInt8], packageTargetFeerateSatPer1000Weight: Swift.UInt32, commitmentTx: [Swift.UInt8], commitmentTxFeeSatoshis: Swift.UInt64, anchorDescriptor: LightningDevKit.Bindings.AnchorDescriptor, pendingHtlcs: [LightningDevKit.Bindings.HTLCOutputInCommitment]) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func initWithHtlcresolution(claimId: [Swift.UInt8], targetFeerateSatPer1000Weight: Swift.UInt32, htlcDescriptors: [LightningDevKit.Bindings.HTLCDescriptor], txLockTime: Swift.UInt32) -> LightningDevKit.Bindings.BumpTransactionEvent + public class func eq(a: LightningDevKit.Bindings.BumpTransactionEvent, b: LightningDevKit.Bindings.BumpTransactionEvent) -> Swift.Bool + public func getValueAsChannelClose() -> LightningDevKit.Bindings.BumpTransactionEvent.ChannelClose? + public func getValueAsHtlcResolution() -> LightningDevKit.Bindings.BumpTransactionEvent.HTLCResolution? @objc deinit + @_hasMissingDesignatedInitializers public class ChannelClose : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getPackageTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getCommitmentTx() -> [Swift.UInt8] + public func getCommitmentTxFeeSatoshis() -> Swift.UInt64 + public func getAnchorDescriptor() -> LightningDevKit.Bindings.AnchorDescriptor + public func getPendingHtlcs() -> [LightningDevKit.Bindings.HTLCOutputInCommitment] + @objc deinit + } + @_hasMissingDesignatedInitializers public class HTLCResolution : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getClaimId() -> [Swift.UInt8] + public func getTargetFeerateSatPer1000Weight() -> Swift.UInt32 + public func getHtlcDescriptors() -> [LightningDevKit.Bindings.HTLCDescriptor] + public func getTxLockTime() -> Swift.UInt32 + @objc deinit + } } } -public typealias Result_PhantomRouteHintsDecodeErrorZ = LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ +public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PhantomRouteHintsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PhantomRouteHints) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PhantomRouteHints? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> Swift.String + public func setData(val: Swift.String) + public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessenger = LightningDevKit.Bindings.OnionMessenger +public typealias UtxoLookupError = LightningDevKit.Bindings.UtxoLookupError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessenger : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init(entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, messageRouter: LightningDevKit.Bindings.MessageRouter, offersHandler: LightningDevKit.Bindings.OffersMessageHandler, customHandler: LightningDevKit.Bindings.CustomOnionMessageHandler) - public func sendOnionMessage(path: LightningDevKit.Bindings.OnionMessagePath, message: LightningDevKit.Bindings.OnionMessageContents, replyPath: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func asOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler - public func asOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider - public func isOwned() -> Swift.Bool - @objc deinit + public enum UtxoLookupError { + case UnknownChain + case UnknownTx + public static func == (a: LightningDevKit.Bindings.UtxoLookupError, b: LightningDevKit.Bindings.UtxoLookupError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias InitFeatures = LightningDevKit.Bindings.InitFeatures +public typealias ExpiryTime = LightningDevKit.Bindings.ExpiryTime extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InitFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ExpiryTime : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InitFeatures, b: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InitFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setInitialRoutingSyncOptional() - public func setInitialRoutingSyncRequired() - public func initialRoutingSync() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ExpiryTime, b: LightningDevKit.Bindings.ExpiryTime) -> Swift.Bool + public class func initWithSeconds(seconds: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public class func initWithDuration(duration: Swift.UInt64) -> LightningDevKit.Bindings.ExpiryTime + public func asSeconds() -> Swift.UInt64 + public func asDuration() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +public typealias Result_UpdateFeeDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFeeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) - public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig - public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result__u832APIErrorZ - public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] - public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] - public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forceCloseAllChannelsBroadcastingLatestTxn() - public func forceCloseAllChannelsWithoutBroadcastingTxn() - public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ - public func abandonPayment(paymentId: [Swift.UInt8]) - public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_PaymentHashRetryableSendFailureZ - public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ - public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func processPendingHtlcForwards() - public func timerTickOccurred() - public func failHtlcBackwards(paymentHash: [Swift.UInt8]) - public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) - public func claimFunds(paymentPreimage: [Swift.UInt8]) - public func getOurNodeId() -> [Swift.UInt8] - public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func getPhantomScid() -> Swift.UInt64 - public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints - public func getInterceptScid() -> Swift.UInt64 - public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs - public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func getPersistableUpdateFuture() -> LightningDevKit.Bindings.Future - public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock - public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func initFeatures() -> LightningDevKit.Bindings.InitFeatures - public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFee) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFeeDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFee? @objc deinit } } -public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters +public typealias MultiThreadedScoreLockWrite = LightningDevKit.Bindings.MultiThreadedScoreLockWrite extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockWrite : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getValueSatoshis() -> Swift.UInt64 - public func setValueSatoshis(val: Swift.UInt64) - public func getKeysId() -> [Swift.UInt8]? - public func setKeysId(val: [Swift.UInt8]) - public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) - public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) - public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Hostname = LightningDevKit.Bindings.Hostname +public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Hostname : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.Hostname, b: LightningDevKit.Bindings.Hostname) -> Swift.Bool - public func len() -> Swift.UInt8 + public func getChannels() -> [Swift.UInt64] + public func setChannels(val: [Swift.UInt64]) + public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) + public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) + public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UtxoResult = LightningDevKit.Bindings.UtxoResult +public typealias Result_AcceptChannelDecodeErrorZ = LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UtxoResult : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AcceptChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum UtxoResultType { - case Sync - case Async - public static func == (a: LightningDevKit.Bindings.UtxoResult.UtxoResultType, b: LightningDevKit.Bindings.UtxoResult.UtxoResultType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.UtxoResult.UtxoResultType - public class func initWithSync(a: LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ) -> LightningDevKit.Bindings.UtxoResult - public class func initWithAsync(a: LightningDevKit.Bindings.UtxoFuture) -> LightningDevKit.Bindings.UtxoResult - public func getValueAsSync() -> LightningDevKit.Bindings.Result_TxOutUtxoLookupErrorZ? - public func getValueAsAsync() -> LightningDevKit.Bindings.UtxoFuture? + public class func initWithOk(o: LightningDevKit.Bindings.AcceptChannel) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AcceptChannel? @objc deinit } } -public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ +public typealias Result_TrustedClosingTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TrustedClosingTransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.TrustedClosingTransaction) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Hostname? + public func getValue() -> LightningDevKit.Bindings.TrustedClosingTransaction? @objc deinit } } -public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement +public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeSignature1() -> [Swift.UInt8] - public func setNodeSignature1(val: [Swift.UInt8]) - public func getNodeSignature2() -> [Swift.UInt8] - public func setNodeSignature2(val: [Swift.UInt8]) - public func getBitcoinSignature1() -> [Swift.UInt8] - public func setBitcoinSignature1(val: [Swift.UInt8]) - public func getBitcoinSignature2() -> [Swift.UInt8] - public func setBitcoinSignature2(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] + open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ + open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + open func signBolt12InvoiceRequest(invoiceRequest: LightningDevKit.Bindings.UnsignedInvoiceRequest) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signBolt12Invoice(invoice: LightningDevKit.Bindings.UnsignedBolt12Invoice) -> LightningDevKit.Bindings.Result_SchnorrSignatureNoneZ + open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_ECDSASignatureNoneZ @objc deinit } } -public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ +public typealias Fallback = LightningDevKit.Bindings.Fallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Fallback : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public enum FallbackType { + case SegWitProgram + case PubKeyHash + case ScriptHash + public static func == (a: LightningDevKit.Bindings.Fallback.FallbackType, b: LightningDevKit.Bindings.Fallback.FallbackType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.Fallback.FallbackType + public class func initWithSegWitProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithPubKeyHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public class func initWithScriptHash(a: [Swift.UInt8]) -> LightningDevKit.Bindings.Fallback + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Fallback, b: LightningDevKit.Bindings.Fallback) -> Swift.Bool + public func getValueAsSegWitProgram() -> LightningDevKit.Bindings.Fallback.SegWitProgram? + public func getValueAsPubKeyHash() -> [Swift.UInt8]? + public func getValueAsScriptHash() -> [Swift.UInt8]? + @objc deinit + @_hasMissingDesignatedInitializers public class SegWitProgram : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getVersion() -> Swift.UInt8 + public func getProgram() -> [Swift.UInt8] + @objc deinit + } + } +} +public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHop? + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getValue() -> Swift.Bool? @objc deinit } } -public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter +public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias +public typealias CustomMessageReader = LightningDevKit.Bindings.CustomMessageReader extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageReader : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [Swift.UInt8]? - public func setA(val: [Swift.UInt8]) - public init(aArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func read(messageType: Swift.UInt16, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ @objc deinit } } -public typealias Result_MaxDustHTLCExposureDecodeErrorZ = LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ +public typealias Result_RecipientOnionFieldsNoneZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_MaxDustHTLCExposureDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.MaxDustHTLCExposure) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_MaxDustHTLCExposureDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_boolPeerHandleErrorZ = LightningDevKit.Bindings.Result_boolPeerHandleErrorZ +public typealias PrivateRoute = LightningDevKit.Bindings.PrivateRoute extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_boolPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PrivateRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_boolPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> Swift.Bool? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.PrivateRoute, b: LightningDevKit.Bindings.PrivateRoute) -> Swift.Bool + public class func new(hops: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public func intoInner() -> LightningDevKit.Bindings.RouteHint + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bech32Error = LightningDevKit.Bindings.Bech32Error +public typealias Result_u32GraphSyncErrorZ = LightningDevKit.Bindings.Result_u32GraphSyncErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bech32Error : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_u32GraphSyncErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum Bech32ErrorType { - case MissingSeparator - case InvalidChecksum - case InvalidLength - case InvalidChar - case InvalidData - case InvalidPadding - case MixedCase - public static func == (a: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType, b: LightningDevKit.Bindings.Bech32Error.Bech32ErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Bech32Error.Bech32ErrorType - public func getValueAsInvalidChar() -> Swift.UInt32? - public func getValueAsInvalidData() -> Swift.UInt8? + public class func initWithOk(o: Swift.UInt32) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.GraphSyncError) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.GraphSyncError? + public func getValue() -> Swift.UInt32? @objc deinit } } -public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate +public typealias ChannelDerivationParameters = LightningDevKit.Bindings.ChannelDerivationParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelDerivationParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? - public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) - public func getForwardingFeeBaseMsat() -> Swift.UInt32? - public func setForwardingFeeBaseMsat(val: Swift.UInt32?) - public func getCltvExpiryDelta() -> Swift.UInt16? - public func setCltvExpiryDelta(val: Swift.UInt16?) - public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? - public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) - public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? - public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) - public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func getValueSatoshis() -> Swift.UInt64 + public func setValueSatoshis(val: Swift.UInt64) + public func getKeysId() -> [Swift.UInt8]? + public func setKeysId(val: [Swift.UInt8]) + public func getTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters + public func setTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(valueSatoshisArg: Swift.UInt64, keysIdArg: [Swift.UInt8], transactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public class func eq(a: LightningDevKit.Bindings.ChannelDerivationParameters, b: LightningDevKit.Bindings.ChannelDerivationParameters) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDerivationParametersDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BindingsInit = LightningDevKit.Bindings.BindingsInit +public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BindingsInit : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.InitFeatures - public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) - public func getNetworks() -> [[Swift.UInt8]]? - public func setNetworks(val: [[Swift.UInt8]]?) - public func getRemoteNetworkAddress() -> LightningDevKit.Bindings.NetAddress? - public func setRemoteNetworkAddress(val: LightningDevKit.Bindings.NetAddress?) - public init(featuresArg: LightningDevKit.Bindings.InitFeatures, networksArg: [[Swift.UInt8]]?, remoteNetworkAddressArg: LightningDevKit.Bindings.NetAddress?) - public class func eq(a: LightningDevKit.Bindings.BindingsInit, b: LightningDevKit.Bindings.BindingsInit) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) + public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice + public func signableHash() -> [Swift.UInt8]? + public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature + public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeySecp256k1ErrorZ + public func checkSignature() -> Swift.Bool + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ + public func toStr() -> Swift.String public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus +public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ extension LightningDevKit.Bindings { - public enum ChannelMonitorUpdateStatus { - case Completed - case InProgress - case PermanentFailure - public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + @objc deinit } } -public typealias CreationError = LightningDevKit.Bindings.CreationError +public typealias Wallet = LightningDevKit.Bindings.Wallet extension LightningDevKit.Bindings { - public enum CreationError { - case DescriptionTooLong - case RouteTooLong - case TimestampOutOfBounds - case InvalidAmount - case MissingRouteHints - case MinFinalCltvExpiryDeltaTooShort - public static func == (a: LightningDevKit.Bindings.CreationError, b: LightningDevKit.Bindings.CreationError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) + public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor +public typealias Router = LightningDevKit.Bindings.Router extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Router : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getOutput() -> LightningDevKit.Bindings.TxOut - public func setOutput(val: LightningDevKit.Bindings.TxOut) - public func getChannelKeysId() -> [Swift.UInt8]? - public func setChannelKeysId(val: [Swift.UInt8]) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func findRoute(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ + open func findRouteWithId(payer: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs, paymentHash: [Swift.UInt8], paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ @objc deinit } } -public typealias Result_Bolt11InvoiceSignOrCreationErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceSignOrCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SignOrCreationError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ + public class func initWithOk(o: [([Swift.UInt8], [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public class func initWithErr(e: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SignOrCreationError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public func getError() -> LightningDevKit.Bindings.ProbeSendFailure? + public func getValue() -> [([Swift.UInt8], [Swift.UInt8])]? @objc deinit } } -public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ +public typealias Result_Bolt12InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt12InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt12InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt12InvoiceFeaturesDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHint? + public func getValue() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures? @objc deinit } } -public typealias NetworkUpdate = LightningDevKit.Bindings.NetworkUpdate +public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetworkUpdateType { - case ChannelUpdateMessage - case ChannelFailure - case NodeFailure - public static func == (a: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType, b: LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType) -> Swift.Bool + public enum ErrorActionType { + case DisconnectPeer + case DisconnectPeerWithWarning + case IgnoreError + case IgnoreAndLog + case IgnoreDuplicateGossip + case SendErrorMessage + case SendWarningMessage + public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType - public class func initWithChannelUpdateMessage(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithChannelFailure(shortChannelId: Swift.UInt64, isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func initWithNodeFailure(nodeId: [Swift.UInt8], isPermanent: Swift.Bool) -> LightningDevKit.Bindings.NetworkUpdate - public class func eq(a: LightningDevKit.Bindings.NetworkUpdate, b: LightningDevKit.Bindings.NetworkUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_NetworkUpdateZDecodeErrorZ - public func getValueAsChannelUpdateMessage() -> LightningDevKit.Bindings.NetworkUpdate.ChannelUpdateMessage? - public func getValueAsChannelFailure() -> LightningDevKit.Bindings.NetworkUpdate.ChannelFailure? - public func getValueAsNodeFailure() -> LightningDevKit.Bindings.NetworkUpdate.NodeFailure? + public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType + public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction + public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction + public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? + public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? + public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? + public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? + public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? @objc deinit - @_hasMissingDesignatedInitializers public class ChannelUpdateMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ChannelUpdate + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - @_hasMissingDesignatedInitializers public class ChannelFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getShortChannelId() -> Swift.UInt64 - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.WarningMessage @objc deinit } - @_hasMissingDesignatedInitializers public class NodeFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNodeId() -> [Swift.UInt8] - public func isPermanent() -> Swift.Bool + public func getMsg() -> LightningDevKit.Bindings.ErrorMessage @objc deinit } - } -} -public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum PaymentSendFailureType { - case ParameterError - case PathParameterError - case AllFailedResendSafe - case DuplicatePayment - case PartialFailure - public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType - public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure - public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure - public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? - public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? - public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? - public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? - @objc deinit - @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] - public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters - public func getPaymentId() -> [Swift.UInt8] + public func getMsg() -> LightningDevKit.Bindings.WarningMessage + public func getLogLevel() -> LightningDevKit.Bindings.Level @objc deinit } } } -public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? - @objc deinit - } -} -public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ +public typealias CounterpartyForwardingInfo = LightningDevKit.Bindings.CounterpartyForwardingInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyForwardingInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? - @objc deinit - } -} -public typealias Option_NoneZ = LightningDevKit.Bindings.Option_NoneZ -extension LightningDevKit.Bindings { - public enum Option_NoneZ { - case Some - case None - public static func == (a: LightningDevKit.Bindings.Option_NoneZ, b: LightningDevKit.Bindings.Option_NoneZ) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit } } -public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ +public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? + public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? @objc deinit } } -public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ +public typealias GossipSync = LightningDevKit.Bindings.GossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCDestination? + public enum GossipSyncType { + case P2P + case Rapid + case None + public static func == (a: LightningDevKit.Bindings.GossipSync.GossipSyncType, b: LightningDevKit.Bindings.GossipSync.GossipSyncType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.GossipSync.GossipSyncType + public class func initWithP2P(a: LightningDevKit.Bindings.P2PGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func initWithRapid(a: LightningDevKit.Bindings.RapidGossipSync) -> LightningDevKit.Bindings.GossipSync + public class func none() -> LightningDevKit.Bindings.GossipSync + public func getValueAsP2p() -> LightningDevKit.Bindings.P2PGossipSync? + public func getValueAsRapid() -> LightningDevKit.Bindings.RapidGossipSync? @objc deinit } } -public typealias Result_FundingCreatedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ +public typealias HTLCClaim = LightningDevKit.Bindings.HTLCClaim extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingCreatedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum HTLCClaim { + case OfferedTimeout + case OfferedPreimage + case AcceptedTimeout + case AcceptedPreimage + case Revocation + public static func == (a: LightningDevKit.Bindings.HTLCClaim, b: LightningDevKit.Bindings.HTLCClaim) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_TxCreationKeysDecodeErrorZ = LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_TxCreationKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingCreated) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxCreationKeys) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingCreated? + public func getValue() -> LightningDevKit.Bindings.TxCreationKeys? @objc deinit } } -public typealias TransactionU16LenLimited = LightningDevKit.Bindings.TransactionU16LenLimited +public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TransactionU16LenLimited : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.TransactionU16LenLimited, b: LightningDevKit.Bindings.TransactionU16LenLimited) -> Swift.Bool - public class func new(transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedNoneZ - public func intoTransaction() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ +public typealias Result_BlindedPayInfoDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPayInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPayInfo) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.PathFailure? + public func getValue() -> LightningDevKit.Bindings.BlindedPayInfo? @objc deinit } } -public typealias Result_ChannelShutdownStateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ +public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelShutdownStateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelShutdownState) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelShutdownStateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelShutdownState? + public func getValue() -> LightningDevKit.Bindings.TxAddInput? @objc deinit } } -public typealias WalletSource = LightningDevKit.Bindings.WalletSource +public typealias Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class WalletSource : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func listConfirmedUtxos() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ - open func getChangeScript() -> LightningDevKit.Bindings.Result_ScriptNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> (LightningDevKit.Bindings.BlindedPayInfo, LightningDevKit.Bindings.BlindedPath)? @objc deinit } } -public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getData() -> LightningDevKit.Bindings.RawDataPart - public func setData(val: LightningDevKit.Bindings.RawDataPart) - public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func getSrcNodeId() -> [Swift.UInt8] + public func setSrcNodeId(val: [Swift.UInt8]) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64? + public func setHtlcMinimumMsat(val: Swift.UInt64?) + public func getHtlcMaximumMsat() -> Swift.UInt64? + public func setHtlcMaximumMsat(val: Swift.UInt64?) + public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) public func hash() -> Swift.UInt64 - public func signableHash() -> [Swift.UInt8] - public func paymentHash() -> LightningDevKit.Bindings.Sha256? - public func description() -> LightningDevKit.Bindings.Description? - public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? - public func descriptionHash() -> LightningDevKit.Bindings.Sha256? - public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? - public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? - public func paymentSecret() -> [Swift.UInt8]? - public func paymentMetadata() -> [Swift.UInt8]? - public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? - public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] - public func amountPicoBtc() -> Swift.UInt64? - public func currency() -> LightningDevKit.Bindings.Currency + public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate +public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateId() -> Swift.UInt64 - public func setUpdateId(val: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getRgb() -> [Swift.UInt8]? + public func setRgb(val: [Swift.UInt8]) + public func getAlias() -> LightningDevKit.Bindings.NodeAlias + public func setAlias(val: LightningDevKit.Bindings.NodeAlias) + public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? + public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) + public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool + public func addresses() -> [LightningDevKit.Bindings.SocketAddress] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxAddInput = LightningDevKit.Bindings.TxAddInput +public typealias TxAddOutput = LightningDevKit.Bindings.TxAddOutput extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxAddInput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxAddOutput : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) public func getSerialId() -> Swift.UInt64 public func setSerialId(val: Swift.UInt64) - public func getPrevtx() -> LightningDevKit.Bindings.TransactionU16LenLimited - public func setPrevtx(val: LightningDevKit.Bindings.TransactionU16LenLimited) - public func getPrevtxOut() -> Swift.UInt32 - public func setPrevtxOut(val: Swift.UInt32) - public func getSequence() -> Swift.UInt32 - public func setSequence(val: Swift.UInt32) - public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, prevtxArg: LightningDevKit.Bindings.TransactionU16LenLimited, prevtxOutArg: Swift.UInt32, sequenceArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.TxAddInput, b: LightningDevKit.Bindings.TxAddInput) -> Swift.Bool + public func getSats() -> Swift.UInt64 + public func setSats(val: Swift.UInt64) + public func getScript() -> [Swift.UInt8] + public func setScript(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], serialIdArg: Swift.UInt64, satsArg: Swift.UInt64, scriptArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAddOutput, b: LightningDevKit.Bindings.TxAddOutput) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func call() - @objc deinit - } -} -public typealias ChannelHandshakeConfig = LightningDevKit.Bindings.ChannelHandshakeConfig -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelHandshakeConfig : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getOurToSelfDelay() -> Swift.UInt16 - public func setOurToSelfDelay(val: Swift.UInt16) - public func getOurHtlcMinimumMsat() -> Swift.UInt64 - public func setOurHtlcMinimumMsat(val: Swift.UInt64) - public func getMaxInboundHtlcValueInFlightPercentOfChannel() -> Swift.UInt8 - public func setMaxInboundHtlcValueInFlightPercentOfChannel(val: Swift.UInt8) - public func getNegotiateScidPrivacy() -> Swift.Bool - public func setNegotiateScidPrivacy(val: Swift.Bool) - public func getAnnouncedChannel() -> Swift.Bool - public func setAnnouncedChannel(val: Swift.Bool) - public func getCommitUpfrontShutdownPubkey() -> Swift.Bool - public func setCommitUpfrontShutdownPubkey(val: Swift.Bool) - public func getTheirChannelReserveProportionalMillionths() -> Swift.UInt32 - public func setTheirChannelReserveProportionalMillionths(val: Swift.UInt32) - public func getNegotiateAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setNegotiateAnchorsZeroFeeHtlcTx(val: Swift.Bool) - public func getOurMaxAcceptedHtlcs() -> Swift.UInt16 - public func setOurMaxAcceptedHtlcs(val: Swift.UInt16) - public init(minimumDepthArg: Swift.UInt32, ourToSelfDelayArg: Swift.UInt16, ourHtlcMinimumMsatArg: Swift.UInt64, maxInboundHtlcValueInFlightPercentOfChannelArg: Swift.UInt8, negotiateScidPrivacyArg: Swift.Bool, announcedChannelArg: Swift.Bool, commitUpfrontShutdownPubkeyArg: Swift.Bool, theirChannelReserveProportionalMillionthsArg: Swift.UInt32, negotiateAnchorsZeroFeeHtlcTxArg: Swift.Bool, ourMaxAcceptedHtlcsArg: Swift.UInt16) - public class func initWithDefault() -> LightningDevKit.Bindings.ChannelHandshakeConfig + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAddOutputDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias RouteHint = LightningDevKit.Bindings.RouteHint +public typealias Result_OnionMessagePathNoneZ = LightningDevKit.Bindings.Result_OnionMessagePathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessagePathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> [LightningDevKit.Bindings.RouteHintHop] - public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) - public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessagePath) -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_OnionMessagePathNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.OnionMessagePath? @objc deinit } } -public typealias Result_InFlightHtlcsDecodeErrorZ = LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ +public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InFlightHtlcsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.InFlightHtlcs) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InFlightHtlcsDecodeErrorZ + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.InFlightHtlcs? + public func getError() -> LightningDevKit.Bindings.APIError? @objc deinit } } -public typealias Result_PaymentHashPaymentSendFailureZ = LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ +public typealias TxInitRbf = LightningDevKit.Bindings.TxInitRbf extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentHashPaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxInitRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_PaymentHashPaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? - public func getValue() -> [Swift.UInt8]? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getLocktime() -> Swift.UInt32 + public func setLocktime(val: Swift.UInt32) + public func getFeerateSatPer1000Weight() -> Swift.UInt32 + public func setFeerateSatPer1000Weight(val: Swift.UInt32) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], locktimeArg: Swift.UInt32, feerateSatPer1000WeightArg: Swift.UInt32, fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxInitRbf, b: LightningDevKit.Bindings.TxInitRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents +public typealias FutureCallback = LightningDevKit.Bindings.FutureCallback extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class FutureCallback : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum OnionMessageContentsType { - case Offers - case Custom - public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType - public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents - public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents - public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? - public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func call() @objc deinit } } -public typealias Result_COption_TypeZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ +public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_TypeZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsType?) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_TypeZDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsType? + public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? @objc deinit } } -public typealias Wallet = LightningDevKit.Bindings.Wallet +public typealias ChannelSigner = LightningDevKit.Bindings.ChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Wallet : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(source: LightningDevKit.Bindings.WalletSource, logger: LightningDevKit.Bindings.Logger) - public func asCoinSelectionSource() -> LightningDevKit.Bindings.CoinSelectionSource - public func isOwned() -> Swift.Bool + public init(pubkeys: LightningDevKit.Bindings.ChannelPublicKeys) + open func getPerCommitmentPoint(idx: Swift.UInt64) -> [Swift.UInt8] + open func releaseCommitmentSecret(idx: Swift.UInt64) -> [Swift.UInt8] + open func validateHolderCommitment(holderTx: LightningDevKit.Bindings.HolderCommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func channelKeysId() -> [Swift.UInt8] + open func provideChannelParameters(channelParameters: LightningDevKit.Bindings.ChannelTransactionParameters) + public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys @objc deinit } } -public typealias Result_UpdateFailMalformedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ +public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFailMalformedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailMalformedHTLC) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailMalformedHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFailMalformedHTLC? + public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelTransactionParametersDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ +public typealias Path = LightningDevKit.Bindings.Path extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTransactionParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Path : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTransactionParameters) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTransactionParametersDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func getHops() -> [LightningDevKit.Bindings.RouteHop] + public func setHops(val: [LightningDevKit.Bindings.RouteHop]) + public func getBlindedTail() -> LightningDevKit.Bindings.BlindedTail? + public func setBlindedTail(val: LightningDevKit.Bindings.BlindedTail) + public init(hopsArg: [LightningDevKit.Bindings.RouteHop], blindedTailArg: LightningDevKit.Bindings.BlindedTail) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Path, b: LightningDevKit.Bindings.Path) -> Swift.Bool + public func feeMsat() -> Swift.UInt64 + public func finalValueMsat() -> Swift.UInt64 + public func finalCltvExpiryDelta() -> Swift.UInt32? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ +public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveInput) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveInputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveInput? + public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? @objc deinit } } -public typealias NodeInfo = LightningDevKit.Bindings.NodeInfo +public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [Swift.UInt64] - public func setChannels(val: [Swift.UInt64]) - public func getAnnouncementInfo() -> LightningDevKit.Bindings.NodeAnnouncementInfo? - public func setAnnouncementInfo(val: LightningDevKit.Bindings.NodeAnnouncementInfo) - public init(channelsArg: [Swift.UInt64], announcementInfoArg: LightningDevKit.Bindings.NodeAnnouncementInfo) - public class func eq(a: LightningDevKit.Bindings.NodeInfo, b: LightningDevKit.Bindings.NodeInfo) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_UnsignedChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ +public typealias Result_RecoverableSignatureNoneZ = LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UnsignedChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecoverableSignatureNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UnsignedChannelAnnouncementDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Result_WriteableEcdsaChannelSignerDecodeErrorZ = LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ +public typealias Description = LightningDevKit.Bindings.Description extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WriteableEcdsaChannelSignerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Description : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WriteableEcdsaChannelSigner) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WriteableEcdsaChannelSignerDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Description, b: LightningDevKit.Bindings.Description) -> Swift.Bool + public class func new(description: Swift.String) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public func intoInner() -> Swift.String + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCDescriptor = LightningDevKit.Bindings.HTLCDescriptor +public typealias BlindedPath = LightningDevKit.Bindings.BlindedPath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getPerCommitmentNumber() -> Swift.UInt64 - public func setPerCommitmentNumber(val: Swift.UInt64) - public func getPerCommitmentPoint() -> [Swift.UInt8] - public func setPerCommitmentPoint(val: [Swift.UInt8]) - public func getHtlc() -> LightningDevKit.Bindings.HTLCOutputInCommitment - public func setHtlc(val: LightningDevKit.Bindings.HTLCOutputInCommitment) - public func getPreimage() -> [Swift.UInt8]? - public func setPreimage(val: [Swift.UInt8]?) - public func getCounterpartySig() -> [Swift.UInt8] - public func setCounterpartySig(val: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.HTLCDescriptor, b: LightningDevKit.Bindings.HTLCDescriptor) -> Swift.Bool - public func outpoint() -> LightningDevKit.Bindings.OutPoint - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func txOutput() -> LightningDevKit.Bindings.TxOut - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8], witnessScript: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getIntroductionNodeId() -> [Swift.UInt8] + public func setIntroductionNodeId(val: [Swift.UInt8]) + public func getBlindingPoint() -> [Swift.UInt8] + public func setBlindingPoint(val: [Swift.UInt8]) + public func getBlindedHops() -> [LightningDevKit.Bindings.BlindedHop] + public func setBlindedHops(val: [LightningDevKit.Bindings.BlindedHop]) + public init(introductionNodeIdArg: [Swift.UInt8], blindingPointArg: [Swift.UInt8], blindedHopsArg: [LightningDevKit.Bindings.BlindedHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPath, b: LightningDevKit.Bindings.BlindedPath) -> Swift.Bool + public class func newForMessage(nodePks: [[Swift.UInt8]], entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func oneHopForPayment(payeeNodeId: [Swift.UInt8], payeeTlvs: LightningDevKit.Bindings.ReceiveTlvs, entropySource: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RouteLightningErrorZ = LightningDevKit.Bindings.Result_RouteLightningErrorZ +public typealias Route = LightningDevKit.Bindings.Route extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Route : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Route) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? - public func getValue() -> LightningDevKit.Bindings.Route? + public func getPaths() -> [LightningDevKit.Bindings.Path] + public func setPaths(val: [LightningDevKit.Bindings.Path]) + public func getRouteParams() -> LightningDevKit.Bindings.RouteParameters? + public func setRouteParams(val: LightningDevKit.Bindings.RouteParameters) + public init(pathsArg: [LightningDevKit.Bindings.Path], routeParamsArg: LightningDevKit.Bindings.RouteParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Route, b: LightningDevKit.Bindings.Route) -> Swift.Bool + public func getTotalFees() -> Swift.UInt64 + public func getTotalAmount() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getPushMsat() -> Swift.UInt64 - public func setPushMsat(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getFeeratePerKw() -> Swift.UInt32 - public func setFeeratePerKw(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getChannelFlags() -> Swift.UInt8 - public func setChannelFlags(val: Swift.UInt8) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool +public typealias Shutdown = LightningDevKit.Bindings.Shutdown +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getScriptpubkey() -> [Swift.UInt8] + public func setScriptpubkey(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ +public typealias Result_BlindedTailDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedTailDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedTail) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedTailDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.CoinSelection? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BlindedTail? @objc deinit } } -public typealias Result_CVec_u8ZPeerHandleErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ +public typealias ScorerAccountingForInFlightHtlcs = LightningDevKit.Bindings.ScorerAccountingForInFlightHtlcs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_u8ZPeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ScorerAccountingForInFlightHtlcs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_CVec_u8ZPeerHandleErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? - public func getValue() -> [Swift.UInt8]? + public init(scorer: LightningDevKit.Bindings.ScoreLookUp, inflightHtlcs: LightningDevKit.Bindings.InFlightHtlcs) + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_KeyPairZNoneZ = LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ +public typealias Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_KeyPairZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_COption_KeyPairZNoneZ + public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? @objc deinit } } -public typealias Result_StaticPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ +public typealias EntropySource = LightningDevKit.Bindings.EntropySource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StaticPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EntropySource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? + public init() + open func getSecureRandomBytes() -> [Swift.UInt8] @objc deinit } } -public typealias ShutdownScript = LightningDevKit.Bindings.ShutdownScript +public typealias TxIn = LightningDevKit.Bindings.TxIn extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ShutdownScript : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ShutdownScript, b: LightningDevKit.Bindings.ShutdownScript) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithP2wpkh(pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func initWithP2wsh(scriptHash: [Swift.UInt8]) -> LightningDevKit.Bindings.ShutdownScript - public class func newWitnessProgram(version: Swift.UInt8, program: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownScriptInvalidShutdownScriptZ - public func intoInner() -> [Swift.UInt8] - public func asLegacyPubkey() -> [Swift.UInt8]? - public func isCompatible(features: LightningDevKit.Bindings.InitFeatures) -> Swift.Bool - public func isOwned() -> Swift.Bool + public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) + public func getWitness() -> [Swift.UInt8] + public func getScriptSig() -> [Swift.UInt8] + public func getSequence() -> Swift.UInt32 + public func getPreviousTxid() -> [Swift.UInt8] + public func getPreviousVout() -> Swift.UInt32 @objc deinit } } -public typealias Result_COption_CustomOnionMessageContentsZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ +public typealias ScoreLookUp = LightningDevKit.Bindings.ScoreLookUp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_CustomOnionMessageContentsZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class ScoreLookUp : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CustomOnionMessageContents?) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CustomOnionMessageContents? + public init() + open func channelPenaltyMsat(shortChannelId: Swift.UInt64, source: LightningDevKit.Bindings.NodeId, target: LightningDevKit.Bindings.NodeId, usage: LightningDevKit.Bindings.ChannelUsage, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.UInt64 @objc deinit } } -public typealias Result_NoneLightningErrorZ = LightningDevKit.Bindings.Result_NoneLightningErrorZ +public typealias Result_Bolt11InvoiceParseOrSemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneLightningErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceParseOrSemanticErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.ParseOrSemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceParseOrSemanticErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.LightningError? + public func getError() -> LightningDevKit.Bindings.ParseOrSemanticError? + public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? @objc deinit } } -public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ +public typealias RapidGossipSync = LightningDevKit.Bindings.RapidGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RapidGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func syncNetworkGraphWithFilePath(syncPath: Swift.String) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraph(updateData: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func updateNetworkGraphNoStd(updateData: [Swift.UInt8], currentTimeUnix: Swift.UInt64?) -> LightningDevKit.Bindings.Result_u32GraphSyncErrorZ + public func isInitialSyncComplete() -> Swift.Bool + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OutPoint = LightningDevKit.Bindings.OutPoint +public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public func getIndex() -> Swift.UInt16 - public func setIndex(val: Swift.UInt16) - public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func toChannelId() -> [Swift.UInt8] + public func getPaymentSecret() -> [Swift.UInt8]? + public func setPaymentSecret(val: [Swift.UInt8]?) + public func getPaymentMetadata() -> [Swift.UInt8]? + public func setPaymentMetadata(val: [Swift.UInt8]?) + public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields + public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public func withCustomTlvs(customTlvs: [(Swift.UInt64, [Swift.UInt8])]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsNoneZ + public func customTlvs() -> [(Swift.UInt64, [Swift.UInt8])] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SignatureNoneZ = LightningDevKit.Bindings.Result_SignatureNoneZ +public typealias Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ = LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SignatureNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_SignatureNoneZ + public class func initWithOk(o: [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)]? @objc deinit } } -public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ +public typealias DefaultMessageRouter = LightningDevKit.Bindings.DefaultMessageRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultMessageRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? + public init() + public func asMessageRouter() -> LightningDevKit.Bindings.MessageRouter + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias HTLCOutputInCommitment = LightningDevKit.Bindings.HTLCOutputInCommitment +public typealias StaticPaymentOutputDescriptor = LightningDevKit.Bindings.StaticPaymentOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCOutputInCommitment : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class StaticPaymentOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getOffered() -> Swift.Bool - public func setOffered(val: Swift.Bool) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getTransactionOutputIndex() -> Swift.UInt32? - public func setTransactionOutputIndex(val: Swift.UInt32?) - public init(offeredArg: Swift.Bool, amountMsatArg: Swift.UInt64, cltvExpiryArg: Swift.UInt32, paymentHashArg: [Swift.UInt8], transactionOutputIndexArg: Swift.UInt32?) - public class func eq(a: LightningDevKit.Bindings.HTLCOutputInCommitment, b: LightningDevKit.Bindings.HTLCOutputInCommitment) -> Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getChannelKeysId() -> [Swift.UInt8]? + public func setChannelKeysId(val: [Swift.UInt8]) + public func getChannelValueSatoshis() -> Swift.UInt64 + public func setChannelValueSatoshis(val: Swift.UInt64) + public func getChannelTransactionParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func setChannelTransactionParameters(val: LightningDevKit.Bindings.ChannelTransactionParameters) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, channelKeysIdArg: [Swift.UInt8], channelValueSatoshisArg: Swift.UInt64, channelTransactionParametersArg: LightningDevKit.Bindings.ChannelTransactionParameters) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor, b: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> Swift.Bool + public func witnessScript() -> [Swift.UInt8]? + public func maxWitnessLength() -> Swift.UInt public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StaticPaymentOutputDescriptorDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Refund = LightningDevKit.Bindings.Refund +public typealias Logger = LightningDevKit.Bindings.Logger extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Refund : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Logger : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func log(record: LightningDevKit.Bindings.Record) + @objc deinit + } +} +public typealias Network = LightningDevKit.Bindings.Network +extension LightningDevKit.Bindings { + public enum Network { + case Bitcoin + case Testnet + case Regtest + case Signet + public static func == (a: LightningDevKit.Bindings.Network, b: LightningDevKit.Bindings.Network) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias Result_PaymentFailureReasonDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PaymentFailureReasonDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PaymentFailureReason) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentFailureReasonDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentFailureReason? + @objc deinit + } +} +public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures public func absoluteExpiry() -> Swift.UInt64? - public func isExpired() -> Swift.Bool public func issuer() -> LightningDevKit.Bindings.PrintableString? public func paths() -> [LightningDevKit.Bindings.BlindedPath] - public func metadata() -> [Swift.UInt8] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] public func chain() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures public func quantity() -> Swift.UInt64? public func payerId() -> [Swift.UInt8] public func payerNote() -> LightningDevKit.Bindings.PrintableString? public func write() -> [Swift.UInt8] - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer +public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) - public func debugLogLiquidityStats() - public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? - public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? - public func asScore() -> LightningDevKit.Bindings.Score + public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? + public func listChannels() -> [Swift.UInt64] + public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? + public func listNodes() -> [LightningDevKit.Bindings.NodeId] + public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.SocketAddress]? + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelManager = LightningDevKit.Bindings.ChannelManager +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelManager : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(feeEst: LightningDevKit.Bindings.FeeEstimator, chainMonitor: LightningDevKit.Bindings.Watch, txBroadcaster: LightningDevKit.Bindings.BroadcasterInterface, router: LightningDevKit.Bindings.Router, logger: LightningDevKit.Bindings.Logger, entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, signerProvider: LightningDevKit.Bindings.SignerProvider, config: LightningDevKit.Bindings.UserConfig, params: LightningDevKit.Bindings.ChainParameters, currentTimestamp: Swift.UInt32) + public func getCurrentDefaultConfiguration() -> LightningDevKit.Bindings.UserConfig + public func createChannel(theirNetworkKey: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, userChannelId: [Swift.UInt8], overrideConfig: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func listChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listUsableChannels() -> [LightningDevKit.Bindings.ChannelDetails] + public func listChannelsWithCounterparty(counterpartyNodeId: [Swift.UInt8]) -> [LightningDevKit.Bindings.ChannelDetails] + public func listRecentPayments() -> [LightningDevKit.Bindings.RecentPaymentDetails] + public func closeChannel(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func closeChannelWithFeerateAndScript(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], targetFeerateSatsPer1000Weight: Swift.UInt32?, shutdownScript: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseBroadcastingLatestTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseWithoutBroadcastingTxn(channelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forceCloseAllChannelsBroadcastingLatestTxn() + public func forceCloseAllChannelsWithoutBroadcastingTxn() + public func sendPaymentWithRoute(route: LightningDevKit.Bindings.Route, paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ + public func sendPayment(paymentHash: [Swift.UInt8], recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_NoneRetryableSendFailureZ + public func abandonPayment(paymentId: [Swift.UInt8]) + public func sendSpontaneousPayment(route: LightningDevKit.Bindings.Route, paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentSendFailureZ + public func sendSpontaneousPaymentWithRetry(paymentPreimage: [Swift.UInt8]?, recipientOnion: LightningDevKit.Bindings.RecipientOnionFields, paymentId: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, retryStrategy: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesRetryableSendFailureZ + public func sendProbe(path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ + public func sendSpontaneousPreflightProbes(nodeId: [Swift.UInt8], amountMsat: Swift.UInt64, finalCltvExpiryDelta: Swift.UInt32, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func sendPreflightProbes(routeParams: LightningDevKit.Bindings.RouteParameters, liquidityLimitMultiplier: Swift.UInt64?) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ + public func fundingTransactionGenerated(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func batchFundingTransactionGenerated(temporaryChannels: [([Swift.UInt8], [Swift.UInt8])], fundingTransaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updatePartialChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], configUpdate: LightningDevKit.Bindings.ChannelConfigUpdate) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func updateChannelConfig(counterpartyNodeId: [Swift.UInt8], channelIds: [[Swift.UInt8]], config: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func forwardInterceptedHtlc(interceptId: [Swift.UInt8], nextHopChannelId: [Swift.UInt8], nextNodeId: [Swift.UInt8], amtToForwardMsat: Swift.UInt64) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func failInterceptedHtlc(interceptId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func processPendingHtlcForwards() + public func timerTickOccurred() + public func failHtlcBackwards(paymentHash: [Swift.UInt8]) + public func failHtlcBackwardsWithReason(paymentHash: [Swift.UInt8], failureCode: LightningDevKit.Bindings.FailureCode) + public func claimFunds(paymentPreimage: [Swift.UInt8]) + public func claimFundsWithKnownCustomTlvs(paymentPreimage: [Swift.UInt8]) + public func getOurNodeId() -> [Swift.UInt8] + public func acceptInboundChannel(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func acceptInboundChannelFromTrustedPeer0conf(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func createInboundPayment(minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ + public func createInboundPaymentForHash(paymentHash: [Swift.UInt8], minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiry: Swift.UInt16?) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func getPaymentPreimage(paymentHash: [Swift.UInt8], paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public func getPhantomScid() -> Swift.UInt64 + public func getPhantomRouteHints() -> LightningDevKit.Bindings.PhantomRouteHints + public func getInterceptScid() -> Swift.UInt64 + public func computeInflightHtlcs() -> LightningDevKit.Bindings.InFlightHtlcs + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func getEventOrPersistenceNeededFuture() -> LightningDevKit.Bindings.Future + public func getAndClearNeedsPersistence() -> Swift.Bool + public func currentBestBlock() -> LightningDevKit.Bindings.BestBlock + public func nodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func channelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures + public func initFeatures() -> LightningDevKit.Bindings.InitFeatures + public func asChannelMessageHandler() -> LightningDevKit.Bindings.ChannelMessageHandler public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReestablishDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ +public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReestablishDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReestablish) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReestablishDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReestablish? + public init() + open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? + open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ @objc deinit } } -public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys +public typealias PositiveTimestamp = LightningDevKit.Bindings.PositiveTimestamp extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PositiveTimestamp : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.PositiveTimestamp, b: LightningDevKit.Bindings.PositiveTimestamp) -> Swift.Bool + public func hash() -> Swift.UInt64 + public class func fromUnixTimestamp(unixSeconds: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromSystemTime(time: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func fromDurationSinceEpoch(duration: Swift.UInt64) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func asUnixTimestamp() -> Swift.UInt64 + public func asDurationSinceEpoch() -> Swift.UInt64 + public func asTime() -> Swift.UInt64 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Watch = LightningDevKit.Bindings.Watch +public typealias Bolt11SemanticError = LightningDevKit.Bindings.Bolt11SemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class Watch : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func watchChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, monitor: LightningDevKit.Bindings.ChannelMonitor) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func updateChannel(fundingTxo: LightningDevKit.Bindings.OutPoint, update: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.ChannelMonitorUpdateStatus - open func releasePendingMonitorEvents() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorEvent], [Swift.UInt8])] - @objc deinit + public enum Bolt11SemanticError { + case NoPaymentHash + case MultiplePaymentHashes + case NoDescription + case MultipleDescriptions + case NoPaymentSecret + case MultiplePaymentSecrets + case InvalidFeatures + case InvalidRecoveryId + case InvalidSignature + case ImpreciseAmount + public static func == (a: LightningDevKit.Bindings.Bolt11SemanticError, b: LightningDevKit.Bindings.Bolt11SemanticError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } } } -public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler +public typealias Result_UpdateFailHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFailHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) - open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFailHTLC) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFailHTLCDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.UpdateFailHTLC? @objc deinit } } -public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +public typealias Utxo = LightningDevKit.Bindings.Utxo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Utxo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) + public func getOutput() -> LightningDevKit.Bindings.TxOut + public func setOutput(val: LightningDevKit.Bindings.TxOut) + public func getSatisfactionWeight() -> Swift.UInt64 + public func setSatisfactionWeight(val: Swift.UInt64) + public init(outpointArg: LightningDevKit.Bindings.OutPoint, outputArg: LightningDevKit.Bindings.TxOut, satisfactionWeightArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Utxo, b: LightningDevKit.Bindings.Utxo) -> Swift.Bool + public class func initWithP2pkh(outpoint: LightningDevKit.Bindings.OutPoint, value: Swift.UInt64, pubkeyHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Utxo + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias LightningError = LightningDevKit.Bindings.LightningError +public typealias UntrustedString = LightningDevKit.Bindings.UntrustedString extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UntrustedString : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func setErr(val: Swift.String) - public func getAction() -> LightningDevKit.Bindings.ErrorAction - public func setAction(val: LightningDevKit.Bindings.ErrorAction) - public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func getA() -> Swift.String + public func setA(val: Swift.String) + public init(aArg: Swift.String) + public class func eq(a: LightningDevKit.Bindings.UntrustedString, b: LightningDevKit.Bindings.UntrustedString) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_RoutingFeesDecodeErrorZ = LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ +public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RoutingFeesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RoutingFees) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RoutingFees? + public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? @objc deinit } } -public typealias Result_NodeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ +public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeFeatures) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeFeatures? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getHtlcId() -> Swift.UInt64 + public func setHtlcId(val: Swift.UInt64) + public func getPaymentPreimage() -> [Swift.UInt8]? + public func setPaymentPreimage(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CustomOnionMessageHandler = LightningDevKit.Bindings.CustomOnionMessageHandler +public typealias Ping = LightningDevKit.Bindings.Ping extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CustomOnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class Ping : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func handleCustomMessage(msg: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.CustomOnionMessageContents? - open func readCustomMessage(messageType: Swift.UInt64, buffer: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_CustomOnionMessageContentsZDecodeErrorZ + public func getPonglen() -> Swift.UInt16 + public func setPonglen(val: Swift.UInt16) + public func getByteslen() -> Swift.UInt16 + public func setByteslen(val: Swift.UInt16) + public init(ponglenArg: Swift.UInt16, byteslenArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.Ping, b: LightningDevKit.Bindings.Ping) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias WatchedOutput = LightningDevKit.Bindings.WatchedOutput +public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class WatchedOutput : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getBlockHash() -> [Swift.UInt8]? - public func setBlockHash(val: [Swift.UInt8]?) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public func getScriptPubkey() -> [Swift.UInt8] - public func setScriptPubkey(val: [Swift.UInt8]) - public init(blockHashArg: [Swift.UInt8]?, outpointArg: LightningDevKit.Bindings.OutPoint, scriptPubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.WatchedOutput, b: LightningDevKit.Bindings.WatchedOutput) -> Swift.Bool - public func hash() -> Swift.UInt64 + public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] + public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) + public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] + public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) + public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] + public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) + public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] + public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) + public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? + public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) + public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned + public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) + public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) + public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedInvoiceRequest = LightningDevKit.Bindings.UnsignedInvoiceRequest +public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedInvoiceRequest : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Event? @objc deinit } } -public typealias Result_TxSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ +public typealias WriteableEcdsaChannelSigner = LightningDevKit.Bindings.WriteableEcdsaChannelSigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class WriteableEcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxSignatures) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxSignatures? + public init(ecdsaChannelSigner: LightningDevKit.Bindings.EcdsaChannelSigner) + open func write() -> [Swift.UInt8] + public func getEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner @objc deinit } } -public typealias Result_CVec_SignatureZNoneZ = LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ +public typealias DecodeError = LightningDevKit.Bindings.DecodeError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CVec_SignatureZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_SignatureZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> [[Swift.UInt8]]? + public enum DecodeErrorType { + case UnknownVersion + case UnknownRequiredFeature + case InvalidValue + case ShortRead + case BadLengthDescriptor + case Io + case UnsupportedCompression + public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType + public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError + public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError + public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError + public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError + public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError + public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError + public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError + public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool + public func getValueAsIo() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias Result_ChannelUpdateInfoDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ +public typealias OpenChannel = LightningDevKit.Bindings.OpenChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OpenChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdateInfo) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdateInfo? + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingSatoshis() -> Swift.UInt64 + public func setFundingSatoshis(val: Swift.UInt64) + public func getPushMsat() -> Swift.UInt64 + public func setPushMsat(val: Swift.UInt64) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getFeeratePerKw() -> Swift.UInt32 + public func setFeeratePerKw(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getChannelFlags() -> Swift.UInt8 + public func setChannelFlags(val: Swift.UInt8) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(chainHashArg: [Swift.UInt8], temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, pushMsatArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, feeratePerKwArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], channelFlagsArg: Swift.UInt8, shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.OpenChannel, b: LightningDevKit.Bindings.OpenChannel) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_SpendableOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ +public typealias PaymentError = LightningDevKit.Bindings.PaymentError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_SpendableOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.SpendableOutputDescriptor) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.SpendableOutputDescriptor? + public enum PaymentErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError + public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError + public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? @objc deinit } } -public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ +public typealias Result_RevokeAndACKDecodeErrorZ = LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RevokeAndACKDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RevokeAndACK) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RevokeAndACKDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? + public func getValue() -> LightningDevKit.Bindings.RevokeAndACK? @objc deinit } } -public typealias ChainParameters = LightningDevKit.Bindings.ChainParameters +public typealias Packet = LightningDevKit.Bindings.Packet extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Packet : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getNetwork() -> LightningDevKit.Bindings.Network - public func setNetwork(val: LightningDevKit.Bindings.Network) - public func getBestBlock() -> LightningDevKit.Bindings.BestBlock - public func setBestBlock(val: LightningDevKit.Bindings.BestBlock) - public init(networkArg: LightningDevKit.Bindings.Network, bestBlockArg: LightningDevKit.Bindings.BestBlock) + public func getVersion() -> Swift.UInt8 + public func setVersion(val: Swift.UInt8) + public func getPublicKey() -> [Swift.UInt8] + public func setPublicKey(val: [Swift.UInt8]) + public func getHopData() -> [Swift.UInt8] + public func setHopData(val: [Swift.UInt8]) + public func getHmac() -> [Swift.UInt8]? + public func setHmac(val: [Swift.UInt8]) + public init(versionArg: Swift.UInt8, publicKeyArg: [Swift.UInt8], hopDataArg: [Swift.UInt8], hmacArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.Packet, b: LightningDevKit.Bindings.Packet) -> Swift.Bool + public func write() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public init() - open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ - open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - @objc deinit - } + public class func getLDKSwiftBindingsSerializationHash() -> Swift.String + public class func getLDKSwiftBindingsVersion() -> Swift.String + public class func getLDKSwiftBindingsCommitHash() -> Swift.String } -public typealias AnchorDescriptor = LightningDevKit.Bindings.AnchorDescriptor +public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AnchorDescriptor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelDerivationParameters() -> LightningDevKit.Bindings.ChannelDerivationParameters - public func setChannelDerivationParameters(val: LightningDevKit.Bindings.ChannelDerivationParameters) - public func getOutpoint() -> LightningDevKit.Bindings.OutPoint - public func setOutpoint(val: LightningDevKit.Bindings.OutPoint) - public init(channelDerivationParametersArg: LightningDevKit.Bindings.ChannelDerivationParameters, outpointArg: LightningDevKit.Bindings.OutPoint) - public class func eq(a: LightningDevKit.Bindings.AnchorDescriptor, b: LightningDevKit.Bindings.AnchorDescriptor) -> Swift.Bool - public func previousUtxo() -> LightningDevKit.Bindings.TxOut - public func unsignedTxInput() -> LightningDevKit.Bindings.TxIn - public func witnessScript() -> [Swift.UInt8] - public func txInputWitness(signature: [Swift.UInt8]) -> [Swift.UInt8] - public func deriveChannelSigner(signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getBaseMsat() -> Swift.UInt32 + public func setBaseMsat(val: Swift.UInt32) + public func getProportionalMillionths() -> Swift.UInt32 + public func setProportionalMillionths(val: Swift.UInt32) + public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias OnionMessageProvider = LightningDevKit.Bindings.OnionMessageProvider +public typealias Listen = LightningDevKit.Bindings.Listen extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers open class Listen : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func nextOnionMessageForPeer(peerNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.OnionMessage + open func filteredBlockConnected(header: [Swift.UInt8]?, txdata: [(Swift.UInt, [Swift.UInt8])], height: Swift.UInt32) + open func blockConnected(block: [Swift.UInt8], height: Swift.UInt32) + open func blockDisconnected(header: [Swift.UInt8]?, height: Swift.UInt32) @objc deinit } } -public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ +public typealias Result_PrivateRouteCreationErrorZ = LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PrivateRouteCreationErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PrivateRoute) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PrivateRouteCreationErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PrivateRoute? @objc deinit } } -public typealias Result_RouteHintHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ +public typealias FilesystemStore = LightningDevKit.Bindings.FilesystemStore extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_RouteHintHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FilesystemStore : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.RouteHintHop) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.RouteHintHop? + public init(dataDir: Swift.String) + public func getDataDir() -> Swift.String + public func asKVStore() -> LightningDevKit.Bindings.KVStore + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ +public typealias Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ = LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.ChannelMonitor)? @objc deinit } } -public typealias ReadOnlyNetworkGraph = LightningDevKit.Bindings.ReadOnlyNetworkGraph +public typealias EventHandler = LightningDevKit.Bindings.EventHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReadOnlyNetworkGraph : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class EventHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func channel(shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.ChannelInfo? - public func listChannels() -> [Swift.UInt64] - public func node(nodeId: LightningDevKit.Bindings.NodeId) -> LightningDevKit.Bindings.NodeInfo? - public func listNodes() -> [LightningDevKit.Bindings.NodeId] - public func getAddresses(pubkey: [Swift.UInt8]) -> [LightningDevKit.Bindings.NetAddress]? - public func isOwned() -> Swift.Bool + public init() + open func handleEvent(event: LightningDevKit.Bindings.Event) @objc deinit } } -public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner +public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFundingKey() -> [Swift.UInt8]? - public func setFundingKey(val: [Swift.UInt8]) - public func getRevocationBaseKey() -> [Swift.UInt8]? - public func setRevocationBaseKey(val: [Swift.UInt8]) - public func getPaymentKey() -> [Swift.UInt8]? - public func setPaymentKey(val: [Swift.UInt8]) - public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? - public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) - public func getHtlcBaseKey() -> [Swift.UInt8]? - public func setHtlcBaseKey(val: [Swift.UInt8]) - public func getCommitmentSeed() -> [Swift.UInt8]? - public func setCommitmentSeed(val: [Swift.UInt8]) - public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) - public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func counterpartySelectedContestDelay() -> Swift.UInt16 - public func holderSelectedContestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner - public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner - public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias SignedRawBolt11Invoice = LightningDevKit.Bindings.SignedRawBolt11Invoice -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignedRawBolt11Invoice : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.SignedRawBolt11Invoice, b: LightningDevKit.Bindings.SignedRawBolt11Invoice) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func intoParts() -> (LightningDevKit.Bindings.RawBolt11Invoice, [Swift.UInt8], LightningDevKit.Bindings.Bolt11InvoiceSignature) - public func rawInvoice() -> LightningDevKit.Bindings.RawBolt11Invoice - public func signableHash() -> [Swift.UInt8]? - public func signature() -> LightningDevKit.Bindings.Bolt11InvoiceSignature - public func recoverPayeePubKey() -> LightningDevKit.Bindings.Result_PayeePubKeyErrorZ - public func checkSignature() -> Swift.Bool - public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SignedRawBolt11InvoiceBolt11ParseErrorZ - public func toStr() -> Swift.String + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice +public typealias Result_CVec_CVec_u8ZZNoneZ = LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_CVec_u8ZZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func description() -> LightningDevKit.Bindings.PrintableString - public func createdAt() -> Swift.UInt64 - public func relativeExpiry() -> Swift.UInt64 - public func isExpired() -> Swift.Bool - public func paymentHash() -> [Swift.UInt8] - public func amountMsats() -> Swift.UInt64 - public func features() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures - public func signingPubkey() -> [Swift.UInt8] - public func signableHash() -> [Swift.UInt8] - public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> Swift.Bool - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [[Swift.UInt8]]? @objc deinit } } -public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ +public typealias MultiThreadedScoreLockRead = LightningDevKit.Bindings.MultiThreadedScoreLockRead extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class MultiThreadedScoreLockRead : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OnionMessage? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Event = LightningDevKit.Bindings.Event +public typealias ChannelConfigUpdate = LightningDevKit.Bindings.ChannelConfigUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Event : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelConfigUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EventType { - case FundingGenerationReady - case PaymentClaimable - case PaymentClaimed - case PaymentSent - case PaymentFailed - case PaymentPathSuccessful - case PaymentPathFailed - case ProbeSuccessful - case ProbeFailed - case PendingHTLCsForwardable - case HTLCIntercepted - case SpendableOutputs - case PaymentForwarded - case ChannelPending - case ChannelReady - case ChannelClosed - case DiscardFunding - case OpenChannelRequest - case HTLCHandlingFailed - case BumpTransaction - public static func == (a: LightningDevKit.Bindings.Event.EventType, b: LightningDevKit.Bindings.Event.EventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Event.EventType - public class func initWithFundingGenerationReady(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, outputScript: [Swift.UInt8], userChannelId: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimable(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], onionFields: LightningDevKit.Bindings.RecipientOnionFields, amountMsat: Swift.UInt64, counterpartySkimmedFeeMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose, viaChannelId: [Swift.UInt8], viaUserChannelId: [Swift.UInt8]?, claimDeadline: Swift.UInt32?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentClaimed(receiverNodeId: [Swift.UInt8], paymentHash: [Swift.UInt8], amountMsat: Swift.UInt64, purpose: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Event - public class func initWithPaymentSent(paymentId: [Swift.UInt8]?, paymentPreimage: [Swift.UInt8], paymentHash: [Swift.UInt8], feePaidMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], reason: LightningDevKit.Bindings.PaymentFailureReason?) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8]?, path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithPaymentPathFailed(paymentId: [Swift.UInt8]?, paymentHash: [Swift.UInt8], paymentFailedPermanently: Swift.Bool, failure: LightningDevKit.Bindings.PathFailure, path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithProbeSuccessful(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path) -> LightningDevKit.Bindings.Event - public class func initWithProbeFailed(paymentId: [Swift.UInt8], paymentHash: [Swift.UInt8], path: LightningDevKit.Bindings.Path, shortChannelId: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithPendingHtlcsForwardable(timeForwardable: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithHtlcintercepted(interceptId: [Swift.UInt8], requestedNextHopScid: Swift.UInt64, paymentHash: [Swift.UInt8], inboundAmountMsat: Swift.UInt64, expectedOutboundAmountMsat: Swift.UInt64) -> LightningDevKit.Bindings.Event - public class func initWithSpendableOutputs(outputs: [LightningDevKit.Bindings.SpendableOutputDescriptor]) -> LightningDevKit.Bindings.Event - public class func initWithPaymentForwarded(prevChannelId: [Swift.UInt8], nextChannelId: [Swift.UInt8], feeEarnedMsat: Swift.UInt64?, claimFromOnchainTx: Swift.Bool, outboundAmountForwardedMsat: Swift.UInt64?) -> LightningDevKit.Bindings.Event - public class func initWithChannelPending(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], formerTemporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Event - public class func initWithChannelReady(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithChannelClosed(channelId: [Swift.UInt8], userChannelId: [Swift.UInt8], reason: LightningDevKit.Bindings.ClosureReason) -> LightningDevKit.Bindings.Event - public class func initWithDiscardFunding(channelId: [Swift.UInt8], transaction: [Swift.UInt8]) -> LightningDevKit.Bindings.Event - public class func initWithOpenChannelRequest(temporaryChannelId: [Swift.UInt8], counterpartyNodeId: [Swift.UInt8], fundingSatoshis: Swift.UInt64, pushMsat: Swift.UInt64, channelType: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Event - public class func initWithHtlchandlingFailed(prevChannelId: [Swift.UInt8], failedNextDestination: LightningDevKit.Bindings.HTLCDestination) -> LightningDevKit.Bindings.Event - public class func initWithBumpTransaction(a: LightningDevKit.Bindings.BumpTransactionEvent) -> LightningDevKit.Bindings.Event - public class func eq(a: LightningDevKit.Bindings.Event, b: LightningDevKit.Bindings.Event) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func getValueAsFundingGenerationReady() -> LightningDevKit.Bindings.Event.FundingGenerationReady? - public func getValueAsPaymentClaimable() -> LightningDevKit.Bindings.Event.PaymentClaimable? - public func getValueAsPaymentClaimed() -> LightningDevKit.Bindings.Event.PaymentClaimed? - public func getValueAsPaymentSent() -> LightningDevKit.Bindings.Event.PaymentSent? - public func getValueAsPaymentFailed() -> LightningDevKit.Bindings.Event.PaymentFailed? - public func getValueAsPaymentPathSuccessful() -> LightningDevKit.Bindings.Event.PaymentPathSuccessful? - public func getValueAsPaymentPathFailed() -> LightningDevKit.Bindings.Event.PaymentPathFailed? - public func getValueAsProbeSuccessful() -> LightningDevKit.Bindings.Event.ProbeSuccessful? - public func getValueAsProbeFailed() -> LightningDevKit.Bindings.Event.ProbeFailed? - public func getValueAsPendingHtlcsForwardable() -> LightningDevKit.Bindings.Event.PendingHTLCsForwardable? - public func getValueAsHtlcIntercepted() -> LightningDevKit.Bindings.Event.HTLCIntercepted? - public func getValueAsSpendableOutputs() -> LightningDevKit.Bindings.Event.SpendableOutputs? - public func getValueAsPaymentForwarded() -> LightningDevKit.Bindings.Event.PaymentForwarded? - public func getValueAsChannelPending() -> LightningDevKit.Bindings.Event.ChannelPending? - public func getValueAsChannelReady() -> LightningDevKit.Bindings.Event.ChannelReady? - public func getValueAsChannelClosed() -> LightningDevKit.Bindings.Event.ChannelClosed? - public func getValueAsDiscardFunding() -> LightningDevKit.Bindings.Event.DiscardFunding? - public func getValueAsOpenChannelRequest() -> LightningDevKit.Bindings.Event.OpenChannelRequest? - public func getValueAsHtlcHandlingFailed() -> LightningDevKit.Bindings.Event.HTLCHandlingFailed? - public func getValueAsBumpTransaction() -> LightningDevKit.Bindings.BumpTransactionEvent? + public func getForwardingFeeProportionalMillionths() -> Swift.UInt32? + public func setForwardingFeeProportionalMillionths(val: Swift.UInt32?) + public func getForwardingFeeBaseMsat() -> Swift.UInt32? + public func setForwardingFeeBaseMsat(val: Swift.UInt32?) + public func getCltvExpiryDelta() -> Swift.UInt16? + public func setCltvExpiryDelta(val: Swift.UInt16?) + public func getMaxDustHtlcExposureMsat() -> LightningDevKit.Bindings.MaxDustHTLCExposure? + public func setMaxDustHtlcExposureMsat(val: LightningDevKit.Bindings.MaxDustHTLCExposure?) + public func getForceCloseAvoidanceMaxFeeSatoshis() -> Swift.UInt64? + public func setForceCloseAvoidanceMaxFeeSatoshis(val: Swift.UInt64?) + public init(forwardingFeeProportionalMillionthsArg: Swift.UInt32?, forwardingFeeBaseMsatArg: Swift.UInt32?, cltvExpiryDeltaArg: Swift.UInt16?, maxDustHtlcExposureMsatArg: LightningDevKit.Bindings.MaxDustHTLCExposure?, forceCloseAvoidanceMaxFeeSatoshisArg: Swift.UInt64?) + public class func initWithDefault() -> LightningDevKit.Bindings.ChannelConfigUpdate + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_GossipTimestampFilterDecodeErrorZ = LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_GossipTimestampFilterDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.GossipTimestampFilter) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.GossipTimestampFilter? + @objc deinit + } +} +public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.OutPoint? + @objc deinit + } +} +public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + @objc deinit + } +} +public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? + @objc deinit + } +} +public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) + public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.SendError? + @objc deinit + } +} +public typealias TxAbort = LightningDevKit.Bindings.TxAbort +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAbort : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getData() -> [Swift.UInt8] + public func setData(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8], dataArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxAbort, b: LightningDevKit.Bindings.TxAbort) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class FundingGenerationReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelValueSatoshis() -> Swift.UInt64 - public func getOutputScript() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getOnionFields() -> LightningDevKit.Bindings.RecipientOnionFields - public func getAmountMsat() -> Swift.UInt64 - public func getCounterpartySkimmedFeeMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - public func getViaChannelId() -> [Swift.UInt8] - public func getViaUserChannelId() -> [Swift.UInt8]? - public func getClaimDeadline() -> Swift.UInt32? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentClaimed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getReceiverNodeId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getAmountMsat() -> Swift.UInt64 - public func getPurpose() -> LightningDevKit.Bindings.PaymentPurpose - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentSent : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentPreimage() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getFeePaidMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.PaymentFailureReason? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8]? - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentPathFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8]? - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentFailedPermanently() -> Swift.Bool - public func getFailure() -> LightningDevKit.Bindings.PathFailure - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeSuccessful : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - @objc deinit - } - @_hasMissingDesignatedInitializers public class ProbeFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPaymentId() -> [Swift.UInt8] - public func getPaymentHash() -> [Swift.UInt8] - public func getPath() -> LightningDevKit.Bindings.Path - public func getShortChannelId() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class PendingHTLCsForwardable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTimeForwardable() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCIntercepted : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getInterceptId() -> [Swift.UInt8] - public func getRequestedNextHopScid() -> Swift.UInt64 - public func getPaymentHash() -> [Swift.UInt8] - public func getInboundAmountMsat() -> Swift.UInt64 - public func getExpectedOutboundAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class SpendableOutputs : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getOutputs() -> [LightningDevKit.Bindings.SpendableOutputDescriptor] - @objc deinit - } - @_hasMissingDesignatedInitializers public class PaymentForwarded : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getNextChannelId() -> [Swift.UInt8] - public func getFeeEarnedMsat() -> Swift.UInt64? - public func getClaimFromOnchainTx() -> Swift.Bool - public func getOutboundAmountForwardedMsat() -> Swift.UInt64? - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelPending : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getFormerTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelClosed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getUserChannelId() -> [Swift.UInt8] - public func getReason() -> LightningDevKit.Bindings.ClosureReason - @objc deinit - } - @_hasMissingDesignatedInitializers public class DiscardFunding : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8] - public func getTransaction() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class OpenChannelRequest : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8] - public func getCounterpartyNodeId() -> [Swift.UInt8] - public func getFundingSatoshis() -> Swift.UInt64 - public func getPushMsat() -> Swift.UInt64 - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures - @objc deinit - } - @_hasMissingDesignatedInitializers public class HTLCHandlingFailed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getPrevChannelId() -> [Swift.UInt8] - public func getFailedNextDestination() -> LightningDevKit.Bindings.HTLCDestination - @objc deinit - } } } public typealias InvoiceRequestFeatures = LightningDevKit.Bindings.InvoiceRequestFeatures @@ -6226,880 +6960,1033 @@ extension LightningDevKit.Bindings { @_hasMissingDesignatedInitializers public class InvoiceRequestFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func isOwned() -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.InvoiceRequestFeatures, b: LightningDevKit.Bindings.InvoiceRequestFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + @objc deinit + } +} +public typealias RawBolt11Invoice = LightningDevKit.Bindings.RawBolt11Invoice +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class RawBolt11Invoice : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getData() -> LightningDevKit.Bindings.RawDataPart + public func setData(val: LightningDevKit.Bindings.RawDataPart) + public class func eq(a: LightningDevKit.Bindings.RawBolt11Invoice, b: LightningDevKit.Bindings.RawBolt11Invoice) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func signableHash() -> [Swift.UInt8] + public func paymentHash() -> LightningDevKit.Bindings.Sha256? + public func description() -> LightningDevKit.Bindings.Description? + public func payeePubKey() -> LightningDevKit.Bindings.PayeePubKey? + public func descriptionHash() -> LightningDevKit.Bindings.Sha256? + public func expiryTime() -> LightningDevKit.Bindings.ExpiryTime? + public func minFinalCltvExpiryDelta() -> LightningDevKit.Bindings.MinFinalCltvExpiryDelta? + public func paymentSecret() -> [Swift.UInt8]? + public func paymentMetadata() -> [Swift.UInt8]? + public func features() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? + public func privateRoutes() -> [LightningDevKit.Bindings.PrivateRoute] + public func amountPicoBtc() -> Swift.UInt64? + public func currency() -> LightningDevKit.Bindings.Currency + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias ChannelUpdateInfo = LightningDevKit.Bindings.ChannelUpdateInfo +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ChannelUpdateInfo : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getLastUpdate() -> Swift.UInt32 + public func setLastUpdate(val: Swift.UInt32) + public func getEnabled() -> Swift.Bool + public func setEnabled(val: Swift.Bool) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFees() -> LightningDevKit.Bindings.RoutingFees + public func setFees(val: LightningDevKit.Bindings.RoutingFees) + public func getLastUpdateMessage() -> LightningDevKit.Bindings.ChannelUpdate? + public func setLastUpdateMessage(val: LightningDevKit.Bindings.ChannelUpdate) + public init(lastUpdateArg: Swift.UInt32, enabledArg: Swift.Bool, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, lastUpdateMessageArg: LightningDevKit.Bindings.ChannelUpdate) + public class func eq(a: LightningDevKit.Bindings.ChannelUpdateInfo, b: LightningDevKit.Bindings.ChannelUpdateInfo) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateInfoDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ + public func setDataLossProtectOptional() + public func setDataLossProtectRequired() + public func supportsDataLossProtect() -> Swift.Bool + public func requiresDataLossProtect() -> Swift.Bool + public func setUpfrontShutdownScriptOptional() + public func setUpfrontShutdownScriptRequired() + public func supportsUpfrontShutdownScript() -> Swift.Bool + public func requiresUpfrontShutdownScript() -> Swift.Bool + public func setGossipQueriesOptional() + public func setGossipQueriesRequired() + public func supportsGossipQueries() -> Swift.Bool + public func requiresGossipQueries() -> Swift.Bool + public func setVariableLengthOnionOptional() + public func setVariableLengthOnionRequired() + public func supportsVariableLengthOnion() -> Swift.Bool + public func requiresVariableLengthOnion() -> Swift.Bool + public func setStaticRemoteKeyOptional() + public func setStaticRemoteKeyRequired() + public func supportsStaticRemoteKey() -> Swift.Bool + public func requiresStaticRemoteKey() -> Swift.Bool + public func setPaymentSecretOptional() + public func setPaymentSecretRequired() + public func supportsPaymentSecret() -> Swift.Bool + public func requiresPaymentSecret() -> Swift.Bool + public func setBasicMppOptional() + public func setBasicMppRequired() + public func supportsBasicMpp() -> Swift.Bool + public func requiresBasicMpp() -> Swift.Bool + public func setWumboOptional() + public func setWumboRequired() + public func supportsWumbo() -> Swift.Bool + public func requiresWumbo() -> Swift.Bool + public func setAnchorsNonzeroFeeHtlcTxOptional() + public func setAnchorsNonzeroFeeHtlcTxRequired() + public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool + public func setAnchorsZeroFeeHtlcTxOptional() + public func setAnchorsZeroFeeHtlcTxRequired() + public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool + public func setShutdownAnySegwitOptional() + public func setShutdownAnySegwitRequired() + public func supportsShutdownAnysegwit() -> Swift.Bool + public func requiresShutdownAnysegwit() -> Swift.Bool + public func setTaprootOptional() + public func setTaprootRequired() + public func supportsTaproot() -> Swift.Bool + public func requiresTaproot() -> Swift.Bool + public func setOnionMessagesOptional() + public func setOnionMessagesRequired() + public func supportsOnionMessages() -> Swift.Bool + public func requiresOnionMessages() -> Swift.Bool + public func setChannelTypeOptional() + public func setChannelTypeRequired() + public func supportsChannelType() -> Swift.Bool + public func requiresChannelType() -> Swift.Bool + public func setScidPrivacyOptional() + public func setScidPrivacyRequired() + public func supportsScidPrivacy() -> Swift.Bool + public func requiresScidPrivacy() -> Swift.Bool + public func setZeroConfOptional() + public func setZeroConfRequired() + public func supportsZeroConf() -> Swift.Bool + public func requiresZeroConf() -> Swift.Bool + public func setKeysendOptional() + public func setKeysendRequired() + public func supportsKeysend() -> Swift.Bool + public func requiresKeysend() -> Swift.Bool + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_RouteParametersDecodeErrorZ = LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RouteParametersDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteParameters) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteParameters? @objc deinit } } -public typealias Result_OfferBolt12ParseErrorZ = LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ +public typealias Result_RouteHopDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OfferBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHopDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Offer) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_OfferBolt12ParseErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RouteHop) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? - public func getValue() -> LightningDevKit.Bindings.Offer? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHop? @objc deinit } } -public typealias ErrorMessage = LightningDevKit.Bindings.ErrorMessage +public typealias TxSignatures = LightningDevKit.Bindings.TxSignatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorMessage : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxSignatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getData() -> Swift.String - public func setData(val: Swift.String) - public init(channelIdArg: [Swift.UInt8], dataArg: Swift.String) - public class func eq(a: LightningDevKit.Bindings.ErrorMessage, b: LightningDevKit.Bindings.ErrorMessage) -> Swift.Bool + public func getTxHash() -> [Swift.UInt8]? + public func setTxHash(val: [Swift.UInt8]) + public func getWitnesses() -> [[Swift.UInt8]] + public func setWitnesses(val: [[Swift.UInt8]]) + public init(channelIdArg: [Swift.UInt8], txHashArg: [Swift.UInt8], witnessesArg: [[Swift.UInt8]]) + public class func eq(a: LightningDevKit.Bindings.TxSignatures, b: LightningDevKit.Bindings.TxSignatures) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxSignaturesDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ +public typealias OnionMessagePath = LightningDevKit.Bindings.OnionMessagePath extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessagePath : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func getIntermediateNodes() -> [[Swift.UInt8]] + public func setIntermediateNodes(val: [[Swift.UInt8]]) + public func getDestination() -> LightningDevKit.Bindings.Destination + public func setDestination(val: LightningDevKit.Bindings.Destination) + public init(intermediateNodesArg: [[Swift.UInt8]], destinationArg: LightningDevKit.Bindings.Destination) + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_CVec_UtxoZNoneZ = LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_CVec_UtxoZNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: [LightningDevKit.Bindings.Utxo]) -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CVec_UtxoZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> [LightningDevKit.Bindings.Utxo]? + @objc deinit + } +} +@_hasMissingDesignatedInitializers public class LDKExampleClass { + public class func printSomething() + public func printInstance() + @objc deinit +} +public typealias Result_NoneBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NoneBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_NoneBolt11SemanticErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? + @objc deinit + } +} +public typealias Result_ReplyChannelRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_ReplyChannelRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ReplyChannelRange) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeInfo? + public func getValue() -> LightningDevKit.Bindings.ReplyChannelRange? @objc deinit } } -public typealias ErrorAction = LightningDevKit.Bindings.ErrorAction +public typealias ClosingSigned = LightningDevKit.Bindings.ClosingSigned extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ErrorAction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingSigned : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ErrorActionType { - case DisconnectPeer - case DisconnectPeerWithWarning - case IgnoreError - case IgnoreAndLog - case IgnoreDuplicateGossip - case SendErrorMessage - case SendWarningMessage - public static func == (a: LightningDevKit.Bindings.ErrorAction.ErrorActionType, b: LightningDevKit.Bindings.ErrorAction.ErrorActionType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ErrorAction.ErrorActionType - public class func initWithDisconnectPeer(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithDisconnectPeerWithWarning(msg: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreError() -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreAndLog(a: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public class func initWithIgnoreDuplicateGossip() -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendErrorMessage(msg: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.ErrorAction - public class func initWithSendWarningMessage(msg: LightningDevKit.Bindings.WarningMessage, logLevel: LightningDevKit.Bindings.Level) -> LightningDevKit.Bindings.ErrorAction - public func getValueAsDisconnectPeer() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeer? - public func getValueAsDisconnectPeerWithWarning() -> LightningDevKit.Bindings.ErrorAction.DisconnectPeerWithWarning? - public func getValueAsIgnoreAndLog() -> LightningDevKit.Bindings.Level? - public func getValueAsSendErrorMessage() -> LightningDevKit.Bindings.ErrorAction.SendErrorMessage? - public func getValueAsSendWarningMessage() -> LightningDevKit.Bindings.ErrorAction.SendWarningMessage? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFeeSatoshis() -> Swift.UInt64 + public func setFeeSatoshis(val: Swift.UInt64) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public func getFeeRange() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func setFeeRange(val: LightningDevKit.Bindings.ClosingSignedFeeRange) + public init(channelIdArg: [Swift.UInt8], feeSatoshisArg: Swift.UInt64, signatureArg: [Swift.UInt8], feeRangeArg: LightningDevKit.Bindings.ClosingSignedFeeRange) + public class func eq(a: LightningDevKit.Bindings.ClosingSigned, b: LightningDevKit.Bindings.ClosingSigned) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class DisconnectPeer : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class DisconnectPeerWithWarning : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendErrorMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.ErrorMessage - @objc deinit - } - @_hasMissingDesignatedInitializers public class SendWarningMessage : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getMsg() -> LightningDevKit.Bindings.WarningMessage - public func getLogLevel() -> LightningDevKit.Bindings.Level - @objc deinit - } } } -public typealias FixedPenaltyScorer = LightningDevKit.Bindings.FixedPenaltyScorer +public typealias NodeAlias = LightningDevKit.Bindings.NodeAlias extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FixedPenaltyScorer : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class NodeAlias : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithWithPenalty(penaltyMsat: Swift.UInt64) -> LightningDevKit.Bindings.FixedPenaltyScorer - public func asScore() -> LightningDevKit.Bindings.Score + public func getA() -> [Swift.UInt8]? + public func setA(val: [Swift.UInt8]) + public init(aArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.NodeAlias, b: LightningDevKit.Bindings.NodeAlias) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt64) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PaymentPreimageAPIErrorZ = LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ +public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentPreimageAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_PaymentPreimageAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? - public func getValue() -> [Swift.UInt8]? + public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters + public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) + public func getFinalValueMsat() -> Swift.UInt64 + public func setFinalValueMsat(val: Swift.UInt64) + public func getMaxTotalRoutingFeeMsat() -> Swift.UInt64? + public func setMaxTotalRoutingFeeMsat(val: Swift.UInt64?) + public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64, maxTotalRoutingFeeMsatArg: Swift.UInt64?) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public class func initWithPaymentParamsAndValue(paymentParams: LightningDevKit.Bindings.PaymentParameters, finalValueMsat: Swift.UInt64) -> LightningDevKit.Bindings.RouteParameters + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HolderCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ +public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HolderCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HolderCommitmentTransaction? + public enum SignOrCreationErrorType { + case SignError + case CreationError + public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType + public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError + public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError + public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? @objc deinit } } -public typealias Result_FundingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ +public typealias UtxoLookup = LightningDevKit.Bindings.UtxoLookup extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FundingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class UtxoLookup : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FundingSigned) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FundingSignedDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FundingSigned? + public init() + open func getUtxo(genesisHash: [Swift.UInt8]?, shortChannelId: Swift.UInt64) -> LightningDevKit.Bindings.UtxoResult @objc deinit } } -public typealias PhantomRouteHints = LightningDevKit.Bindings.PhantomRouteHints +public enum NetworkGraphArgument { + case serialized([Swift.UInt8]) + case instance(LightningDevKit.NetworkGraph) +} +public struct ChannelManagerConstructionParameters { + public var config: LightningDevKit.UserConfig + public var entropySource: LightningDevKit.EntropySource + public var nodeSigner: LightningDevKit.NodeSigner + public var signerProvider: LightningDevKit.SignerProvider + public var feeEstimator: LightningDevKit.FeeEstimator + public var chainMonitor: LightningDevKit.ChainMonitor + public var txBroadcaster: LightningDevKit.BroadcasterInterface + public var enableP2PGossip: Swift.Bool + public var scorer: LightningDevKit.MultiThreadedLockableScore? + public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? + public var payerRetries: LightningDevKit.Bindings.Retry + public var logger: LightningDevKit.Logger + public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt32(3))) +} +@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { + final public let channelManager: LightningDevKit.ChannelManager + final public let channel_manager_latest_block_hash: [Swift.UInt8]? + public var netGraph: LightningDevKit.NetworkGraph? { + get + } + final public let peerManager: LightningDevKit.PeerManager + public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { + get + } + public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws + public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) + public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) + public func interrupt() + public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler + @objc deinit +} +public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { + func handleEvent(event: LightningDevKit.Event) +} +@_hasMissingDesignatedInitializers public class TCPPeerHandler { + public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool + public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool + @objc deinit +} +public typealias KeysManager = LightningDevKit.Bindings.KeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomRouteHints : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class KeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannels() -> [LightningDevKit.Bindings.ChannelDetails] - public func setChannels(val: [LightningDevKit.Bindings.ChannelDetails]) - public func getPhantomScid() -> Swift.UInt64 - public func setPhantomScid(val: Swift.UInt64) - public func getRealNodePubkey() -> [Swift.UInt8] - public func setRealNodePubkey(val: [Swift.UInt8]) - public init(channelsArg: [LightningDevKit.Bindings.ChannelDetails], phantomScidArg: Swift.UInt64, realNodePubkeyArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PhantomRouteHintsDecodeErrorZ + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32) + public func getNodeSecretKey() -> [Swift.UInt8] + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func signSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], psbt: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZNoneZ + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ClosingSignedFeeRangeDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ +public typealias Result_ShutdownScriptNoneZ = LightningDevKit.Bindings.Result_ShutdownScriptNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ClosingSignedFeeRangeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ShutdownScriptNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosingSignedFeeRange) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_ShutdownScriptNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosingSignedFeeRange? + public func getValue() -> LightningDevKit.Bindings.ShutdownScript? @objc deinit } } -public typealias UserConfig = LightningDevKit.Bindings.UserConfig +public typealias Filter = LightningDevKit.Bindings.Filter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UserConfig : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Filter : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelHandshakeConfig() -> LightningDevKit.Bindings.ChannelHandshakeConfig - public func setChannelHandshakeConfig(val: LightningDevKit.Bindings.ChannelHandshakeConfig) - public func getChannelHandshakeLimits() -> LightningDevKit.Bindings.ChannelHandshakeLimits - public func setChannelHandshakeLimits(val: LightningDevKit.Bindings.ChannelHandshakeLimits) - public func getChannelConfig() -> LightningDevKit.Bindings.ChannelConfig - public func setChannelConfig(val: LightningDevKit.Bindings.ChannelConfig) - public func getAcceptForwardsToPrivChannels() -> Swift.Bool - public func setAcceptForwardsToPrivChannels(val: Swift.Bool) - public func getAcceptInboundChannels() -> Swift.Bool - public func setAcceptInboundChannels(val: Swift.Bool) - public func getManuallyAcceptInboundChannels() -> Swift.Bool - public func setManuallyAcceptInboundChannels(val: Swift.Bool) - public func getAcceptInterceptHtlcs() -> Swift.Bool - public func setAcceptInterceptHtlcs(val: Swift.Bool) - public func getAcceptMppKeysend() -> Swift.Bool - public func setAcceptMppKeysend(val: Swift.Bool) - public init(channelHandshakeConfigArg: LightningDevKit.Bindings.ChannelHandshakeConfig, channelHandshakeLimitsArg: LightningDevKit.Bindings.ChannelHandshakeLimits, channelConfigArg: LightningDevKit.Bindings.ChannelConfig, acceptForwardsToPrivChannelsArg: Swift.Bool, acceptInboundChannelsArg: Swift.Bool, manuallyAcceptInboundChannelsArg: Swift.Bool, acceptInterceptHtlcsArg: Swift.Bool, acceptMppKeysendArg: Swift.Bool) - public class func initWithDefault() -> LightningDevKit.Bindings.UserConfig - public func isOwned() -> Swift.Bool + public init() + open func registerTx(txid: [Swift.UInt8]?, scriptPubkey: [Swift.UInt8]) + open func registerOutput(output: LightningDevKit.Bindings.WatchedOutput) @objc deinit } } -public typealias Result_DescriptionCreationErrorZ = LightningDevKit.Bindings.Result_DescriptionCreationErrorZ +public typealias Result_ReplyShortChannelIdsEndDecodeErrorZ = LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_DescriptionCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ReplyShortChannelIdsEndDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Description) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_DescriptionCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ReplyShortChannelIdsEnd) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ReplyShortChannelIdsEndDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.Description? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ReplyShortChannelIdsEnd? @objc deinit } } -public typealias AcceptChannelV2 = LightningDevKit.Bindings.AcceptChannelV2 +public typealias Sha256 = LightningDevKit.Bindings.Sha256 extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannelV2 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Sha256 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingSatoshis() -> Swift.UInt64 - public func setFundingSatoshis(val: Swift.UInt64) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentBasepoint() -> [Swift.UInt8] - public func setPaymentBasepoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getSecondPerCommitmentPoint() -> [Swift.UInt8] - public func setSecondPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getRequireConfirmedInputs() -> LightningDevKit.Bindings.Option_NoneZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `val`.") - public func setRequireConfirmedInputs(val: LightningDevKit.Bindings.Option_NoneZ) - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `requireConfirmedInputsArg`.") - public init(temporaryChannelIdArg: [Swift.UInt8], fundingSatoshisArg: Swift.UInt64, dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentBasepointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], secondPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, requireConfirmedInputsArg: LightningDevKit.Bindings.Option_NoneZ) - public class func eq(a: LightningDevKit.Bindings.AcceptChannelV2, b: LightningDevKit.Bindings.AcceptChannelV2) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelV2DecodeErrorZ + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.Sha256, b: LightningDevKit.Bindings.Sha256) -> Swift.Bool + public class func initWithBytes(bytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Sha256 public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ErrorMessageDecodeErrorZ = LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ +public typealias BindingsError = LightningDevKit.Bindings.BindingsError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ErrorMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BindingsError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ErrorMessage) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ErrorMessageDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ErrorMessage? + public func getDummy() -> Swift.UInt8 @objc deinit } } -public typealias RetryableSendFailure = LightningDevKit.Bindings.RetryableSendFailure -extension LightningDevKit.Bindings { - public enum RetryableSendFailure { - case PaymentExpired - case RouteNotFound - case DuplicatePayment - public static func == (a: LightningDevKit.Bindings.RetryableSendFailure, b: LightningDevKit.Bindings.RetryableSendFailure) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange +public typealias Result_ChannelDetailsDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelDetailsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public func getSyncComplete() -> Swift.Bool - public func setSyncComplete(val: Swift.Bool) - public func getShortChannelIds() -> [Swift.UInt64] - public func setShortChannelIds(val: [Swift.UInt64]) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) - public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ - public func write() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelDetails) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelDetails? @objc deinit } } -public typealias RecentPaymentDetails = LightningDevKit.Bindings.RecentPaymentDetails +public typealias APIError = LightningDevKit.Bindings.APIError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecentPaymentDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RecentPaymentDetailsType { - case Pending - case Fulfilled - case Abandoned - public static func == (a: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType, b: LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType) -> Swift.Bool + public enum APIErrorType { + case APIMisuseError + case FeeRateTooHigh + case InvalidRoute + case ChannelUnavailable + case MonitorUpdateInProgress + case IncompatibleShutdownScript + public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType - public class func initWithPending(paymentHash: [Swift.UInt8], totalMsat: Swift.UInt64) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithFulfilled(paymentHash: [Swift.UInt8]?) -> LightningDevKit.Bindings.RecentPaymentDetails - public class func initWithAbandoned(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.RecentPaymentDetails - public func getValueAsPending() -> LightningDevKit.Bindings.RecentPaymentDetails.Pending? - public func getValueAsFulfilled() -> LightningDevKit.Bindings.RecentPaymentDetails.Fulfilled? - public func getValueAsAbandoned() -> LightningDevKit.Bindings.RecentPaymentDetails.Abandoned? + public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType + public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError + public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError + public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError + public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError + public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ + public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? + public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? + public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? + public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? + public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? @objc deinit - @_hasMissingDesignatedInitializers public class Pending : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] - public func getTotalMsat() -> Swift.UInt64 + public func getErr() -> Swift.String @objc deinit } - @_hasMissingDesignatedInitializers public class Fulfilled : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8]? + public func getErr() -> Swift.String + public func getFeerate() -> Swift.UInt32 @objc deinit } - @_hasMissingDesignatedInitializers public class Abandoned : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentHash() -> [Swift.UInt8] + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getErr() -> Swift.String + @objc deinit + } + @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getScript() -> LightningDevKit.Bindings.ShutdownScript @objc deinit } } } -public typealias Record = LightningDevKit.Bindings.Record +public typealias TxComplete = LightningDevKit.Bindings.TxComplete extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Record : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxComplete : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getLevel() -> LightningDevKit.Bindings.Level - public func setLevel(val: LightningDevKit.Bindings.Level) - public func getArgs() -> Swift.String - public func setArgs(val: Swift.String) - public func getModulePath() -> Swift.String - public func setModulePath(val: Swift.String) - public func getFile() -> Swift.String - public func setFile(val: Swift.String) - public func getLine() -> Swift.UInt32 - public func setLine(val: Swift.UInt32) + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public init(channelIdArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.TxComplete, b: LightningDevKit.Bindings.TxComplete) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCompleteDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ShutdownScriptDecodeErrorZ = LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ +public typealias ProbabilisticScoringFeeParameters = LightningDevKit.Bindings.ProbabilisticScoringFeeParameters extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ShutdownScriptDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScoringFeeParameters : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ShutdownScriptDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ShutdownScript? + public func getBasePenaltyMsat() -> Swift.UInt64 + public func setBasePenaltyMsat(val: Swift.UInt64) + public func getBasePenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setBasePenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyMultiplierMsat(val: Swift.UInt64) + public func getHistoricalLiquidityPenaltyAmountMultiplierMsat() -> Swift.UInt64 + public func setHistoricalLiquidityPenaltyAmountMultiplierMsat(val: Swift.UInt64) + public func getAntiProbingPenaltyMsat() -> Swift.UInt64 + public func setAntiProbingPenaltyMsat(val: Swift.UInt64) + public func getConsideredImpossiblePenaltyMsat() -> Swift.UInt64 + public func setConsideredImpossiblePenaltyMsat(val: Swift.UInt64) + public func getLinearSuccessProbability() -> Swift.Bool + public func setLinearSuccessProbability(val: Swift.Bool) + public class func initWithDefault() -> LightningDevKit.Bindings.ProbabilisticScoringFeeParameters + public func addBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func addBannedFromList(nodeIds: [LightningDevKit.Bindings.NodeId]) + public func removeBanned(nodeId: LightningDevKit.Bindings.NodeId) + public func setManualPenalty(nodeId: LightningDevKit.Bindings.NodeId, penalty: Swift.UInt64) + public func removeManualPenalty(nodeId: LightningDevKit.Bindings.NodeId) + public func clearManualPenalties() + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MessageHandler = LightningDevKit.Bindings.MessageHandler +public typealias Result_C2Tuple_CVec_u8ZusizeZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MessageHandler : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_CVec_u8ZusizeZNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChanHandler() -> LightningDevKit.Bindings.ChannelMessageHandler? - public func setChanHandler(val: LightningDevKit.Bindings.ChannelMessageHandler) - public func getRouteHandler() -> LightningDevKit.Bindings.RoutingMessageHandler? - public func setRouteHandler(val: LightningDevKit.Bindings.RoutingMessageHandler) - public func getOnionMessageHandler() -> LightningDevKit.Bindings.OnionMessageHandler? - public func setOnionMessageHandler(val: LightningDevKit.Bindings.OnionMessageHandler) - public func getCustomMessageHandler() -> LightningDevKit.Bindings.CustomMessageHandler? - public func setCustomMessageHandler(val: LightningDevKit.Bindings.CustomMessageHandler) - public init(chanHandlerArg: LightningDevKit.Bindings.ChannelMessageHandler, routeHandlerArg: LightningDevKit.Bindings.RoutingMessageHandler, onionMessageHandlerArg: LightningDevKit.Bindings.OnionMessageHandler, customMessageHandlerArg: LightningDevKit.Bindings.CustomMessageHandler) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: ([Swift.UInt8], Swift.UInt)) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> ([Swift.UInt8], Swift.UInt)? @objc deinit } } -public typealias RecipientOnionFields = LightningDevKit.Bindings.RecipientOnionFields +public typealias ChannelPublicKeys = LightningDevKit.Bindings.ChannelPublicKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RecipientOnionFields : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelPublicKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentSecret() -> [Swift.UInt8]? - public func setPaymentSecret(val: [Swift.UInt8]?) - public func getPaymentMetadata() -> [Swift.UInt8]? - public func setPaymentMetadata(val: [Swift.UInt8]?) - public init(paymentSecretArg: [Swift.UInt8]?, paymentMetadataArg: [Swift.UInt8]?) - public class func eq(a: LightningDevKit.Bindings.RecipientOnionFields, b: LightningDevKit.Bindings.RecipientOnionFields) -> Swift.Bool + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public init(fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ChannelPublicKeys, b: LightningDevKit.Bindings.ChannelPublicKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ - public class func initWithSecretOnly(paymentSecret: [Swift.UInt8]) -> LightningDevKit.Bindings.RecipientOnionFields - public class func initWithSpontaneousEmpty() -> LightningDevKit.Bindings.RecipientOnionFields + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EffectiveCapacity = LightningDevKit.Bindings.EffectiveCapacity +public typealias ForwardTlvs = LightningDevKit.Bindings.ForwardTlvs extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class EffectiveCapacity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ForwardTlvs : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum EffectiveCapacityType { - case ExactLiquidity - case AdvertisedMaxHTLC - case Total - case Infinite - case HintMaxHTLC - case Unknown - public static func == (a: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType, b: LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType - public class func initWithExactLiquidity(liquidityMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithAdvertisedMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithTotal(capacityMsat: Swift.UInt64, htlcMaximumMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithInfinite() -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithHintMaxHtlc(amountMsat: Swift.UInt64) -> LightningDevKit.Bindings.EffectiveCapacity - public class func initWithUnknown() -> LightningDevKit.Bindings.EffectiveCapacity - public func asMsat() -> Swift.UInt64 - public func getValueAsExactLiquidity() -> LightningDevKit.Bindings.EffectiveCapacity.ExactLiquidity? - public func getValueAsAdvertisedMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.AdvertisedMaxHTLC? - public func getValueAsTotal() -> LightningDevKit.Bindings.EffectiveCapacity.Total? - public func getValueAsHintMaxHtlc() -> LightningDevKit.Bindings.EffectiveCapacity.HintMaxHTLC? + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getPaymentRelay() -> LightningDevKit.Bindings.PaymentRelay + public func setPaymentRelay(val: LightningDevKit.Bindings.PaymentRelay) + public func getPaymentConstraints() -> LightningDevKit.Bindings.PaymentConstraints + public func setPaymentConstraints(val: LightningDevKit.Bindings.PaymentConstraints) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(shortChannelIdArg: Swift.UInt64, paymentRelayArg: LightningDevKit.Bindings.PaymentRelay, paymentConstraintsArg: LightningDevKit.Bindings.PaymentConstraints, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit - @_hasMissingDesignatedInitializers public class ExactLiquidity : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getLiquidityMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class AdvertisedMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class Total : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getCapacityMsat() -> Swift.UInt64 - public func getHtlcMaximumMsat() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class HintMaxHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountMsat() -> Swift.UInt64 - @objc deinit - } } } -public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager +public typealias OutPoint = LightningDevKit.Bindings.OutPoint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OutPoint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func asEntropySource() -> LightningDevKit.Bindings.EntropySource - public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner - public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider - public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) - public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner - public func getNodeSecretKey() -> [Swift.UInt8] - public func getPhantomNodeSecretKey() -> [Swift.UInt8] + public func getTxid() -> [Swift.UInt8]? + public func setTxid(val: [Swift.UInt8]) + public func getIndex() -> Swift.UInt16 + public func setIndex(val: Swift.UInt16) + public init(txidArg: [Swift.UInt8], indexArg: Swift.UInt16) + public class func eq(a: LightningDevKit.Bindings.OutPoint, b: LightningDevKit.Bindings.OutPoint) -> Swift.Bool + public func hash() -> Swift.UInt64 + public func toChannelId() -> [Swift.UInt8] + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ProbabilisticScorerDecodeErrorZ = LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ +public typealias Result_TxAbortDecodeErrorZ = LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ProbabilisticScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxAbortDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.ProbabilisticScorer) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.TxAbort) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAbortDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ProbabilisticScorer? + public func getValue() -> LightningDevKit.Bindings.TxAbort? @objc deinit } } -public typealias Result_BlindedPathDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ +public typealias Result_CommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedPathDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedPathDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.CommitmentTransaction) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedPath? + public func getValue() -> LightningDevKit.Bindings.CommitmentTransaction? @objc deinit } } -public typealias Result_UpdateAddHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ +public typealias ChannelMonitorUpdate = LightningDevKit.Bindings.ChannelMonitorUpdate extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UpdateAddHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelMonitorUpdate : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UpdateAddHTLC) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UpdateAddHTLC? + public func getUpdateId() -> Swift.UInt64 + public func setUpdateId(val: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ChannelMonitorUpdate, b: LightningDevKit.Bindings.ChannelMonitorUpdate) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_ClosureReasonZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ +public typealias Persister = LightningDevKit.Bindings.Persister extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_ClosureReasonZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class Persister : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ClosureReason?) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_ClosureReasonZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ClosureReason? + public init() + open func persistManager(channelManager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistGraph(networkGraph: LightningDevKit.Bindings.NetworkGraph) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + open func persistScorer(scorer: LightningDevKit.Bindings.WriteableScore) -> LightningDevKit.Bindings.Result_NoneIOErrorZ @objc deinit } } -public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +public typealias ReplyChannelRange = LightningDevKit.Bindings.ReplyChannelRange extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ReplyChannelRange : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getMinFeeSatoshis() -> Swift.UInt64 - public func setMinFeeSatoshis(val: Swift.UInt64) - public func getMaxFeeSatoshis() -> Swift.UInt64 - public func setMaxFeeSatoshis(val: Swift.UInt64) - public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstBlocknum() -> Swift.UInt32 + public func setFirstBlocknum(val: Swift.UInt32) + public func getNumberOfBlocks() -> Swift.UInt32 + public func setNumberOfBlocks(val: Swift.UInt32) + public func getSyncComplete() -> Swift.Bool + public func setSyncComplete(val: Swift.Bool) + public func getShortChannelIds() -> [Swift.UInt64] + public func setShortChannelIds(val: [Swift.UInt64]) + public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32, syncCompleteArg: Swift.Bool, shortChannelIdsArg: [Swift.UInt64]) + public class func eq(a: LightningDevKit.Bindings.ReplyChannelRange, b: LightningDevKit.Bindings.ReplyChannelRange) -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ReplyChannelRangeDecodeErrorZ public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias BuiltCommitmentTransaction = LightningDevKit.Bindings.BuiltCommitmentTransaction +public typealias Score = LightningDevKit.Bindings.Score +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class Score : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init(scoreLookUp: LightningDevKit.Bindings.ScoreLookUp, scoreUpdate: LightningDevKit.Bindings.ScoreUpdate) + open func write() -> [Swift.UInt8] + public func getScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func getScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + @objc deinit + } +} +public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.CreationError? + public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + @objc deinit + } +} +public typealias CustomOnionMessageContents = LightningDevKit.Bindings.CustomOnionMessageContents +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers open class CustomOnionMessageContents : LightningDevKit.NativeTraitWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public init() + open func tlvType() -> Swift.UInt64 + open func write() -> [Swift.UInt8] + @objc deinit + } +} +public typealias Result_LockedChannelMonitorNoneZ = LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BuiltCommitmentTransaction : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_LockedChannelMonitorNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTransaction() -> [Swift.UInt8] - public func setTransaction(val: [Swift.UInt8]) - public func getTxid() -> [Swift.UInt8]? - public func setTxid(val: [Swift.UInt8]) - public init(transactionArg: [Swift.UInt8], txidArg: [Swift.UInt8]) - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ - public func getSighashAll(fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signCounterpartyCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64) -> [Swift.UInt8] - public func signHolderCommitment(fundingKey: [Swift.UInt8], fundingRedeemscript: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, entropySource: LightningDevKit.Bindings.EntropySource) -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") + public class func initWithOk(o: LightningDevKit.Bindings.LockedChannelMonitor) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.LockedChannelMonitor? @objc deinit } } -public typealias Bolt12ParseError = LightningDevKit.Bindings.Bolt12ParseError +public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Bolt12ParseError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool + public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] + public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) + public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? + public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) + public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) public func isOwned() -> Swift.Bool @objc deinit } } -public typealias CounterpartyChannelTransactionParameters = LightningDevKit.Bindings.CounterpartyChannelTransactionParameters +public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CounterpartyChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func setPubkeys(val: LightningDevKit.Bindings.ChannelPublicKeys) - public func getSelectedContestDelay() -> Swift.UInt16 - public func setSelectedContestDelay(val: Swift.UInt16) - public init(pubkeysArg: LightningDevKit.Bindings.ChannelPublicKeys, selectedContestDelayArg: Swift.UInt16) - public class func eq(a: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters, b: LightningDevKit.Bindings.CounterpartyChannelTransactionParameters) -> Swift.Bool + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getDustLimitSatoshis() -> Swift.UInt64 + public func setDustLimitSatoshis(val: Swift.UInt64) + public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 + public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) + public func getChannelReserveSatoshis() -> Swift.UInt64 + public func setChannelReserveSatoshis(val: Swift.UInt64) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getMinimumDepth() -> Swift.UInt32 + public func setMinimumDepth(val: Swift.UInt32) + public func getToSelfDelay() -> Swift.UInt16 + public func setToSelfDelay(val: Swift.UInt16) + public func getMaxAcceptedHtlcs() -> Swift.UInt16 + public func setMaxAcceptedHtlcs(val: Swift.UInt16) + public func getFundingPubkey() -> [Swift.UInt8] + public func setFundingPubkey(val: [Swift.UInt8]) + public func getRevocationBasepoint() -> [Swift.UInt8] + public func setRevocationBasepoint(val: [Swift.UInt8]) + public func getPaymentPoint() -> [Swift.UInt8] + public func setPaymentPoint(val: [Swift.UInt8]) + public func getDelayedPaymentBasepoint() -> [Swift.UInt8] + public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) + public func getHtlcBasepoint() -> [Swift.UInt8] + public func setHtlcBasepoint(val: [Swift.UInt8]) + public func getFirstPerCommitmentPoint() -> [Swift.UInt8] + public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) + public func getShutdownScriptpubkey() -> [Swift.UInt8]? + public func setShutdownScriptpubkey(val: [Swift.UInt8]?) + public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) + public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) + public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyChannelTransactionParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_COption_EventZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ +public typealias P2PGossipSync = LightningDevKit.Bindings.P2PGossipSync extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_COption_EventZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class P2PGossipSync : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Event?) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_EventZDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Event? + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, utxoLookup: LightningDevKit.Bindings.UtxoLookup?, logger: LightningDevKit.Bindings.Logger) + public func addUtxoLookup(utxoLookup: LightningDevKit.Bindings.UtxoLookup?) + public func asRoutingMessageHandler() -> LightningDevKit.Bindings.RoutingMessageHandler + public func asMessageSendEventsProvider() -> LightningDevKit.Bindings.MessageSendEventsProvider + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneAPIErrorZ = LightningDevKit.Bindings.Result_NoneAPIErrorZ +public typealias VerifiedInvoiceRequest = LightningDevKit.Bindings.VerifiedInvoiceRequest extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneAPIErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class VerifiedInvoiceRequest : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.APIError? + public func getKeys() -> [Swift.UInt8]? + public func setKeys(val: [Swift.UInt8]?) + public func chains() -> [[Swift.UInt8]] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func description() -> LightningDevKit.Bindings.PrintableString + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func paths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity + public func signingPubkey() -> [Swift.UInt8] + public func payerMetadata() -> [Swift.UInt8] + public func chain() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64? + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ +public typealias Result_HostnameDecodeErrorZ = LightningDevKit.Bindings.Result_HostnameDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HostnameDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Hostname) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HostnameDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? + public func getValue() -> LightningDevKit.Bindings.Hostname? @objc deinit } } -public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated +public typealias Result_NodeInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getFundingTxid() -> [Swift.UInt8]? - public func setFundingTxid(val: [Swift.UInt8]) - public func getFundingOutputIndex() -> Swift.UInt16 - public func setFundingOutputIndex(val: Swift.UInt16) - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.NodeInfo) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeInfoDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeInfo? @objc deinit } } -public enum NetworkGraphArgument { - case serialized([Swift.UInt8]) - case instance(LightningDevKit.NetworkGraph) -} -public struct ChannelManagerConstructionParameters { - public var config: LightningDevKit.UserConfig - public var entropySource: LightningDevKit.EntropySource - public var nodeSigner: LightningDevKit.NodeSigner - public var signerProvider: LightningDevKit.SignerProvider - public var feeEstimator: LightningDevKit.FeeEstimator - public var chainMonitor: LightningDevKit.ChainMonitor - public var txBroadcaster: LightningDevKit.BroadcasterInterface - public var enableP2PGossip: Swift.Bool - public var scorer: LightningDevKit.MultiThreadedLockableScore? - public var scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? - public var payerRetries: LightningDevKit.Bindings.Retry - public var logger: LightningDevKit.Logger - public init(config: LightningDevKit.UserConfig, entropySource: LightningDevKit.EntropySource, nodeSigner: LightningDevKit.NodeSigner, signerProvider: LightningDevKit.SignerProvider, feeEstimator: LightningDevKit.FeeEstimator, chainMonitor: LightningDevKit.ChainMonitor, txBroadcaster: LightningDevKit.BroadcasterInterface, logger: LightningDevKit.Logger, enableP2PGossip: Swift.Bool = false, scorer: LightningDevKit.MultiThreadedLockableScore? = nil, scoreParams: LightningDevKit.ProbabilisticScoringFeeParameters? = nil, payerRetries: LightningDevKit.Retry = Retry.initWithAttempts(a: UInt(3))) -} -@_hasMissingDesignatedInitializers public class ChannelManagerConstructor : LightningDevKit.NativeTypeWrapper { - final public let channelManager: LightningDevKit.ChannelManager - final public let channel_manager_latest_block_hash: [Swift.UInt8]? - public var netGraph: LightningDevKit.NetworkGraph? { - get - } - final public let peerManager: LightningDevKit.PeerManager - public var channel_monitors: [(LightningDevKit.ChannelMonitor, [Swift.UInt8])] { - get - } - public init(channelManagerSerialized: [Swift.UInt8], channelMonitorsSerialized: [[Swift.UInt8]], networkGraph: LightningDevKit.NetworkGraphArgument, filter: LightningDevKit.Filter?, params: LightningDevKit.ChannelManagerConstructionParameters) throws - public init(network: LightningDevKit.Network, currentBlockchainTipHash: [Swift.UInt8], currentBlockchainTipHeight: Swift.UInt32, netGraph: LightningDevKit.NetworkGraph?, params: LightningDevKit.ChannelManagerConstructionParameters) - public func chainSyncCompleted(persister: LightningDevKit.ExtendedChannelManagerPersister) - public func interrupt() - public func getTCPPeerHandler() -> LightningDevKit.TCPPeerHandler - @objc deinit -} -public protocol ExtendedChannelManagerPersister : LightningDevKit.Bindings.Persister { - func handleEvent(event: LightningDevKit.Event) -} -@_hasMissingDesignatedInitializers public class TCPPeerHandler { - public func bind(address: Swift.String, port: Swift.UInt16) -> Swift.Bool - public func connect(address: Swift.String, port: Swift.UInt16, theirNodeId: [Swift.UInt8]) -> Swift.Bool - @objc deinit -} -public typealias UpdateFulfillHTLC = LightningDevKit.Bindings.UpdateFulfillHTLC +public typealias Result_NoneIOErrorZ = LightningDevKit.Bindings.Result_NoneIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateFulfillHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getPaymentPreimage() -> [Swift.UInt8]? - public func setPaymentPreimage(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], htlcIdArg: Swift.UInt64, paymentPreimageArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UpdateFulfillHTLC, b: LightningDevKit.Bindings.UpdateFulfillHTLC) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? @objc deinit } } -public typealias IOError = LightningDevKit.Bindings.IOError +public typealias Result_CoinSelectionNoneZ = LightningDevKit.Bindings.Result_CoinSelectionNoneZ extension LightningDevKit.Bindings { - public enum IOError { - case NotFound - case PermissionDenied - case ConnectionRefused - case ConnectionReset - case ConnectionAborted - case NotConnected - case AddrInUse - case AddrNotAvailable - case BrokenPipe - case AlreadyExists - case WouldBlock - case InvalidInput - case InvalidData - case TimedOut - case WriteZero - case Interrupted - case Other - case UnexpectedEof - public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } + @_hasMissingDesignatedInitializers public class Result_CoinSelectionNoneZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CoinSelection) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + public func isOk() -> Swift.Bool + public func getValue() -> LightningDevKit.Bindings.CoinSelection? + @objc deinit } } -public typealias Result_PingDecodeErrorZ = LightningDevKit.Bindings.Result_PingDecodeErrorZ +public typealias InMemorySigner = LightningDevKit.Bindings.InMemorySigner extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PingDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class InMemorySigner : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Ping) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PingDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Ping? + public func getFundingKey() -> [Swift.UInt8]? + public func setFundingKey(val: [Swift.UInt8]) + public func getRevocationBaseKey() -> [Swift.UInt8]? + public func setRevocationBaseKey(val: [Swift.UInt8]) + public func getPaymentKey() -> [Swift.UInt8]? + public func setPaymentKey(val: [Swift.UInt8]) + public func getDelayedPaymentBaseKey() -> [Swift.UInt8]? + public func setDelayedPaymentBaseKey(val: [Swift.UInt8]) + public func getHtlcBaseKey() -> [Swift.UInt8]? + public func setHtlcBaseKey(val: [Swift.UInt8]) + public func getCommitmentSeed() -> [Swift.UInt8]? + public func setCommitmentSeed(val: [Swift.UInt8]) + public init(fundingKey: [Swift.UInt8], revocationBaseKey: [Swift.UInt8], paymentKey: [Swift.UInt8], delayedPaymentBaseKey: [Swift.UInt8], htlcBaseKey: [Swift.UInt8], commitmentSeed: [Swift.UInt8], channelValueSatoshis: Swift.UInt64, channelKeysId: [Swift.UInt8], randBytesUniqueStart: [Swift.UInt8]) + public func counterpartyPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys? + public func counterpartySelectedContestDelay() -> Swift.UInt16? + public func holderSelectedContestDelay() -> Swift.UInt16? + public func isOutbound() -> Swift.Bool? + public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint? + public func getChannelParameters() -> LightningDevKit.Bindings.ChannelTransactionParameters? + public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures? + public func signCounterpartyPaymentInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func signDynamicP2wshInput(spendTx: [Swift.UInt8], inputIdx: Swift.UInt, descriptor: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_CVec_CVec_u8ZZNoneZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func asEcdsaChannelSigner() -> LightningDevKit.Bindings.EcdsaChannelSigner + public func asWriteableEcdsaChannelSigner() -> LightningDevKit.Bindings.WriteableEcdsaChannelSigner + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.EntropySource) -> LightningDevKit.Bindings.Result_InMemorySignerDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UpdateAddHTLC = LightningDevKit.Bindings.UpdateAddHTLC +public typealias ChannelReady = LightningDevKit.Bindings.ChannelReady extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UpdateAddHTLC : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelReady : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getChannelId() -> [Swift.UInt8]? public func setChannelId(val: [Swift.UInt8]) - public func getHtlcId() -> Swift.UInt64 - public func setHtlcId(val: Swift.UInt64) - public func getAmountMsat() -> Swift.UInt64 - public func setAmountMsat(val: Swift.UInt64) - public func getPaymentHash() -> [Swift.UInt8]? - public func setPaymentHash(val: [Swift.UInt8]) - public func getCltvExpiry() -> Swift.UInt32 - public func setCltvExpiry(val: Swift.UInt32) - public func getSkimmedFeeMsat() -> Swift.UInt64? - public func setSkimmedFeeMsat(val: Swift.UInt64?) - public class func eq(a: LightningDevKit.Bindings.UpdateAddHTLC, b: LightningDevKit.Bindings.UpdateAddHTLC) -> Swift.Bool + public func getNextPerCommitmentPoint() -> [Swift.UInt8] + public func setNextPerCommitmentPoint(val: [Swift.UInt8]) + public func getShortChannelIdAlias() -> Swift.UInt64? + public func setShortChannelIdAlias(val: Swift.UInt64?) + public init(channelIdArg: [Swift.UInt8], nextPerCommitmentPointArg: [Swift.UInt8], shortChannelIdAliasArg: Swift.UInt64?) + public class func eq(a: LightningDevKit.Bindings.ChannelReady, b: LightningDevKit.Bindings.ChannelReady) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UpdateAddHTLCDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias MonitorEvent = LightningDevKit.Bindings.MonitorEvent +public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorEvent : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum MonitorEventType { - case HTLCEvent - case CommitmentTxConfirmed - case Completed - case UpdateFailed - public static func == (a: LightningDevKit.Bindings.MonitorEvent.MonitorEventType, b: LightningDevKit.Bindings.MonitorEvent.MonitorEventType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.MonitorEvent.MonitorEventType - public class func initWithHtlcevent(a: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCommitmentTxConfirmed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithCompleted(fundingTxo: LightningDevKit.Bindings.OutPoint, monitorUpdateId: Swift.UInt64) -> LightningDevKit.Bindings.MonitorEvent - public class func initWithUpdateFailed(a: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.MonitorEvent - public class func eq(a: LightningDevKit.Bindings.MonitorEvent, b: LightningDevKit.Bindings.MonitorEvent) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_MonitorEventZDecodeErrorZ - public func getValueAsHtlcEvent() -> LightningDevKit.Bindings.HTLCUpdate? - public func getValueAsCommitmentTxConfirmed() -> LightningDevKit.Bindings.OutPoint? - public func getValueAsCompleted() -> LightningDevKit.Bindings.MonitorEvent.Completed? - public func getValueAsUpdateFailed() -> LightningDevKit.Bindings.OutPoint? + public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxInitRbf? @objc deinit - @_hasMissingDesignatedInitializers public class Completed : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint - public func getMonitorUpdateId() -> Swift.UInt64 - @objc deinit - } } } -public typealias Result_BlindedHopFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ +public typealias Result_COption_HTLCDestinationZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BlindedHopFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_HTLCDestinationZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BlindedHopFeatures) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BlindedHopFeaturesDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.HTLCDestination?) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BlindedHopFeatures? + public func getValue() -> LightningDevKit.Bindings.HTLCDestination? @objc deinit } } @@ -7120,373 +8007,189 @@ extension LightningDevKit.Bindings { @objc deinit } } -public typealias NetworkGraph = LightningDevKit.Bindings.NetworkGraph -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetworkGraph : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func handleNetworkUpdate(networkUpdate: LightningDevKit.Bindings.NetworkUpdate) - public func getGenesisHash() -> [Swift.UInt8] - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_NetworkGraphDecodeErrorZ - public init(network: LightningDevKit.Bindings.Network, logger: LightningDevKit.Bindings.Logger) - public func readOnly() -> LightningDevKit.Bindings.ReadOnlyNetworkGraph - public func getLastRapidGossipSyncTimestamp() -> Swift.UInt32? - public func setLastRapidGossipSyncTimestamp(lastRapidGossipSyncTimestamp: Swift.UInt32) - public func updateNodeFromAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateNodeFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromAnnouncementNoLookup(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelFromUnsignedAnnouncement(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement, utxoLookup: LightningDevKit.Bindings.UtxoLookup?) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func addChannelFromPartialAnnouncement(shortChannelId: Swift.UInt64, timestamp: Swift.UInt64, features: LightningDevKit.Bindings.ChannelFeatures, nodeId1: [Swift.UInt8], nodeId2: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func channelFailedPermanent(shortChannelId: Swift.UInt64) - public func nodeFailedPermanent(nodeId: [Swift.UInt8]) - public func removeStaleChannelsAndTracking() - public func removeStaleChannelsAndTrackingWithTime(currentTimeUnix: Swift.UInt64) - public func updateChannel(msg: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func updateChannelUnsigned(msg: LightningDevKit.Bindings.UnsignedChannelUpdate) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public func isOwned() -> Swift.Bool - @objc deinit - } -} -public typealias Quantity = LightningDevKit.Bindings.Quantity +public typealias Result_ThirtyTwoBytesPaymentErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesPaymentErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PaymentError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesPaymentErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PaymentError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias Shutdown = LightningDevKit.Bindings.Shutdown +public typealias Result_HTLCUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Shutdown : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_HTLCUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getScriptpubkey() -> [Swift.UInt8] - public func setScriptpubkey(val: [Swift.UInt8]) - public init(channelIdArg: [Swift.UInt8], scriptpubkeyArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.Shutdown, b: LightningDevKit.Bindings.Shutdown) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ShutdownDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.HTLCUpdate) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.HTLCUpdate? @objc deinit } } -public typealias ChannelInfo = LightningDevKit.Bindings.ChannelInfo +public typealias Result_CounterpartyCommitmentSecretsDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CounterpartyCommitmentSecretsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.ChannelFeatures - public func setFeatures(val: LightningDevKit.Bindings.ChannelFeatures) - public func getNodeOne() -> LightningDevKit.Bindings.NodeId - public func setNodeOne(val: LightningDevKit.Bindings.NodeId) - public func getOneToTwo() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setOneToTwo(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getNodeTwo() -> LightningDevKit.Bindings.NodeId - public func setNodeTwo(val: LightningDevKit.Bindings.NodeId) - public func getTwoToOne() -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func setTwoToOne(val: LightningDevKit.Bindings.ChannelUpdateInfo) - public func getCapacitySats() -> Swift.UInt64? - public func setCapacitySats(val: Swift.UInt64?) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.ChannelAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.ChannelAnnouncement) - public class func eq(a: LightningDevKit.Bindings.ChannelInfo, b: LightningDevKit.Bindings.ChannelInfo) -> Swift.Bool - public func getDirectionalInfo(channelFlags: Swift.UInt8) -> LightningDevKit.Bindings.ChannelUpdateInfo? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelInfoDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyCommitmentSecrets) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.CounterpartyCommitmentSecrets? @objc deinit } } -public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError +public typealias TxOut = LightningDevKit.Bindings.TxOut extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxOut : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum ParseOrSemanticErrorType { - case ParseError - case SemanticError - public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType - public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError - public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? - public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? + public init(scriptPubkey: [Swift.UInt8], value: Swift.UInt64) + public func getScriptPubkey() -> [Swift.UInt8] + public func getValue() -> Swift.UInt64 @objc deinit } } -@_hasMissingDesignatedInitializers open class NativeTypeWrapper : Swift.Hashable { - public static func == (lhs: LightningDevKit.NativeTypeWrapper, rhs: LightningDevKit.NativeTypeWrapper) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - @objc deinit - open var hashValue: Swift.Int { - get - } -} -@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers open class NativeTraitWrapper : LightningDevKit.NativeTypeWrapper { - public func activate() -> Self - public func activateOnce() -> Self - @objc deinit -} -@_hasMissingDesignatedInitializers public class Bindings { - public enum PrintSeverity : Swift.UInt { - case DEBUG - case WARNING - case ERROR - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { - get - } - } - public class func setLogThreshold(severity: LightningDevKit.Bindings.PrintSeverity) - public class func cacheInstance(instance: LightningDevKit.NativeTraitWrapper, countIdempotently: Swift.Bool = false) - public class func instanceToPointer(instance: LightningDevKit.NativeTraitWrapper) -> Swift.UnsafeMutableRawPointer - public class func pointerToInstance(pointer: Swift.UnsafeRawPointer, sourceMarker: Swift.String?) -> T where T : LightningDevKit.NativeTraitWrapper - public class func UnsafeIntPointer_to_string(nativeType: Swift.UnsafePointer) -> Swift.String - public class func string_to_unsafe_int8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func string_to_unsafe_uint8_pointer(string: Swift.String) -> Swift.UnsafePointer - public class func ldkGetCompiledVersion() -> Swift.String - public class func ldkCBindingsGetCompiledVersion() -> Swift.String - public class func swiftSign(msg: [Swift.UInt8], sk: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func recoverPk(msg: [Swift.UInt8], sig: Swift.String) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func swiftVerify(msg: [Swift.UInt8], sig: Swift.String, pk: [Swift.UInt8]) -> Swift.Bool - public class func constructInvoicePreimage(hrpBytes: [Swift.UInt8], dataWithoutSignature: [Swift.UInt8]) -> [Swift.UInt8] - public class func providedInitFeatures(config: LightningDevKit.Bindings.UserConfig) -> LightningDevKit.Bindings.InitFeatures - public class func swiftCreate(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, invoiceExpiryDeltaSecs: Swift.UInt32, entropySource: LightningDevKit.Bindings.EntropySource, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func createFromHash(keys: LightningDevKit.Bindings.ExpandedKey, minValueMsat: Swift.UInt64?, paymentHash: [Swift.UInt8], invoiceExpiryDeltaSecs: Swift.UInt32, currentTime: Swift.UInt64, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func htlcSuccessTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func htlcTimeoutTxWeight(channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.UInt64 - public class func buildCommitmentSecret(commitmentSeed: [Swift.UInt8], idx: Swift.UInt64) -> [Swift.UInt8] - public class func buildClosingTransaction(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> [Swift.UInt8] - public class func derivePrivateKey(perCommitmentPoint: [Swift.UInt8], baseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicKey(perCommitmentPoint: [Swift.UInt8], basePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePrivateRevocationKey(perCommitmentSecret: [Swift.UInt8], countersignatoryRevocationBaseSecret: [Swift.UInt8]) -> [Swift.UInt8] - public class func derivePublicRevocationKey(perCommitmentPoint: [Swift.UInt8], countersignatoryRevocationBasePoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getRevokeableRedeemscript(revocationKey: [Swift.UInt8], contestDelay: Swift.UInt16, broadcasterDelayedPaymentKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func getHtlcRedeemscript(htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, keys: LightningDevKit.Bindings.TxCreationKeys) -> [Swift.UInt8] - public class func makeFundingRedeemscript(broadcaster: [Swift.UInt8], countersignatory: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcTransaction(commitmentTxid: [Swift.UInt8], feeratePerKw: Swift.UInt32, contestDelay: Swift.UInt16, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment, channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures, broadcasterDelayedPaymentKey: [Swift.UInt8], revocationKey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildHtlcInputWitness(localSig: [Swift.UInt8], remoteSig: [Swift.UInt8], preimage: [Swift.UInt8]?, redeemScript: [Swift.UInt8], channelTypeFeatures: LightningDevKit.Bindings.ChannelTypeFeatures) -> [Swift.UInt8] - public class func getToCountersignatoryWithAnchorsRedeemscript(paymentPoint: [Swift.UInt8]) -> [Swift.UInt8] - public class func getAnchorRedeemscript(fundingPubkey: [Swift.UInt8]) -> [Swift.UInt8] - public class func buildAnchorInputWitness(fundingKey: [Swift.UInt8], fundingSig: [Swift.UInt8]) -> [Swift.UInt8] - public class func getCommitmentTransactionNumberObscureFactor(broadcasterPaymentBasepoint: [Swift.UInt8], countersignatoryPaymentBasepoint: [Swift.UInt8], outboundFromBroadcaster: Swift.Bool) -> Swift.UInt64 - public class func verifyNodeAnnouncement(msg: LightningDevKit.Bindings.NodeAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func verifyChannelAnnouncement(msg: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ - public class func findRoute(ourNodePubkey: [Swift.UInt8], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, firstHops: [LightningDevKit.Bindings.ChannelDetails]?, logger: LightningDevKit.Bindings.Logger, scorer: LightningDevKit.Bindings.Score, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func buildRouteFromHops(ourNodePubkey: [Swift.UInt8], hops: [[Swift.UInt8]], routeParams: LightningDevKit.Bindings.RouteParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteLightningErrorZ - public class func payInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func payZeroValueInvoice(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_PaymentIdPaymentErrorZ - public class func payZeroValueInvoiceWithId(invoice: LightningDevKit.Bindings.Bolt11Invoice, amountMsats: Swift.UInt64, paymentId: [Swift.UInt8], retryStrategy: LightningDevKit.Bindings.Retry, channelmanager: LightningDevKit.Bindings.ChannelManager) -> LightningDevKit.Bindings.Result_NonePaymentErrorZ - public class func createPhantomInvoice(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createPhantomInvoiceWithDescriptionHash(amtMsat: Swift.UInt64?, paymentHash: [Swift.UInt8]?, invoiceExpiryDeltaSecs: Swift.UInt32, descriptionHash: LightningDevKit.Bindings.Sha256, phantomRouteHints: [LightningDevKit.Bindings.PhantomRouteHints], entropySource: LightningDevKit.Bindings.EntropySource, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, minFinalCltvExpiryDelta: Swift.UInt16?, durationSinceEpoch: Swift.UInt64) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanager(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerWithDescriptionHashAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, descriptionHash: LightningDevKit.Bindings.Sha256, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpoch(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - public class func createInvoiceFromChannelmanagerAndDurationSinceEpochWithPaymentHash(channelmanager: LightningDevKit.Bindings.ChannelManager, nodeSigner: LightningDevKit.Bindings.NodeSigner, logger: LightningDevKit.Bindings.Logger, network: LightningDevKit.Bindings.Currency, amtMsat: Swift.UInt64?, description: Swift.String, durationSinceEpoch: Swift.UInt64, invoiceExpiryDeltaSecs: Swift.UInt32, paymentHash: [Swift.UInt8], minFinalCltvExpiryDelta: Swift.UInt16?) -> LightningDevKit.Bindings.Result_Bolt11InvoiceSignOrCreationErrorZ - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `arg`.") - public class func readBlockHashChannelManager(ser: [Swift.UInt8], arg: LightningDevKit.Bindings.ChannelManagerReadArgs) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ - public class func readBlockHashChannelMonitor(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.EntropySource, argB: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ - @objc deinit -} -@_hasMissingDesignatedInitializers public class InstanceCrashSimulator : LightningDevKit.NativeTraitWrapper { - public init() - public func getPointer() -> Swift.UnsafeMutableRawPointer - @objc deinit -} -public typealias NodeAnnouncementInfo = LightningDevKit.Bindings.NodeAnnouncementInfo +public typealias BlindedPayInfo = LightningDevKit.Bindings.BlindedPayInfo extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncementInfo : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class BlindedPayInfo : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getFeatures() -> LightningDevKit.Bindings.NodeFeatures - public func setFeatures(val: LightningDevKit.Bindings.NodeFeatures) - public func getLastUpdate() -> Swift.UInt32 - public func setLastUpdate(val: Swift.UInt32) - public func getRgb() -> [Swift.UInt8]? - public func setRgb(val: [Swift.UInt8]) - public func getAlias() -> LightningDevKit.Bindings.NodeAlias - public func setAlias(val: LightningDevKit.Bindings.NodeAlias) - public func getAnnouncementMessage() -> LightningDevKit.Bindings.NodeAnnouncement? - public func setAnnouncementMessage(val: LightningDevKit.Bindings.NodeAnnouncement) - public init(featuresArg: LightningDevKit.Bindings.NodeFeatures, lastUpdateArg: Swift.UInt32, rgbArg: [Swift.UInt8], aliasArg: LightningDevKit.Bindings.NodeAlias, announcementMessageArg: LightningDevKit.Bindings.NodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncementInfo, b: LightningDevKit.Bindings.NodeAnnouncementInfo) -> Swift.Bool - public func addresses() -> [LightningDevKit.Bindings.NetAddress] + public func getFeeBaseMsat() -> Swift.UInt32 + public func setFeeBaseMsat(val: Swift.UInt32) + public func getFeeProportionalMillionths() -> Swift.UInt32 + public func setFeeProportionalMillionths(val: Swift.UInt32) + public func getCltvExpiryDelta() -> Swift.UInt16 + public func setCltvExpiryDelta(val: Swift.UInt16) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public func getHtlcMaximumMsat() -> Swift.UInt64 + public func setHtlcMaximumMsat(val: Swift.UInt64) + public func getFeatures() -> LightningDevKit.Bindings.BlindedHopFeatures + public func setFeatures(val: LightningDevKit.Bindings.BlindedHopFeatures) + public init(feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, featuresArg: LightningDevKit.Bindings.BlindedHopFeatures) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedPayInfo, b: LightningDevKit.Bindings.BlindedPayInfo) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedPayInfoDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_InitDecodeErrorZ = LightningDevKit.Bindings.Result_InitDecodeErrorZ +public typealias Result_COption_PathFailureZDecodeErrorZ = LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_InitDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_COption_PathFailureZDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BindingsInit) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_InitDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PathFailure?) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_COption_PathFailureZDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BindingsInit? + public func getValue() -> LightningDevKit.Bindings.PathFailure? @objc deinit } } -public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop +public typealias CustomMessageHandler = LightningDevKit.Bindings.CustomMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CustomMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public init(customMessageReader: LightningDevKit.Bindings.CustomMessageReader) + open func handleCustomMessage(msg: LightningDevKit.Bindings.BindingsType, senderNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneLightningErrorZ + open func getAndClearPendingMsg() -> [([Swift.UInt8], LightningDevKit.Bindings.BindingsType)] + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getCustomMessageReader() -> LightningDevKit.Bindings.CustomMessageReader @objc deinit } } -public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice +public typealias Result_NoneNoneZ = LightningDevKit.Bindings.Result_NoneNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NoneNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func signingPubkey() -> [Swift.UInt8] - public func isOwned() -> Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_NoneNoneZ + public func isOk() -> Swift.Bool @objc deinit } } -public typealias APIError = LightningDevKit.Bindings.APIError +public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class APIError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum APIErrorType { - case APIMisuseError - case FeeRateTooHigh - case InvalidRoute - case ChannelUnavailable - case MonitorUpdateInProgress - case IncompatibleShutdownScript - public static func == (a: LightningDevKit.Bindings.APIError.APIErrorType, b: LightningDevKit.Bindings.APIError.APIErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.APIError.APIErrorType - public class func initWithApimisuseError(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithFeeRateTooHigh(err: Swift.String, feerate: Swift.UInt32) -> LightningDevKit.Bindings.APIError - public class func initWithInvalidRoute(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithChannelUnavailable(err: Swift.String) -> LightningDevKit.Bindings.APIError - public class func initWithMonitorUpdateInProgress() -> LightningDevKit.Bindings.APIError - public class func initWithIncompatibleShutdownScript(script: LightningDevKit.Bindings.ShutdownScript) -> LightningDevKit.Bindings.APIError - public class func eq(a: LightningDevKit.Bindings.APIError, b: LightningDevKit.Bindings.APIError) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_APIErrorZDecodeErrorZ - public func getValueAsApiMisuseError() -> LightningDevKit.Bindings.APIError.APIMisuseError? - public func getValueAsFeeRateTooHigh() -> LightningDevKit.Bindings.APIError.FeeRateTooHigh? - public func getValueAsInvalidRoute() -> LightningDevKit.Bindings.APIError.InvalidRoute? - public func getValueAsChannelUnavailable() -> LightningDevKit.Bindings.APIError.ChannelUnavailable? - public func getValueAsIncompatibleShutdownScript() -> LightningDevKit.Bindings.APIError.IncompatibleShutdownScript? + public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) + open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) + open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ + open func peerDisconnected(theirNodeId: [Swift.UInt8]) + open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures + public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider @objc deinit - @_hasMissingDesignatedInitializers public class APIMisuseError : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class FeeRateTooHigh : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - public func getFeerate() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class InvalidRoute : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class ChannelUnavailable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getErr() -> Swift.String - @objc deinit - } - @_hasMissingDesignatedInitializers public class IncompatibleShutdownScript : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getScript() -> LightningDevKit.Bindings.ShutdownScript - @objc deinit - } } } -public typealias Result_NoneErrorZ = LightningDevKit.Bindings.Result_NoneErrorZ +public typealias Result_BuiltCommitmentTransactionDecodeErrorZ = LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BuiltCommitmentTransactionDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_NoneErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BuiltCommitmentTransaction) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BuiltCommitmentTransactionDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.IOError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.BuiltCommitmentTransaction? @objc deinit } } -public typealias NetAddress = LightningDevKit.Bindings.NetAddress +public typealias SocketAddress = LightningDevKit.Bindings.SocketAddress extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NetAddress : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SocketAddress : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum NetAddressType { - case IPv4 - case IPv6 + public enum SocketAddressType { + case TcpIpV4 + case TcpIpV6 case OnionV2 case OnionV3 case Hostname - public static func == (a: LightningDevKit.Bindings.NetAddress.NetAddressType, b: LightningDevKit.Bindings.NetAddress.NetAddressType) -> Swift.Bool + public static func == (a: LightningDevKit.Bindings.SocketAddress.SocketAddressType, b: LightningDevKit.Bindings.SocketAddress.SocketAddressType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.NetAddress.NetAddressType - public class func initWithIpv4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithIpv6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.NetAddress - public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.NetAddress - public class func eq(a: LightningDevKit.Bindings.NetAddress, b: LightningDevKit.Bindings.NetAddress) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NetAddressDecodeErrorZ - public func getValueAsIPv4() -> LightningDevKit.Bindings.NetAddress.IPv4? - public func getValueAsIPv6() -> LightningDevKit.Bindings.NetAddress.IPv6? + public func getValueType() -> LightningDevKit.Bindings.SocketAddress.SocketAddressType + public class func initWithTcpIpV4(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithTcpIpV6(addr: [Swift.UInt8], port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV2(a: [Swift.UInt8]) -> LightningDevKit.Bindings.SocketAddress + public class func initWithOnionV3(ed25519Pubkey: [Swift.UInt8], checksum: Swift.UInt16, version: Swift.UInt8, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func initWithHostname(hostname: LightningDevKit.Bindings.Hostname, port: Swift.UInt16) -> LightningDevKit.Bindings.SocketAddress + public class func eq(a: LightningDevKit.Bindings.SocketAddress, b: LightningDevKit.Bindings.SocketAddress) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SocketAddressDecodeErrorZ + public class func fromStr(s: Swift.String) -> LightningDevKit.Bindings.Result_SocketAddressSocketAddressParseErrorZ + public func getValueAsTcpIpV4() -> LightningDevKit.Bindings.SocketAddress.TcpIpV4? + public func getValueAsTcpIpV6() -> LightningDevKit.Bindings.SocketAddress.TcpIpV6? public func getValueAsOnionV2() -> [Swift.UInt8]? - public func getValueAsOnionV3() -> LightningDevKit.Bindings.NetAddress.OnionV3? - public func getValueAsHostname() -> LightningDevKit.Bindings.NetAddress.Hostname? + public func getValueAsOnionV3() -> LightningDevKit.Bindings.SocketAddress.OnionV3? + public func getValueAsHostname() -> LightningDevKit.Bindings.SocketAddress.Hostname? @objc deinit - @_hasMissingDesignatedInitializers public class IPv4 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV4 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] public func getPort() -> Swift.UInt16 @objc deinit } - @_hasMissingDesignatedInitializers public class IPv6 : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TcpIpV6 : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public func getAddr() -> [Swift.UInt8] @@ -7511,1396 +8214,1367 @@ extension LightningDevKit.Bindings { } } } -public typealias NodeId = LightningDevKit.Bindings.NodeId +public typealias RouteHop = LightningDevKit.Bindings.RouteHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class RouteHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId - public func asSlice() -> [Swift.UInt8] - public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public func getPubkey() -> [Swift.UInt8] + public func setPubkey(val: [Swift.UInt8]) + public func getNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures + public func setNodeFeatures(val: LightningDevKit.Bindings.NodeFeatures) + public func getShortChannelId() -> Swift.UInt64 + public func setShortChannelId(val: Swift.UInt64) + public func getChannelFeatures() -> LightningDevKit.Bindings.ChannelFeatures + public func setChannelFeatures(val: LightningDevKit.Bindings.ChannelFeatures) + public func getFeeMsat() -> Swift.UInt64 + public func setFeeMsat(val: Swift.UInt64) + public func getCltvExpiryDelta() -> Swift.UInt32 + public func setCltvExpiryDelta(val: Swift.UInt32) + public func getMaybeAnnouncedChannel() -> Swift.Bool + public func setMaybeAnnouncedChannel(val: Swift.Bool) + public init(pubkeyArg: [Swift.UInt8], nodeFeaturesArg: LightningDevKit.Bindings.NodeFeatures, shortChannelIdArg: Swift.UInt64, channelFeaturesArg: LightningDevKit.Bindings.ChannelFeatures, feeMsatArg: Swift.UInt64, cltvExpiryDeltaArg: Swift.UInt32, maybeAnnouncedChannelArg: Swift.Bool) public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHop, b: LightningDevKit.Bindings.RouteHop) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHopDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAddInputDecodeErrorZ = LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ +public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAddInputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAddInput) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAddInputDecodeErrorZ + public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) + public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] + public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ + public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] + public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] + public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ + public func getUpdateFuture() -> LightningDevKit.Bindings.Future + public func rebroadcastPendingClaims() + public func asListen() -> LightningDevKit.Bindings.Listen + public func asConfirm() -> LightningDevKit.Bindings.Confirm + public func asWatch() -> LightningDevKit.Bindings.Watch + public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias GossipTimestampFilter = LightningDevKit.Bindings.GossipTimestampFilter +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class GossipTimestampFilter : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getChainHash() -> [Swift.UInt8]? + public func setChainHash(val: [Swift.UInt8]) + public func getFirstTimestamp() -> Swift.UInt32 + public func setFirstTimestamp(val: Swift.UInt32) + public func getTimestampRange() -> Swift.UInt32 + public func setTimestampRange(val: Swift.UInt32) + public init(chainHashArg: [Swift.UInt8], firstTimestampArg: Swift.UInt32, timestampRangeArg: Swift.UInt32) + public class func eq(a: LightningDevKit.Bindings.GossipTimestampFilter, b: LightningDevKit.Bindings.GossipTimestampFilter) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_GossipTimestampFilterDecodeErrorZ + public func isOwned() -> Swift.Bool + @objc deinit + } +} +public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.PeerHandleError? + @objc deinit + } +} +public typealias Result_RetryDecodeErrorZ = LightningDevKit.Bindings.Result_RetryDecodeErrorZ +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class Result_RetryDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.Retry) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RetryDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAddInput? + public func getValue() -> LightningDevKit.Bindings.Retry? @objc deinit } } -public typealias CommitmentUpdate = LightningDevKit.Bindings.CommitmentUpdate +public typealias Result_boolLightningErrorZ = LightningDevKit.Bindings.Result_boolLightningErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CommitmentUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_boolLightningErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getUpdateAddHtlcs() -> [LightningDevKit.Bindings.UpdateAddHTLC] - public func setUpdateAddHtlcs(val: [LightningDevKit.Bindings.UpdateAddHTLC]) - public func getUpdateFulfillHtlcs() -> [LightningDevKit.Bindings.UpdateFulfillHTLC] - public func setUpdateFulfillHtlcs(val: [LightningDevKit.Bindings.UpdateFulfillHTLC]) - public func getUpdateFailHtlcs() -> [LightningDevKit.Bindings.UpdateFailHTLC] - public func setUpdateFailHtlcs(val: [LightningDevKit.Bindings.UpdateFailHTLC]) - public func getUpdateFailMalformedHtlcs() -> [LightningDevKit.Bindings.UpdateFailMalformedHTLC] - public func setUpdateFailMalformedHtlcs(val: [LightningDevKit.Bindings.UpdateFailMalformedHTLC]) - public func getUpdateFee() -> LightningDevKit.Bindings.UpdateFee? - public func setUpdateFee(val: LightningDevKit.Bindings.UpdateFee) - public func getCommitmentSigned() -> LightningDevKit.Bindings.CommitmentSigned - public func setCommitmentSigned(val: LightningDevKit.Bindings.CommitmentSigned) - public init(updateAddHtlcsArg: [LightningDevKit.Bindings.UpdateAddHTLC], updateFulfillHtlcsArg: [LightningDevKit.Bindings.UpdateFulfillHTLC], updateFailHtlcsArg: [LightningDevKit.Bindings.UpdateFailHTLC], updateFailMalformedHtlcsArg: [LightningDevKit.Bindings.UpdateFailMalformedHTLC], updateFeeArg: LightningDevKit.Bindings.UpdateFee, commitmentSignedArg: LightningDevKit.Bindings.CommitmentSigned) - public class func eq(a: LightningDevKit.Bindings.CommitmentUpdate, b: LightningDevKit.Bindings.CommitmentUpdate) -> Swift.Bool + public class func initWithOk(o: Swift.Bool) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.Result_boolLightningErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.LightningError? + public func getValue() -> Swift.Bool? + @objc deinit + } +} +public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getA() -> Swift.UInt64 + public func setA(val: Swift.UInt64) + public init(aArg: Swift.UInt64) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_SignatureCVec_SignatureZZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ +public typealias CounterpartyCommitmentSecrets = LightningDevKit.Bindings.CounterpartyCommitmentSecrets extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_SignatureCVec_SignatureZZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class CounterpartyCommitmentSecrets : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [[Swift.UInt8]])) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [[Swift.UInt8]])? + public init() + public func getMinSeenSecret() -> Swift.UInt64 + public func provideSecret(idx: Swift.UInt64, secret: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func getSecret(idx: Swift.UInt64) -> [Swift.UInt8]? + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CounterpartyCommitmentSecretsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelShutdownState = LightningDevKit.Bindings.ChannelShutdownState -extension LightningDevKit.Bindings { - public enum ChannelShutdownState { - case NotShuttingDown - case ShutdownInitiated - case ResolvingHTLCs - case NegotiatingClosingFee - case ShutdownComplete - public static func == (a: LightningDevKit.Bindings.ChannelShutdownState, b: LightningDevKit.Bindings.ChannelShutdownState) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } -} -public typealias Result_TransactionNoneZ = LightningDevKit.Bindings.Result_TransactionNoneZ +public typealias Result_PaymentPurposeDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentPurposeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentPurpose) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentPurposeDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentPurpose? @objc deinit } } -public typealias DecodeError = LightningDevKit.Bindings.DecodeError +public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DecodeError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum DecodeErrorType { - case UnknownVersion - case UnknownRequiredFeature - case InvalidValue - case ShortRead - case BadLengthDescriptor - case Io - case UnsupportedCompression - public static func == (a: LightningDevKit.Bindings.DecodeError.DecodeErrorType, b: LightningDevKit.Bindings.DecodeError.DecodeErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.DecodeError.DecodeErrorType - public class func initWithUnknownVersion() -> LightningDevKit.Bindings.DecodeError - public class func initWithUnknownRequiredFeature() -> LightningDevKit.Bindings.DecodeError - public class func initWithInvalidValue() -> LightningDevKit.Bindings.DecodeError - public class func initWithShortRead() -> LightningDevKit.Bindings.DecodeError - public class func initWithBadLengthDescriptor() -> LightningDevKit.Bindings.DecodeError - public class func initWithIo(a: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.DecodeError - public class func initWithUnsupportedCompression() -> LightningDevKit.Bindings.DecodeError - public class func eq(a: LightningDevKit.Bindings.DecodeError, b: LightningDevKit.Bindings.DecodeError) -> Swift.Bool - public func getValueAsIo() -> LightningDevKit.Bindings.IOError? + public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.WarningMessage? @objc deinit } } -public typealias EventsProvider = LightningDevKit.Bindings.EventsProvider +public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool public init() - open func processPendingEvents(handler: LightningDevKit.Bindings.EventHandler) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelReadyDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ +public typealias Result_ChannelAnnouncementDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelReadyDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelAnnouncementDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelReady) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelReadyDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelAnnouncement) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelReady? + public func getValue() -> LightningDevKit.Bindings.ChannelAnnouncement? @objc deinit } } -public typealias Result_QueryShortChannelIdsDecodeErrorZ = LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ +public typealias PaymentConstraints = LightningDevKit.Bindings.PaymentConstraints extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_QueryShortChannelIdsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentConstraints : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.QueryShortChannelIds) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_QueryShortChannelIdsDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.QueryShortChannelIds? + public func getMaxCltvExpiry() -> Swift.UInt32 + public func setMaxCltvExpiry(val: Swift.UInt32) + public func getHtlcMinimumMsat() -> Swift.UInt64 + public func setHtlcMinimumMsat(val: Swift.UInt64) + public init(maxCltvExpiryArg: Swift.UInt32, htlcMinimumMsatArg: Swift.UInt64) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentConstraintsDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_OpenChannelDecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ +public typealias Result_ChannelUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannel) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ChannelUpdate) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannel? + public func getValue() -> LightningDevKit.Bindings.ChannelUpdate? @objc deinit } } -public typealias ChannelUpdate = LightningDevKit.Bindings.ChannelUpdate +public typealias Result_ChannelPublicKeysDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelPublicKeysDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedChannelUpdate - public func setContents(val: LightningDevKit.Bindings.UnsignedChannelUpdate) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelUpdate) - public class func eq(a: LightningDevKit.Bindings.ChannelUpdate, b: LightningDevKit.Bindings.ChannelUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelUpdateDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelPublicKeysDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelPublicKeys? @objc deinit } } -public typealias ChainMonitor = LightningDevKit.Bindings.ChainMonitor +public typealias Future = LightningDevKit.Bindings.Future extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChainMonitor : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Future : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(chainSource: LightningDevKit.Bindings.Filter?, broadcaster: LightningDevKit.Bindings.BroadcasterInterface, logger: LightningDevKit.Bindings.Logger, feeest: LightningDevKit.Bindings.FeeEstimator, persister: LightningDevKit.Bindings.Persist) - public func getClaimableBalances(ignoredChannels: [LightningDevKit.Bindings.ChannelDetails]) -> [LightningDevKit.Bindings.Balance] - public func getMonitor(fundingTxo: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_LockedChannelMonitorNoneZ - public func listMonitors() -> [LightningDevKit.Bindings.OutPoint] - public func listPendingMonitorUpdates() -> [(LightningDevKit.Bindings.OutPoint, [LightningDevKit.Bindings.MonitorUpdateId])] - public func channelMonitorUpdated(fundingTxo: LightningDevKit.Bindings.OutPoint, completedUpdateId: LightningDevKit.Bindings.MonitorUpdateId) -> LightningDevKit.Bindings.Result_NoneAPIErrorZ - public func getUpdateFuture() -> LightningDevKit.Bindings.Future - public func rebroadcastPendingClaims() - public func asListen() -> LightningDevKit.Bindings.Listen - public func asConfirm() -> LightningDevKit.Bindings.Confirm - public func asWatch() -> LightningDevKit.Bindings.Watch - public func asEventsProvider() -> LightningDevKit.Bindings.EventsProvider + public func registerCallbackFn(callback: LightningDevKit.Bindings.FutureCallback) + public func wait() + public func waitTimeout(maxWait: Swift.UInt64) -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PeerHandleError = LightningDevKit.Bindings.PeerHandleError +public typealias Result_ClosingSignedDecodeErrorZ = LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PeerHandleError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClosingSignedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ClosingSigned) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClosingSignedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ClosingSigned? @objc deinit } } -public typealias NodeSigner = LightningDevKit.Bindings.NodeSigner +public typealias RouteHint = LightningDevKit.Bindings.RouteHint extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class NodeSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class RouteHint : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getInboundPaymentKeyMaterial() -> [Swift.UInt8] - open func getNodeId(recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_PublicKeyNoneZ - open func ecdh(recipient: LightningDevKit.Bindings.Recipient, otherKey: [Swift.UInt8], tweak: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SharedSecretNoneZ - open func signInvoice(hrpBytes: [Swift.UInt8], invoiceData: [Swift.UInt8], recipient: LightningDevKit.Bindings.Recipient) -> LightningDevKit.Bindings.Result_RecoverableSignatureNoneZ - open func signGossipMessage(msg: LightningDevKit.Bindings.UnsignedGossipMessage) -> LightningDevKit.Bindings.Result_SignatureNoneZ + public func getA() -> [LightningDevKit.Bindings.RouteHintHop] + public func setA(val: [LightningDevKit.Bindings.RouteHintHop]) + public init(aArg: [LightningDevKit.Bindings.RouteHintHop]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.RouteHint, b: LightningDevKit.Bindings.RouteHint) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias ChannelFeatures = LightningDevKit.Bindings.ChannelFeatures +public typealias Result_TransactionU16LenLimitedDecodeErrorZ = LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TransactionU16LenLimitedDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelFeatures, b: LightningDevKit.Bindings.ChannelFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.TransactionU16LenLimited) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TransactionU16LenLimitedDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TransactionU16LenLimited? @objc deinit } } -public typealias CoinSelection = LightningDevKit.Bindings.CoinSelection +public typealias Result_CVec_u8ZIOErrorZ = LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class CoinSelection : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_u8ZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getConfirmedUtxos() -> [LightningDevKit.Bindings.Utxo] - public func setConfirmedUtxos(val: [LightningDevKit.Bindings.Utxo]) - public func getChangeOutput() -> LightningDevKit.Bindings.TxOut? - public func setChangeOutput(val: LightningDevKit.Bindings.TxOut?) - public init(confirmedUtxosArg: [LightningDevKit.Bindings.Utxo], changeOutputArg: LightningDevKit.Bindings.TxOut?) - public func isOwned() -> Swift.Bool + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_u8ZIOErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias FilesystemPersister = LightningDevKit.Bindings.FilesystemPersister +public typealias ProbabilisticScorer = LightningDevKit.Bindings.ProbabilisticScorer extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class FilesystemPersister : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ProbabilisticScorer : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(pathToChannelData: Swift.String) - public func getDataDir() -> Swift.String - public func readChannelmonitors(entropySource: LightningDevKit.Bindings.EntropySource, signerProvider: LightningDevKit.Bindings.SignerProvider) -> LightningDevKit.Bindings.Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ + public init(decayParams: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger) + public func debugLogLiquidityStats() + public func estimatedChannelLiquidityRange(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> (Swift.UInt64, Swift.UInt64)? + public func historicalEstimatedChannelLiquidityProbabilities(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId) -> ([Swift.UInt16], [Swift.UInt16])? + public func historicalEstimatedPaymentSuccessProbability(scid: Swift.UInt64, target: LightningDevKit.Bindings.NodeId, amountMsat: Swift.UInt64, params: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) -> Swift.Double? + public func asScoreLookUp() -> LightningDevKit.Bindings.ScoreLookUp + public func asScoreUpdate() -> LightningDevKit.Bindings.ScoreUpdate + public func asScore() -> LightningDevKit.Bindings.Score + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8], argA: LightningDevKit.Bindings.ProbabilisticScoringDecayParameters, argB: LightningDevKit.Bindings.NetworkGraph, argC: LightningDevKit.Bindings.Logger) -> LightningDevKit.Bindings.Result_ProbabilisticScorerDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PositiveTimestampCreationErrorZ = LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ +public typealias Result_BlindedPathNoneZ = LightningDevKit.Bindings.Result_BlindedPathNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PositiveTimestampCreationErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_BlindedPathNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.PositiveTimestamp) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.Result_PositiveTimestampCreationErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.BlindedPath) -> LightningDevKit.Bindings.Result_BlindedPathNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_BlindedPathNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.CreationError? - public func getValue() -> LightningDevKit.Bindings.PositiveTimestamp? + public func getValue() -> LightningDevKit.Bindings.BlindedPath? @objc deinit } } -public typealias ChannelTypeFeatures = LightningDevKit.Bindings.ChannelTypeFeatures -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelTypeFeatures : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.ChannelTypeFeatures, b: LightningDevKit.Bindings.ChannelTypeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool +public typealias NodeId = LightningDevKit.Bindings.NodeId +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class NodeId : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public class func initWithPubkey(pubkey: [Swift.UInt8]) -> LightningDevKit.Bindings.NodeId + public func asSlice() -> [Swift.UInt8] + public func asPubkey() -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public func hash() -> Swift.UInt64 + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeIdDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias EcdsaChannelSigner = LightningDevKit.Bindings.EcdsaChannelSigner +public typealias ChannelAnnouncement = LightningDevKit.Bindings.ChannelAnnouncement extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class EcdsaChannelSigner : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ChannelAnnouncement : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(channelSigner: LightningDevKit.Bindings.ChannelSigner) - open func signCounterpartyCommitment(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, preimages: [[Swift.UInt8]]) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func validateCounterpartyRevocation(idx: Swift.UInt64, secret: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func signHolderCommitmentAndHtlcs(commitmentTx: LightningDevKit.Bindings.HolderCommitmentTransaction) -> LightningDevKit.Bindings.Result_C2Tuple_SignatureCVec_SignatureZZNoneZ - open func signJusticeRevokedOutput(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signJusticeRevokedHtlc(justiceTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentKey: [Swift.UInt8]?, htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, htlcDescriptor: LightningDevKit.Bindings.HTLCDescriptor) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signCounterpartyHtlcTransaction(htlcTx: [Swift.UInt8], input: Swift.UInt, amount: Swift.UInt64, perCommitmentPoint: [Swift.UInt8], htlc: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signClosingTransaction(closingTx: LightningDevKit.Bindings.ClosingTransaction) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signHolderAnchorInput(anchorTx: [Swift.UInt8], input: Swift.UInt) -> LightningDevKit.Bindings.Result_SignatureNoneZ - open func signChannelAnnouncementWithFundingKey(msg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) -> LightningDevKit.Bindings.Result_SignatureNoneZ - public func getChannelSigner() -> LightningDevKit.Bindings.ChannelSigner + public func getNodeSignature1() -> [Swift.UInt8] + public func setNodeSignature1(val: [Swift.UInt8]) + public func getNodeSignature2() -> [Swift.UInt8] + public func setNodeSignature2(val: [Swift.UInt8]) + public func getBitcoinSignature1() -> [Swift.UInt8] + public func setBitcoinSignature1(val: [Swift.UInt8]) + public func getBitcoinSignature2() -> [Swift.UInt8] + public func setBitcoinSignature2(val: [Swift.UInt8]) + public func getContents() -> LightningDevKit.Bindings.UnsignedChannelAnnouncement + public func setContents(val: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public init(nodeSignature1Arg: [Swift.UInt8], nodeSignature2Arg: [Swift.UInt8], bitcoinSignature1Arg: [Swift.UInt8], bitcoinSignature2Arg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedChannelAnnouncement) + public class func eq(a: LightningDevKit.Bindings.ChannelAnnouncement, b: LightningDevKit.Bindings.ChannelAnnouncement) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelAnnouncementDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxAckRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ +public typealias ChannelMonitorUpdateStatus = LightningDevKit.Bindings.ChannelMonitorUpdateStatus extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxAckRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + public enum ChannelMonitorUpdateStatus { + case Completed + case InProgress + case UnrecoverableError + public static func == (a: LightningDevKit.Bindings.ChannelMonitorUpdateStatus, b: LightningDevKit.Bindings.ChannelMonitorUpdateStatus) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } +} +public typealias TxAckRbf = LightningDevKit.Bindings.TxAckRbf +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class TxAckRbf : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxAckRbf) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxAckRbf? + public func getChannelId() -> [Swift.UInt8]? + public func setChannelId(val: [Swift.UInt8]) + public func getFundingOutputContribution() -> Swift.Int64? + public func setFundingOutputContribution(val: Swift.Int64?) + public init(channelIdArg: [Swift.UInt8], fundingOutputContributionArg: Swift.Int64?) + public class func eq(a: LightningDevKit.Bindings.TxAckRbf, b: LightningDevKit.Bindings.TxAckRbf) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxAckRbfDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias DirectedChannelTransactionParameters = LightningDevKit.Bindings.DirectedChannelTransactionParameters +public typealias HTLCDestination = LightningDevKit.Bindings.HTLCDestination extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelTransactionParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HTLCDestination : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func broadcasterPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func countersignatoryPubkeys() -> LightningDevKit.Bindings.ChannelPublicKeys - public func contestDelay() -> Swift.UInt16 - public func isOutbound() -> Swift.Bool - public func fundingOutpoint() -> LightningDevKit.Bindings.OutPoint - public func channelTypeFeatures() -> LightningDevKit.Bindings.ChannelTypeFeatures - public func isOwned() -> Swift.Bool + public enum HTLCDestinationType { + case NextHopChannel + case UnknownNextHop + case InvalidForward + case FailedPayment + public static func == (a: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType, b: LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType + public class func initWithNextHopChannel(nodeId: [Swift.UInt8], channelId: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithUnknownNextHop(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithInvalidForward(requestedForwardScid: Swift.UInt64) -> LightningDevKit.Bindings.HTLCDestination + public class func initWithFailedPayment(paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.HTLCDestination + public class func eq(a: LightningDevKit.Bindings.HTLCDestination, b: LightningDevKit.Bindings.HTLCDestination) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_COption_HTLCDestinationZDecodeErrorZ + public func getValueAsNextHopChannel() -> LightningDevKit.Bindings.HTLCDestination.NextHopChannel? + public func getValueAsUnknownNextHop() -> LightningDevKit.Bindings.HTLCDestination.UnknownNextHop? + public func getValueAsInvalidForward() -> LightningDevKit.Bindings.HTLCDestination.InvalidForward? + public func getValueAsFailedPayment() -> LightningDevKit.Bindings.HTLCDestination.FailedPayment? @objc deinit + @_hasMissingDesignatedInitializers public class NextHopChannel : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func getChannelId() -> [Swift.UInt8] + @objc deinit + } + @_hasMissingDesignatedInitializers public class UnknownNextHop : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class InvalidForward : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getRequestedForwardScid() -> Swift.UInt64 + @objc deinit + } + @_hasMissingDesignatedInitializers public class FailedPayment : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getPaymentHash() -> [Swift.UInt8] + @objc deinit + } } } -public typealias Result_PaymentSecretNoneZ = LightningDevKit.Bindings.Result_PaymentSecretNoneZ +public typealias Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ = LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PaymentSecretNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PaymentSecretNoneZ + public class func initWithOk(o: ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.SendError? + public func getValue() -> ([Swift.UInt8], LightningDevKit.Bindings.OnionMessage)? @objc deinit } } -public typealias ChannelDetails = LightningDevKit.Bindings.ChannelDetails +public typealias CoinSelectionSource = LightningDevKit.Bindings.CoinSelectionSource extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class ChannelDetails : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers open class CoinSelectionSource : LightningDevKit.NativeTraitWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChannelId() -> [Swift.UInt8]? - public func setChannelId(val: [Swift.UInt8]) - public func getCounterparty() -> LightningDevKit.Bindings.ChannelCounterparty - public func setCounterparty(val: LightningDevKit.Bindings.ChannelCounterparty) - public func getFundingTxo() -> LightningDevKit.Bindings.OutPoint? - public func setFundingTxo(val: LightningDevKit.Bindings.OutPoint) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public func getShortChannelId() -> Swift.UInt64? - public func setShortChannelId(val: Swift.UInt64?) - public func getOutboundScidAlias() -> Swift.UInt64? - public func setOutboundScidAlias(val: Swift.UInt64?) - public func getInboundScidAlias() -> Swift.UInt64? - public func setInboundScidAlias(val: Swift.UInt64?) - public func getChannelValueSatoshis() -> Swift.UInt64 - public func setChannelValueSatoshis(val: Swift.UInt64) - public func getUnspendablePunishmentReserve() -> Swift.UInt64? - public func setUnspendablePunishmentReserve(val: Swift.UInt64?) - public func getUserChannelId() -> [Swift.UInt8] - public func setUserChannelId(val: [Swift.UInt8]) - public func getFeerateSatPer1000Weight() -> Swift.UInt32? - public func setFeerateSatPer1000Weight(val: Swift.UInt32?) - public func getBalanceMsat() -> Swift.UInt64 - public func setBalanceMsat(val: Swift.UInt64) - public func getOutboundCapacityMsat() -> Swift.UInt64 - public func setOutboundCapacityMsat(val: Swift.UInt64) - public func getNextOutboundHtlcLimitMsat() -> Swift.UInt64 - public func setNextOutboundHtlcLimitMsat(val: Swift.UInt64) - public func getNextOutboundHtlcMinimumMsat() -> Swift.UInt64 - public func setNextOutboundHtlcMinimumMsat(val: Swift.UInt64) - public func getInboundCapacityMsat() -> Swift.UInt64 - public func setInboundCapacityMsat(val: Swift.UInt64) - public func getConfirmationsRequired() -> Swift.UInt32? - public func setConfirmationsRequired(val: Swift.UInt32?) - public func getConfirmations() -> Swift.UInt32? - public func setConfirmations(val: Swift.UInt32?) - public func getForceCloseSpendDelay() -> Swift.UInt16? - public func setForceCloseSpendDelay(val: Swift.UInt16?) - public func getIsOutbound() -> Swift.Bool - public func setIsOutbound(val: Swift.Bool) - public func getIsChannelReady() -> Swift.Bool - public func setIsChannelReady(val: Swift.Bool) - public func getChannelShutdownState() -> LightningDevKit.Bindings.ChannelShutdownState? - public func setChannelShutdownState(val: LightningDevKit.Bindings.ChannelShutdownState?) - public func getIsUsable() -> Swift.Bool - public func setIsUsable(val: Swift.Bool) - public func getIsPublic() -> Swift.Bool - public func setIsPublic(val: Swift.Bool) - public func getInboundHtlcMinimumMsat() -> Swift.UInt64? - public func setInboundHtlcMinimumMsat(val: Swift.UInt64?) - public func getInboundHtlcMaximumMsat() -> Swift.UInt64? - public func setInboundHtlcMaximumMsat(val: Swift.UInt64?) - public func getConfig() -> LightningDevKit.Bindings.ChannelConfig? - public func setConfig(val: LightningDevKit.Bindings.ChannelConfig) - public init(channelIdArg: [Swift.UInt8], counterpartyArg: LightningDevKit.Bindings.ChannelCounterparty, fundingTxoArg: LightningDevKit.Bindings.OutPoint, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures, shortChannelIdArg: Swift.UInt64?, outboundScidAliasArg: Swift.UInt64?, inboundScidAliasArg: Swift.UInt64?, channelValueSatoshisArg: Swift.UInt64, unspendablePunishmentReserveArg: Swift.UInt64?, userChannelIdArg: [Swift.UInt8], feerateSatPer1000WeightArg: Swift.UInt32?, balanceMsatArg: Swift.UInt64, outboundCapacityMsatArg: Swift.UInt64, nextOutboundHtlcLimitMsatArg: Swift.UInt64, nextOutboundHtlcMinimumMsatArg: Swift.UInt64, inboundCapacityMsatArg: Swift.UInt64, confirmationsRequiredArg: Swift.UInt32?, confirmationsArg: Swift.UInt32?, forceCloseSpendDelayArg: Swift.UInt16?, isOutboundArg: Swift.Bool, isChannelReadyArg: Swift.Bool, channelShutdownStateArg: LightningDevKit.Bindings.ChannelShutdownState?, isUsableArg: Swift.Bool, isPublicArg: Swift.Bool, inboundHtlcMinimumMsatArg: Swift.UInt64?, inboundHtlcMaximumMsatArg: Swift.UInt64?, configArg: LightningDevKit.Bindings.ChannelConfig) - public func getInboundPaymentScid() -> Swift.UInt64? - public func getOutboundPaymentScid() -> Swift.UInt64? - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelDetailsDecodeErrorZ - public func isOwned() -> Swift.Bool + public init() + open func selectConfirmedUtxos(claimId: [Swift.UInt8], mustSpend: [LightningDevKit.Bindings.Input], mustPayTo: [LightningDevKit.Bindings.TxOut], targetFeerateSatPer1000Weight: Swift.UInt32) -> LightningDevKit.Bindings.Result_CoinSelectionNoneZ + open func signTx(tx: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TransactionNoneZ @objc deinit } } -public typealias Result_PublicKeyErrorZ = LightningDevKit.Bindings.Result_PublicKeyErrorZ +public typealias Result_PaymentRelayDecodeErrorZ = LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PublicKeyErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PaymentRelayDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeyErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.PaymentRelay) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PaymentRelayDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.PaymentRelay? @objc deinit } } -public typealias MonitorUpdateId = LightningDevKit.Bindings.MonitorUpdateId +public typealias ParseOrSemanticError = LightningDevKit.Bindings.ParseOrSemanticError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MonitorUpdateId : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ParseOrSemanticError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MonitorUpdateId, b: LightningDevKit.Bindings.MonitorUpdateId) -> Swift.Bool - public func isOwned() -> Swift.Bool + public enum ParseOrSemanticErrorType { + case ParseError + case SemanticError + public static func == (a: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType, b: LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType + public class func initWithParseError(a: LightningDevKit.Bindings.Bolt11ParseError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func initWithSemanticError(a: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.ParseOrSemanticError + public class func eq(a: LightningDevKit.Bindings.ParseOrSemanticError, b: LightningDevKit.Bindings.ParseOrSemanticError) -> Swift.Bool + public func toStr() -> Swift.String + public func getValueAsParseError() -> LightningDevKit.Bindings.Bolt11ParseError? + public func getValueAsSemanticError() -> LightningDevKit.Bindings.Bolt11SemanticError? @objc deinit } } -public typealias HTLCUpdate = LightningDevKit.Bindings.HTLCUpdate +public typealias OfferFeatures = LightningDevKit.Bindings.OfferFeatures extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class HTLCUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OfferFeatures : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.HTLCUpdate, b: LightningDevKit.Bindings.HTLCUpdate) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HTLCUpdateDecodeErrorZ + public class func eq(a: LightningDevKit.Bindings.OfferFeatures, b: LightningDevKit.Bindings.OfferFeatures) -> Swift.Bool + public class func initWithEmpty() -> LightningDevKit.Bindings.OfferFeatures + public func requiresUnknownBitsFrom() -> Swift.Bool + public func requiresUnknownBits() -> Swift.Bool + public func setRequiredFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalFeatureBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ + public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentError = LightningDevKit.Bindings.PaymentError +public typealias SendError = LightningDevKit.Bindings.SendError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SendError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum PaymentErrorType { - case Invoice - case Sending - public static func == (a: LightningDevKit.Bindings.PaymentError.PaymentErrorType, b: LightningDevKit.Bindings.PaymentError.PaymentErrorType) -> Swift.Bool + public enum SendErrorType { + case Secp256k1 + case TooBigPacket + case TooFewBlindedHops + case InvalidFirstHop + case InvalidMessage + case BufferFull + case GetNodeIdFailed + case BlindedPathAdvanceFailed + public static func == (a: LightningDevKit.Bindings.SendError.SendErrorType, b: LightningDevKit.Bindings.SendError.SendErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.PaymentError.PaymentErrorType - public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.PaymentError - public class func initWithSending(a: LightningDevKit.Bindings.RetryableSendFailure) -> LightningDevKit.Bindings.PaymentError - public class func eq(a: LightningDevKit.Bindings.PaymentError, b: LightningDevKit.Bindings.PaymentError) -> Swift.Bool - public func getValueAsInvoice() -> Swift.String? - public func getValueAsSending() -> LightningDevKit.Bindings.RetryableSendFailure? + public func getValueType() -> LightningDevKit.Bindings.SendError.SendErrorType + public class func initWithSecp256k1(a: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.SendError + public class func initWithTooBigPacket() -> LightningDevKit.Bindings.SendError + public class func initWithTooFewBlindedHops() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidFirstHop() -> LightningDevKit.Bindings.SendError + public class func initWithInvalidMessage() -> LightningDevKit.Bindings.SendError + public class func initWithBufferFull() -> LightningDevKit.Bindings.SendError + public class func initWithGetNodeIdFailed() -> LightningDevKit.Bindings.SendError + public class func initWithBlindedPathAdvanceFailed() -> LightningDevKit.Bindings.SendError + public class func eq(a: LightningDevKit.Bindings.SendError, b: LightningDevKit.Bindings.SendError) -> Swift.Bool + public func getValueAsSecp256k1() -> LightningDevKit.Bindings.Secp256k1Error? @objc deinit } } -public typealias NodeAnnouncement = LightningDevKit.Bindings.NodeAnnouncement +public typealias Result_RouteHintDecodeErrorZ = LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeAnnouncement : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RouteHintDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSignature() -> [Swift.UInt8] - public func setSignature(val: [Swift.UInt8]) - public func getContents() -> LightningDevKit.Bindings.UnsignedNodeAnnouncement - public func setContents(val: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public init(signatureArg: [Swift.UInt8], contentsArg: LightningDevKit.Bindings.UnsignedNodeAnnouncement) - public class func eq(a: LightningDevKit.Bindings.NodeAnnouncement, b: LightningDevKit.Bindings.NodeAnnouncement) -> Swift.Bool - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeAnnouncementDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.RouteHint) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RouteHintDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.RouteHint? @objc deinit } } -public typealias Result_NodeAliasDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ +public typealias Result_VerifiedInvoiceRequestNoneZ = LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NodeAliasDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_VerifiedInvoiceRequestNoneZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.NodeAlias) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAliasDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.VerifiedInvoiceRequest) -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ + public class func initWithErr() -> LightningDevKit.Bindings.Result_VerifiedInvoiceRequestNoneZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.NodeAlias? + public func getValue() -> LightningDevKit.Bindings.VerifiedInvoiceRequest? @objc deinit } } -public typealias Result_NonePeerHandleErrorZ = LightningDevKit.Bindings.Result_NonePeerHandleErrorZ +public typealias Result_AnnouncementSignaturesDecodeErrorZ = LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePeerHandleErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_AnnouncementSignaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.PeerHandleError) -> LightningDevKit.Bindings.Result_NonePeerHandleErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.AnnouncementSignatures) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_AnnouncementSignaturesDecodeErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PeerHandleError? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.AnnouncementSignatures? @objc deinit } } -public typealias Result_BigSizeDecodeErrorZ = LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ +public typealias FundingCreated = LightningDevKit.Bindings.FundingCreated extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_BigSizeDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FundingCreated : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.BigSize) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_BigSizeDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.BigSize? + public func getTemporaryChannelId() -> [Swift.UInt8]? + public func setTemporaryChannelId(val: [Swift.UInt8]) + public func getFundingTxid() -> [Swift.UInt8]? + public func setFundingTxid(val: [Swift.UInt8]) + public func getFundingOutputIndex() -> Swift.UInt16 + public func setFundingOutputIndex(val: Swift.UInt16) + public func getSignature() -> [Swift.UInt8] + public func setSignature(val: [Swift.UInt8]) + public init(temporaryChannelIdArg: [Swift.UInt8], fundingTxidArg: [Swift.UInt8], fundingOutputIndexArg: Swift.UInt16, signatureArg: [Swift.UInt8]) + public class func eq(a: LightningDevKit.Bindings.FundingCreated, b: LightningDevKit.Bindings.FundingCreated) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_FundingCreatedDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_HTLCOutputInCommitmentDecodeErrorZ = LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ +public typealias Result_RefundBolt12ParseErrorZ = LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_HTLCOutputInCommitmentDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RefundBolt12ParseErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.HTLCOutputInCommitment) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_HTLCOutputInCommitmentDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.Refund) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Bolt12ParseError) -> LightningDevKit.Bindings.Result_RefundBolt12ParseErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.HTLCOutputInCommitment? + public func getError() -> LightningDevKit.Bindings.Bolt12ParseError? + public func getValue() -> LightningDevKit.Bindings.Refund? @objc deinit } } -public typealias Result_CounterpartyForwardingInfoDecodeErrorZ = LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ +public typealias Result_DelayedPaymentOutputDescriptorDecodeErrorZ = LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_CounterpartyForwardingInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.CounterpartyForwardingInfo) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_CounterpartyForwardingInfoDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_DelayedPaymentOutputDescriptorDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func getValue() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? @objc deinit } } -public typealias Result_UntrustedStringDecodeErrorZ = LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ +public typealias FailureCode = LightningDevKit.Bindings.FailureCode extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_UntrustedStringDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class FailureCode : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.UntrustedString) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UntrustedStringDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.UntrustedString? + public enum FailureCodeType { + case TemporaryNodeFailure + case RequiredNodeFeatureMissing + case IncorrectOrUnknownPaymentDetails + case InvalidOnionPayload + public static func == (a: LightningDevKit.Bindings.FailureCode.FailureCodeType, b: LightningDevKit.Bindings.FailureCode.FailureCodeType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.FailureCode.FailureCodeType + public class func initWithTemporaryNodeFailure() -> LightningDevKit.Bindings.FailureCode + public class func initWithRequiredNodeFeatureMissing() -> LightningDevKit.Bindings.FailureCode + public class func initWithIncorrectOrUnknownPaymentDetails() -> LightningDevKit.Bindings.FailureCode + public class func initWithInvalidOnionPayload(a: (Swift.UInt64, Swift.UInt16)?) -> LightningDevKit.Bindings.FailureCode + public func getValueAsInvalidOnionPayload() -> (Swift.UInt64, Swift.UInt16)?? @objc deinit } } -public typealias Result_TrustedCommitmentTransactionNoneZ = LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ +public typealias Bolt12Invoice = LightningDevKit.Bindings.Bolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TrustedCommitmentTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Bolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - @available(*, deprecated, message: "This method passes the following non-cloneable, but freeable objects by value: `o`.") - public class func initWithOk(o: LightningDevKit.Bindings.TrustedCommitmentTransaction) -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_TrustedCommitmentTransactionNoneZ - public func isOk() -> Swift.Bool - public func getValue() -> LightningDevKit.Bindings.TrustedCommitmentTransaction? + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] + public func signature() -> [Swift.UInt8] + public func signableHash() -> [Swift.UInt8] + public func verify(key: LightningDevKit.Bindings.ExpandedKey) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesNoneZ + public func write() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NonePaymentSendFailureZ = LightningDevKit.Bindings.Result_NonePaymentSendFailureZ +public typealias ClosingTransaction = LightningDevKit.Bindings.ClosingTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NonePaymentSendFailureZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ClosingTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public class func initWithErr(e: LightningDevKit.Bindings.PaymentSendFailure) -> LightningDevKit.Bindings.Result_NonePaymentSendFailureZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.PaymentSendFailure? + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.ClosingTransaction, b: LightningDevKit.Bindings.ClosingTransaction) -> Swift.Bool + public init(toHolderValueSat: Swift.UInt64, toCounterpartyValueSat: Swift.UInt64, toHolderScript: [Swift.UInt8], toCounterpartyScript: [Swift.UInt8], fundingOutpoint: LightningDevKit.Bindings.OutPoint) + public func trust() -> LightningDevKit.Bindings.TrustedClosingTransaction + public func verify(fundingOutpoint: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_TrustedClosingTransactionNoneZ + public func toHolderValueSat() -> Swift.UInt64 + public func toCounterpartyValueSat() -> Swift.UInt64 + public func toHolderScript() -> [Swift.UInt8] + public func toCounterpartyScript() -> [Swift.UInt8] + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PartiallySignedTransactionNoneZ = LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ +public typealias Result_NodeAnnouncementInfoDecodeErrorZ = LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PartiallySignedTransactionNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_NodeAnnouncementInfoDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_PartiallySignedTransactionNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.NodeAnnouncementInfo) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_NodeAnnouncementInfoDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> [Swift.UInt8]? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.NodeAnnouncementInfo? @objc deinit } } -public typealias RouteParameters = LightningDevKit.Bindings.RouteParameters +public typealias ChannelCounterparty = LightningDevKit.Bindings.ChannelCounterparty extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class ChannelCounterparty : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPaymentParams() -> LightningDevKit.Bindings.PaymentParameters - public func setPaymentParams(val: LightningDevKit.Bindings.PaymentParameters) - public func getFinalValueMsat() -> Swift.UInt64 - public func setFinalValueMsat(val: Swift.UInt64) - public init(paymentParamsArg: LightningDevKit.Bindings.PaymentParameters, finalValueMsatArg: Swift.UInt64) - public class func eq(a: LightningDevKit.Bindings.RouteParameters, b: LightningDevKit.Bindings.RouteParameters) -> Swift.Bool + public func getNodeId() -> [Swift.UInt8] + public func setNodeId(val: [Swift.UInt8]) + public func getFeatures() -> LightningDevKit.Bindings.InitFeatures + public func setFeatures(val: LightningDevKit.Bindings.InitFeatures) + public func getUnspendablePunishmentReserve() -> Swift.UInt64 + public func setUnspendablePunishmentReserve(val: Swift.UInt64) + public func getForwardingInfo() -> LightningDevKit.Bindings.CounterpartyForwardingInfo? + public func setForwardingInfo(val: LightningDevKit.Bindings.CounterpartyForwardingInfo) + public func getOutboundHtlcMinimumMsat() -> Swift.UInt64? + public func setOutboundHtlcMinimumMsat(val: Swift.UInt64?) + public func getOutboundHtlcMaximumMsat() -> Swift.UInt64? + public func setOutboundHtlcMaximumMsat(val: Swift.UInt64?) + public init(nodeIdArg: [Swift.UInt8], featuresArg: LightningDevKit.Bindings.InitFeatures, unspendablePunishmentReserveArg: Swift.UInt64, forwardingInfoArg: LightningDevKit.Bindings.CounterpartyForwardingInfo, outboundHtlcMinimumMsatArg: Swift.UInt64?, outboundHtlcMaximumMsatArg: Swift.UInt64?) public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteParametersDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ChannelCounterpartyDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -public typealias PaymentParameters = LightningDevKit.Bindings.PaymentParameters +public typealias UnsignedBolt12Invoice = LightningDevKit.Bindings.UnsignedBolt12Invoice extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class PaymentParameters : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class UnsignedBolt12Invoice : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getPayee() -> LightningDevKit.Bindings.Payee - public func setPayee(val: LightningDevKit.Bindings.Payee) - public func getExpiryTime() -> Swift.UInt64? - public func setExpiryTime(val: Swift.UInt64?) - public func getMaxTotalCltvExpiryDelta() -> Swift.UInt32 - public func setMaxTotalCltvExpiryDelta(val: Swift.UInt32) - public func getMaxPathCount() -> Swift.UInt8 - public func setMaxPathCount(val: Swift.UInt8) - public func getMaxChannelSaturationPowerOfHalf() -> Swift.UInt8 - public func setMaxChannelSaturationPowerOfHalf(val: Swift.UInt8) - public func getPreviouslyFailedChannels() -> [Swift.UInt64] - public func setPreviouslyFailedChannels(val: [Swift.UInt64]) - public init(payeeArg: LightningDevKit.Bindings.Payee, expiryTimeArg: Swift.UInt64?, maxTotalCltvExpiryDeltaArg: Swift.UInt32, maxPathCountArg: Swift.UInt8, maxChannelSaturationPowerOfHalfArg: Swift.UInt8, previouslyFailedChannelsArg: [Swift.UInt64]) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.PaymentParameters, b: LightningDevKit.Bindings.PaymentParameters) -> Swift.Bool + public func taggedHash() -> LightningDevKit.Bindings.TaggedHash + public func offerChains() -> [[Swift.UInt8]]? + public func chain() -> [Swift.UInt8] + public func metadata() -> [Swift.UInt8]? + public func amount() -> LightningDevKit.Bindings.Amount? + public func offerFeatures() -> LightningDevKit.Bindings.OfferFeatures? + public func description() -> LightningDevKit.Bindings.PrintableString + public func absoluteExpiry() -> Swift.UInt64? + public func issuer() -> LightningDevKit.Bindings.PrintableString? + public func messagePaths() -> [LightningDevKit.Bindings.BlindedPath] + public func supportedQuantity() -> LightningDevKit.Bindings.Quantity? + public func payerMetadata() -> [Swift.UInt8] + public func invoiceRequestFeatures() -> LightningDevKit.Bindings.InvoiceRequestFeatures + public func quantity() -> Swift.UInt64? + public func payerId() -> [Swift.UInt8] + public func payerNote() -> LightningDevKit.Bindings.PrintableString? + public func createdAt() -> Swift.UInt64 + public func relativeExpiry() -> Swift.UInt64 + public func isExpired() -> Swift.Bool + public func paymentHash() -> [Swift.UInt8] + public func amountMsats() -> Swift.UInt64 + public func invoiceFeatures() -> LightningDevKit.Bindings.Bolt12InvoiceFeatures + public func signingPubkey() -> [Swift.UInt8] public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8], arg: Swift.UInt32) -> LightningDevKit.Bindings.Result_PaymentParametersDecodeErrorZ - public class func initWithNodeId(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32) -> LightningDevKit.Bindings.PaymentParameters - public class func initForKeysend(payeePubkey: [Swift.UInt8], finalCltvExpiryDelta: Swift.UInt32, allowMpp: Swift.Bool) -> LightningDevKit.Bindings.PaymentParameters - public class func initWithBolt12Invoice(invoice: LightningDevKit.Bindings.Bolt12Invoice) -> LightningDevKit.Bindings.PaymentParameters public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ +public typealias Result_OnionMessageDecodeErrorZ = LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_OnionMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.OnionMessage) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OnionMessageDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? + public func getValue() -> LightningDevKit.Bindings.OnionMessage? @objc deinit } } -public typealias Result_FixedPenaltyScorerDecodeErrorZ = LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ +public typealias Result_CVec_StrZIOErrorZ = LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_FixedPenaltyScorerDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_CVec_StrZIOErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.FixedPenaltyScorer) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_FixedPenaltyScorerDecodeErrorZ + public class func initWithOk(o: [Swift.String]) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.IOError) -> LightningDevKit.Bindings.Result_CVec_StrZIOErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.FixedPenaltyScorer? - @objc deinit - } -} -public typealias DirectedChannelInfo = LightningDevKit.Bindings.DirectedChannelInfo -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class DirectedChannelInfo : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func channel() -> LightningDevKit.Bindings.ChannelInfo - public func htlcMaximumMsat() -> Swift.UInt64 - public func effectiveCapacity() -> LightningDevKit.Bindings.EffectiveCapacity - public func isOwned() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.IOError? + public func getValue() -> [Swift.String]? @objc deinit } } -public typealias OnionMessageHandler = LightningDevKit.Bindings.OnionMessageHandler +public typealias BlindedHop = LightningDevKit.Bindings.BlindedHop extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class OnionMessageHandler : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class BlindedHop : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(onionMessageProvider: LightningDevKit.Bindings.OnionMessageProvider) - open func handleOnionMessage(peerNodeId: [Swift.UInt8], msg: LightningDevKit.Bindings.OnionMessage) - open func peerConnected(theirNodeId: [Swift.UInt8], initArgument: LightningDevKit.Bindings.BindingsInit, inbound: Swift.Bool) -> LightningDevKit.Bindings.Result_NoneNoneZ - open func peerDisconnected(theirNodeId: [Swift.UInt8]) - open func providedNodeFeatures() -> LightningDevKit.Bindings.NodeFeatures - open func providedInitFeatures(theirNodeId: [Swift.UInt8]) -> LightningDevKit.Bindings.InitFeatures - public func getOnionMessageProvider() -> LightningDevKit.Bindings.OnionMessageProvider + public func getBlindedNodeId() -> [Swift.UInt8] + public func setBlindedNodeId(val: [Swift.UInt8]) + public func getEncryptedPayload() -> [Swift.UInt8] + public func setEncryptedPayload(val: [Swift.UInt8]) + public init(blindedNodeIdArg: [Swift.UInt8], encryptedPayloadArg: [Swift.UInt8]) + public func hash() -> Swift.UInt64 + public class func eq(a: LightningDevKit.Bindings.BlindedHop, b: LightningDevKit.Bindings.BlindedHop) -> Swift.Bool + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_BlindedHopDecodeErrorZ + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias TxIn = LightningDevKit.Bindings.TxIn +public typealias Result_Bolt11InvoiceFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class TxIn : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init(witness: [Swift.UInt8], scriptSig: [Swift.UInt8], sequence: Swift.UInt32, previousTxid: [Swift.UInt8], previousVout: Swift.UInt32) - public func getWitness() -> [Swift.UInt8] - public func getScriptSig() -> [Swift.UInt8] - public func getSequence() -> Swift.UInt32 - public func getPreviousTxid() -> [Swift.UInt8] - public func getPreviousVout() -> Swift.UInt32 + public class func initWithOk(o: LightningDevKit.Bindings.Bolt11InvoiceFeatures) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.Bolt11InvoiceFeatures? @objc deinit } } -public typealias Retry = LightningDevKit.Bindings.Retry +public typealias GraphSyncError = LightningDevKit.Bindings.GraphSyncError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Retry : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class GraphSyncError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum RetryType { - case Attempts - case Timeout - public static func == (a: LightningDevKit.Bindings.Retry.RetryType, b: LightningDevKit.Bindings.Retry.RetryType) -> Swift.Bool + public enum GraphSyncErrorType { + case DecodeError + case LightningError + public static func == (a: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType, b: LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { get } } - public func getValueType() -> LightningDevKit.Bindings.Retry.RetryType - public class func initWithAttempts(a: Swift.UInt) -> LightningDevKit.Bindings.Retry - public class func initWithTimeout(a: Swift.UInt64) -> LightningDevKit.Bindings.Retry - public class func eq(a: LightningDevKit.Bindings.Retry, b: LightningDevKit.Bindings.Retry) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func getValueAsAttempts() -> Swift.UInt? - public func getValueAsTimeout() -> Swift.UInt64? - @objc deinit - } -} -public typealias RoutingFees = LightningDevKit.Bindings.RoutingFees -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RoutingFees : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getBaseMsat() -> Swift.UInt32 - public func setBaseMsat(val: Swift.UInt32) - public func getProportionalMillionths() -> Swift.UInt32 - public func setProportionalMillionths(val: Swift.UInt32) - public init(baseMsatArg: Swift.UInt32, proportionalMillionthsArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.RoutingFees, b: LightningDevKit.Bindings.RoutingFees) -> Swift.Bool - public func hash() -> Swift.UInt64 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RoutingFeesDecodeErrorZ - public func isOwned() -> Swift.Bool + public func getValueType() -> LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType + public class func initWithDecodeError(a: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.GraphSyncError + public class func initWithLightningError(a: LightningDevKit.Bindings.LightningError) -> LightningDevKit.Bindings.GraphSyncError + public func getValueAsDecodeError() -> LightningDevKit.Bindings.DecodeError? + public func getValueAsLightningError() -> LightningDevKit.Bindings.LightningError? @objc deinit } } -public typealias RouteHintHop = LightningDevKit.Bindings.RouteHintHop +public typealias SpendableOutputDescriptor = LightningDevKit.Bindings.SpendableOutputDescriptor extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class RouteHintHop : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class SpendableOutputDescriptor : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getSrcNodeId() -> [Swift.UInt8] - public func setSrcNodeId(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getFees() -> LightningDevKit.Bindings.RoutingFees - public func setFees(val: LightningDevKit.Bindings.RoutingFees) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64? - public func setHtlcMinimumMsat(val: Swift.UInt64?) - public func getHtlcMaximumMsat() -> Swift.UInt64? - public func setHtlcMaximumMsat(val: Swift.UInt64?) - public init(srcNodeIdArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, feesArg: LightningDevKit.Bindings.RoutingFees, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64?, htlcMaximumMsatArg: Swift.UInt64?) + public enum SpendableOutputDescriptorType { + case StaticOutput + case DelayedPaymentOutput + case StaticPaymentOutput + public static func == (a: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType, b: LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType + public class func initWithStaticOutput(outpoint: LightningDevKit.Bindings.OutPoint, output: LightningDevKit.Bindings.TxOut) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithDelayedPaymentOutput(a: LightningDevKit.Bindings.DelayedPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor + public class func initWithStaticPaymentOutput(a: LightningDevKit.Bindings.StaticPaymentOutputDescriptor) -> LightningDevKit.Bindings.SpendableOutputDescriptor public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.RouteHintHop, b: LightningDevKit.Bindings.RouteHintHop) -> Swift.Bool + public class func eq(a: LightningDevKit.Bindings.SpendableOutputDescriptor, b: LightningDevKit.Bindings.SpendableOutputDescriptor) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_RouteHintHopDecodeErrorZ - public func isOwned() -> Swift.Bool + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_SpendableOutputDescriptorDecodeErrorZ + public class func createSpendableOutputsPsbt(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_C2Tuple_CVec_u8ZusizeZNoneZ + public func getValueAsStaticOutput() -> LightningDevKit.Bindings.SpendableOutputDescriptor.StaticOutput? + public func getValueAsDelayedPaymentOutput() -> LightningDevKit.Bindings.DelayedPaymentOutputDescriptor? + public func getValueAsStaticPaymentOutput() -> LightningDevKit.Bindings.StaticPaymentOutputDescriptor? @objc deinit + @_hasMissingDesignatedInitializers public class StaticOutput : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getOutpoint() -> LightningDevKit.Bindings.OutPoint + public func getOutput() -> LightningDevKit.Bindings.TxOut + @objc deinit + } } } -public typealias Result_ChannelFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ +public typealias OnionMessageContents = LightningDevKit.Bindings.OnionMessageContents extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class OnionMessageContents : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelFeatures) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelFeaturesDecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelFeatures? + public enum OnionMessageContentsType { + case Offers + case Custom + public static func == (a: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType, b: LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType + public class func initWithOffers(a: LightningDevKit.Bindings.OffersMessage) -> LightningDevKit.Bindings.OnionMessageContents + public class func initWithCustom(a: LightningDevKit.Bindings.CustomOnionMessageContents) -> LightningDevKit.Bindings.OnionMessageContents + public func getValueAsOffers() -> LightningDevKit.Bindings.OffersMessage? + public func getValueAsCustom() -> LightningDevKit.Bindings.CustomOnionMessageContents? @objc deinit } } -public typealias Result_OutPointDecodeErrorZ = LightningDevKit.Bindings.Result_OutPointDecodeErrorZ +public typealias Result_ThirtyTwoBytesAPIErrorZ = LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OutPointDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ThirtyTwoBytesAPIErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OutPoint) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OutPointDecodeErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.Result_ThirtyTwoBytesAPIErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OutPoint? + public func getError() -> LightningDevKit.Bindings.APIError? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias QueryChannelRange = LightningDevKit.Bindings.QueryChannelRange +public typealias PhantomKeysManager = LightningDevKit.Bindings.PhantomKeysManager extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class QueryChannelRange : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PhantomKeysManager : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getFirstBlocknum() -> Swift.UInt32 - public func setFirstBlocknum(val: Swift.UInt32) - public func getNumberOfBlocks() -> Swift.UInt32 - public func setNumberOfBlocks(val: Swift.UInt32) - public init(chainHashArg: [Swift.UInt8], firstBlocknumArg: Swift.UInt32, numberOfBlocksArg: Swift.UInt32) - public class func eq(a: LightningDevKit.Bindings.QueryChannelRange, b: LightningDevKit.Bindings.QueryChannelRange) -> Swift.Bool - public func endBlocknum() -> Swift.UInt32 - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_QueryChannelRangeDecodeErrorZ + public func asEntropySource() -> LightningDevKit.Bindings.EntropySource + public func asNodeSigner() -> LightningDevKit.Bindings.NodeSigner + public func asSignerProvider() -> LightningDevKit.Bindings.SignerProvider + public init(seed: [Swift.UInt8], startingTimeSecs: Swift.UInt64, startingTimeNanos: Swift.UInt32, crossNodeSeed: [Swift.UInt8]) + public func spendSpendableOutputs(descriptors: [LightningDevKit.Bindings.SpendableOutputDescriptor], outputs: [LightningDevKit.Bindings.TxOut], changeDestinationScript: [Swift.UInt8], feerateSatPer1000Weight: Swift.UInt32, locktime: Swift.UInt32?) -> LightningDevKit.Bindings.Result_TransactionNoneZ + public func deriveChannelKeys(channelValueSatoshis: Swift.UInt64, params: [Swift.UInt8]) -> LightningDevKit.Bindings.InMemorySigner + public func getNodeSecretKey() -> [Swift.UInt8] + public func getPhantomNodeSecretKey() -> [Swift.UInt8] public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_NoneSendErrorZ = LightningDevKit.Bindings.Result_NoneSendErrorZ -extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_NoneSendErrorZ : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public class func initWithOk() -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.SendError) -> LightningDevKit.Bindings.Result_NoneSendErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.SendError? - @objc deinit - } -} -public typealias LockableScore = LightningDevKit.Bindings.LockableScore +public typealias LightningError = LightningDevKit.Bindings.LightningError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class LockableScore : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class LightningError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func lock() -> LightningDevKit.Bindings.Score + public func getErr() -> Swift.String + public func setErr(val: Swift.String) + public func getAction() -> LightningDevKit.Bindings.ErrorAction + public func setAction(val: LightningDevKit.Bindings.ErrorAction) + public init(errArg: Swift.String, actionArg: LightningDevKit.Bindings.ErrorAction) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias NodeFeatures = LightningDevKit.Bindings.NodeFeatures +public typealias Quantity = LightningDevKit.Bindings.Quantity extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class NodeFeatures : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Quantity : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func eq(a: LightningDevKit.Bindings.NodeFeatures, b: LightningDevKit.Bindings.NodeFeatures) -> Swift.Bool - public class func initWithEmpty() -> LightningDevKit.Bindings.NodeFeatures - public func requiresUnknownBitsFrom() -> Swift.Bool - public func requiresUnknownBits() -> Swift.Bool - public func setRequiredCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func setOptionalCustomBit(bit: Swift.UInt) -> LightningDevKit.Bindings.Result_NoneNoneZ - public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_NodeFeaturesDecodeErrorZ - public func setDataLossProtectOptional() - public func setDataLossProtectRequired() - public func supportsDataLossProtect() -> Swift.Bool - public func requiresDataLossProtect() -> Swift.Bool - public func setUpfrontShutdownScriptOptional() - public func setUpfrontShutdownScriptRequired() - public func supportsUpfrontShutdownScript() -> Swift.Bool - public func requiresUpfrontShutdownScript() -> Swift.Bool - public func setGossipQueriesOptional() - public func setGossipQueriesRequired() - public func supportsGossipQueries() -> Swift.Bool - public func requiresGossipQueries() -> Swift.Bool - public func setVariableLengthOnionOptional() - public func setVariableLengthOnionRequired() - public func supportsVariableLengthOnion() -> Swift.Bool - public func requiresVariableLengthOnion() -> Swift.Bool - public func setStaticRemoteKeyOptional() - public func setStaticRemoteKeyRequired() - public func supportsStaticRemoteKey() -> Swift.Bool - public func requiresStaticRemoteKey() -> Swift.Bool - public func setPaymentSecretOptional() - public func setPaymentSecretRequired() - public func supportsPaymentSecret() -> Swift.Bool - public func requiresPaymentSecret() -> Swift.Bool - public func setBasicMppOptional() - public func setBasicMppRequired() - public func supportsBasicMpp() -> Swift.Bool - public func requiresBasicMpp() -> Swift.Bool - public func setWumboOptional() - public func setWumboRequired() - public func supportsWumbo() -> Swift.Bool - public func requiresWumbo() -> Swift.Bool - public func setAnchorsNonzeroFeeHtlcTxOptional() - public func setAnchorsNonzeroFeeHtlcTxRequired() - public func supportsAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsNonzeroFeeHtlcTx() -> Swift.Bool - public func setAnchorsZeroFeeHtlcTxOptional() - public func setAnchorsZeroFeeHtlcTxRequired() - public func supportsAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func requiresAnchorsZeroFeeHtlcTx() -> Swift.Bool - public func setShutdownAnySegwitOptional() - public func setShutdownAnySegwitRequired() - public func supportsShutdownAnysegwit() -> Swift.Bool - public func requiresShutdownAnysegwit() -> Swift.Bool - public func setOnionMessagesOptional() - public func setOnionMessagesRequired() - public func supportsOnionMessages() -> Swift.Bool - public func requiresOnionMessages() -> Swift.Bool - public func setChannelTypeOptional() - public func setChannelTypeRequired() - public func supportsChannelType() -> Swift.Bool - public func requiresChannelType() -> Swift.Bool - public func setScidPrivacyOptional() - public func setScidPrivacyRequired() - public func supportsScidPrivacy() -> Swift.Bool - public func requiresScidPrivacy() -> Swift.Bool - public func setZeroConfOptional() - public func setZeroConfRequired() - public func supportsZeroConf() -> Swift.Bool - public func requiresZeroConf() -> Swift.Bool - public func setKeysendOptional() - public func setKeysendRequired() - public func supportsKeysend() -> Swift.Bool - public func requiresKeysend() -> Swift.Bool public func isOwned() -> Swift.Bool @objc deinit } } -public typealias UnsignedChannelUpdate = LightningDevKit.Bindings.UnsignedChannelUpdate +public typealias TxCreationKeys = LightningDevKit.Bindings.TxCreationKeys extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class UnsignedChannelUpdate : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class TxCreationKeys : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getChainHash() -> [Swift.UInt8]? - public func setChainHash(val: [Swift.UInt8]) - public func getShortChannelId() -> Swift.UInt64 - public func setShortChannelId(val: Swift.UInt64) - public func getTimestamp() -> Swift.UInt32 - public func setTimestamp(val: Swift.UInt32) - public func getFlags() -> Swift.UInt8 - public func setFlags(val: Swift.UInt8) - public func getCltvExpiryDelta() -> Swift.UInt16 - public func setCltvExpiryDelta(val: Swift.UInt16) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getHtlcMaximumMsat() -> Swift.UInt64 - public func setHtlcMaximumMsat(val: Swift.UInt64) - public func getFeeBaseMsat() -> Swift.UInt32 - public func setFeeBaseMsat(val: Swift.UInt32) - public func getFeeProportionalMillionths() -> Swift.UInt32 - public func setFeeProportionalMillionths(val: Swift.UInt32) - public func getExcessData() -> [Swift.UInt8] - public func setExcessData(val: [Swift.UInt8]) - public init(chainHashArg: [Swift.UInt8], shortChannelIdArg: Swift.UInt64, timestampArg: Swift.UInt32, flagsArg: Swift.UInt8, cltvExpiryDeltaArg: Swift.UInt16, htlcMinimumMsatArg: Swift.UInt64, htlcMaximumMsatArg: Swift.UInt64, feeBaseMsatArg: Swift.UInt32, feeProportionalMillionthsArg: Swift.UInt32, excessDataArg: [Swift.UInt8]) - public class func eq(a: LightningDevKit.Bindings.UnsignedChannelUpdate, b: LightningDevKit.Bindings.UnsignedChannelUpdate) -> Swift.Bool + public func getPerCommitmentPoint() -> [Swift.UInt8] + public func setPerCommitmentPoint(val: [Swift.UInt8]) + public func getRevocationKey() -> [Swift.UInt8] + public func setRevocationKey(val: [Swift.UInt8]) + public func getBroadcasterHtlcKey() -> [Swift.UInt8] + public func setBroadcasterHtlcKey(val: [Swift.UInt8]) + public func getCountersignatoryHtlcKey() -> [Swift.UInt8] + public func setCountersignatoryHtlcKey(val: [Swift.UInt8]) + public func getBroadcasterDelayedPaymentKey() -> [Swift.UInt8] + public func setBroadcasterDelayedPaymentKey(val: [Swift.UInt8]) + public class func initWith(perCommitmentPointArg: [Swift.UInt8], revocationKeyArg: [Swift.UInt8], broadcasterHtlcKeyArg: [Swift.UInt8], countersignatoryHtlcKeyArg: [Swift.UInt8], broadcasterDelayedPaymentKeyArg: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func eq(a: LightningDevKit.Bindings.TxCreationKeys, b: LightningDevKit.Bindings.TxCreationKeys) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_UnsignedChannelUpdateDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_TxCreationKeysDecodeErrorZ + public class func initWithDeriveNew(perCommitmentPoint: [Swift.UInt8], broadcasterDelayedPaymentBase: [Swift.UInt8], broadcasterHtlcBase: [Swift.UInt8], countersignatoryRevocationBase: [Swift.UInt8], countersignatoryHtlcBase: [Swift.UInt8]) -> LightningDevKit.Bindings.TxCreationKeys + public class func initWithChannelStaticKeys(perCommitmentPoint: [Swift.UInt8], broadcasterKeys: LightningDevKit.Bindings.ChannelPublicKeys, countersignatoryKeys: LightningDevKit.Bindings.ChannelPublicKeys) -> LightningDevKit.Bindings.TxCreationKeys public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_ChannelMonitorUpdateDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ +public typealias Result_StrSecp256k1ErrorZ = LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_ChannelMonitorUpdateDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_StrSecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.ChannelMonitorUpdate) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelMonitorUpdateDecodeErrorZ + public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StrSecp256k1ErrorZ public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.ChannelMonitorUpdate? + public func getError() -> LightningDevKit.Bindings.Secp256k1Error? + public func getValue() -> Swift.String? @objc deinit } } -public typealias MessageSendEventsProvider = LightningDevKit.Bindings.MessageSendEventsProvider +public typealias ProbingError = LightningDevKit.Bindings.ProbingError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers open class MessageSendEventsProvider : LightningDevKit.NativeTraitWrapper { + @_hasMissingDesignatedInitializers public class ProbingError : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public init() - open func getAndClearPendingMsgEvents() -> [LightningDevKit.Bindings.MessageSendEvent] + public enum ProbingErrorType { + case Invoice + case Sending + public static func == (a: LightningDevKit.Bindings.ProbingError.ProbingErrorType, b: LightningDevKit.Bindings.ProbingError.ProbingErrorType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.ProbingError.ProbingErrorType + public class func initWithInvoice(a: Swift.String) -> LightningDevKit.Bindings.ProbingError + public class func initWithSending(a: LightningDevKit.Bindings.ProbeSendFailure) -> LightningDevKit.Bindings.ProbingError + public class func eq(a: LightningDevKit.Bindings.ProbingError, b: LightningDevKit.Bindings.ProbingError) -> Swift.Bool + public func getValueAsInvoice() -> Swift.String? + public func getValueAsSending() -> LightningDevKit.Bindings.ProbeSendFailure? @objc deinit } } -public typealias Result_OpenChannelV2DecodeErrorZ = LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ +public typealias HolderCommitmentTransaction = LightningDevKit.Bindings.HolderCommitmentTransaction extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_OpenChannelV2DecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class HolderCommitmentTransaction : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.OpenChannelV2) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_OpenChannelV2DecodeErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.OpenChannelV2? + public func getCounterpartySig() -> [Swift.UInt8] + public func setCounterpartySig(val: [Swift.UInt8]) + public func getCounterpartyHtlcSigs() -> [[Swift.UInt8]] + public func setCounterpartyHtlcSigs(val: [[Swift.UInt8]]) + public func write() -> [Swift.UInt8] + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_HolderCommitmentTransactionDecodeErrorZ + public init(commitmentTx: LightningDevKit.Bindings.CommitmentTransaction, counterpartySig: [Swift.UInt8], counterpartyHtlcSigs: [[Swift.UInt8]], holderFundingKey: [Swift.UInt8], counterpartyFundingKey: [Swift.UInt8]) + public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_C2Tuple_PaymentHashPaymentSecretZNoneZ = LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ +public typealias Result_TxRemoveOutputDecodeErrorZ = LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_TxRemoveOutputDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: ([Swift.UInt8], [Swift.UInt8])) -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ - public class func initWithErr() -> LightningDevKit.Bindings.Result_C2Tuple_PaymentHashPaymentSecretZNoneZ + public class func initWithOk(o: LightningDevKit.Bindings.TxRemoveOutput) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxRemoveOutputDecodeErrorZ public func isOk() -> Swift.Bool - public func getValue() -> ([Swift.UInt8], [Swift.UInt8])? + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.TxRemoveOutput? @objc deinit } } -public typealias Result_Bolt11InvoiceBolt11SemanticErrorZ = LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ +public typealias PaymentSendFailure = LightningDevKit.Bindings.PaymentSendFailure extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_Bolt11InvoiceBolt11SemanticErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class PaymentSendFailure : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Bolt11Invoice) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Bolt11SemanticError) -> LightningDevKit.Bindings.Result_Bolt11InvoiceBolt11SemanticErrorZ - public func isOk() -> Swift.Bool - public func getError() -> LightningDevKit.Bindings.Bolt11SemanticError? - public func getValue() -> LightningDevKit.Bindings.Bolt11Invoice? + public enum PaymentSendFailureType { + case ParameterError + case PathParameterError + case AllFailedResendSafe + case DuplicatePayment + case PartialFailure + public static func == (a: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType, b: LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get + } + } + public func getValueType() -> LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType + public class func initWithParameterError(a: LightningDevKit.Bindings.APIError) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPathParameterError(a: [LightningDevKit.Bindings.Result_NoneAPIErrorZ]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithAllFailedResendSafe(a: [LightningDevKit.Bindings.APIError]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithDuplicatePayment() -> LightningDevKit.Bindings.PaymentSendFailure + public class func initWithPartialFailure(results: [LightningDevKit.Bindings.Result_NoneAPIErrorZ], failedPathsRetry: LightningDevKit.Bindings.RouteParameters, paymentId: [Swift.UInt8]) -> LightningDevKit.Bindings.PaymentSendFailure + public class func eq(a: LightningDevKit.Bindings.PaymentSendFailure, b: LightningDevKit.Bindings.PaymentSendFailure) -> Swift.Bool + public func getValueAsParameterError() -> LightningDevKit.Bindings.APIError? + public func getValueAsPathParameterError() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ]? + public func getValueAsAllFailedResendSafe() -> [LightningDevKit.Bindings.APIError]? + public func getValueAsPartialFailure() -> LightningDevKit.Bindings.PaymentSendFailure.PartialFailure? @objc deinit + @_hasMissingDesignatedInitializers public class PartialFailure : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getResults() -> [LightningDevKit.Bindings.Result_NoneAPIErrorZ] + public func getFailedPathsRetry() -> LightningDevKit.Bindings.RouteParameters + public func getPaymentId() -> [Swift.UInt8] + @objc deinit + } } } -public typealias MinFinalCltvExpiryDelta = LightningDevKit.Bindings.MinFinalCltvExpiryDelta +public typealias DefaultRouter = LightningDevKit.Bindings.DefaultRouter extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class MinFinalCltvExpiryDelta : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class DefaultRouter : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getA() -> Swift.UInt64 - public func setA(val: Swift.UInt64) - public init(aArg: Swift.UInt64) - public func hash() -> Swift.UInt64 - public class func eq(a: LightningDevKit.Bindings.MinFinalCltvExpiryDelta, b: LightningDevKit.Bindings.MinFinalCltvExpiryDelta) -> Swift.Bool + public init(networkGraph: LightningDevKit.Bindings.NetworkGraph, logger: LightningDevKit.Bindings.Logger, randomSeedBytes: [Swift.UInt8], scorer: LightningDevKit.Bindings.LockableScore, scoreParams: LightningDevKit.Bindings.ProbabilisticScoringFeeParameters) + public func asRouter() -> LightningDevKit.Bindings.Router public func isOwned() -> Swift.Bool @objc deinit } } -public typealias Result_PongDecodeErrorZ = LightningDevKit.Bindings.Result_PongDecodeErrorZ +public typealias Result_UpdateFulfillHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_PongDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_UpdateFulfillHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.Pong) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_PongDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.UpdateFulfillHTLC) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_UpdateFulfillHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.Pong? + public func getValue() -> LightningDevKit.Bindings.UpdateFulfillHTLC? @objc deinit } } -public typealias SignOrCreationError = LightningDevKit.Bindings.SignOrCreationError +public typealias Result_ChannelConfigDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class SignOrCreationError : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelConfigDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public enum SignOrCreationErrorType { - case SignError - case CreationError - public static func == (a: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType, b: LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType - public class func initWithSignError() -> LightningDevKit.Bindings.SignOrCreationError - public class func initWithCreationError(a: LightningDevKit.Bindings.CreationError) -> LightningDevKit.Bindings.SignOrCreationError - public class func eq(a: LightningDevKit.Bindings.SignOrCreationError, b: LightningDevKit.Bindings.SignOrCreationError) -> Swift.Bool - public func toStr() -> Swift.String - public func getValueAsCreationError() -> LightningDevKit.Bindings.CreationError? + public class func initWithOk(o: LightningDevKit.Bindings.ChannelConfig) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelConfigDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelConfig? @objc deinit } } -public typealias Balance = LightningDevKit.Bindings.Balance +public typealias IOError = LightningDevKit.Bindings.IOError extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Balance : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public enum BalanceType { - case ClaimableOnChannelClose - case ClaimableAwaitingConfirmations - case ContentiousClaimable - case MaybeTimeoutClaimableHTLC - case MaybePreimageClaimableHTLC - case CounterpartyRevokedOutputClaimable - public static func == (a: LightningDevKit.Bindings.Balance.BalanceType, b: LightningDevKit.Bindings.Balance.BalanceType) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { - get - } - } - public func getValueType() -> LightningDevKit.Bindings.Balance.BalanceType - public class func initWithClaimableOnChannelClose(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func initWithClaimableAwaitingConfirmations(amountSatoshis: Swift.UInt64, confirmationHeight: Swift.UInt32) -> LightningDevKit.Bindings.Balance - public class func initWithContentiousClaimable(amountSatoshis: Swift.UInt64, timeoutHeight: Swift.UInt32, paymentHash: [Swift.UInt8], paymentPreimage: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybeTimeoutClaimableHtlc(amountSatoshis: Swift.UInt64, claimableHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithMaybePreimageClaimableHtlc(amountSatoshis: Swift.UInt64, expiryHeight: Swift.UInt32, paymentHash: [Swift.UInt8]) -> LightningDevKit.Bindings.Balance - public class func initWithCounterpartyRevokedOutputClaimable(amountSatoshis: Swift.UInt64) -> LightningDevKit.Bindings.Balance - public class func eq(a: LightningDevKit.Bindings.Balance, b: LightningDevKit.Bindings.Balance) -> Swift.Bool - public func claimableAmountSatoshis() -> Swift.UInt64 - public func getValueAsClaimableOnChannelClose() -> LightningDevKit.Bindings.Balance.ClaimableOnChannelClose? - public func getValueAsClaimableAwaitingConfirmations() -> LightningDevKit.Bindings.Balance.ClaimableAwaitingConfirmations? - public func getValueAsContentiousClaimable() -> LightningDevKit.Bindings.Balance.ContentiousClaimable? - public func getValueAsMaybeTimeoutClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybeTimeoutClaimableHTLC? - public func getValueAsMaybePreimageClaimableHtlc() -> LightningDevKit.Bindings.Balance.MaybePreimageClaimableHTLC? - public func getValueAsCounterpartyRevokedOutputClaimable() -> LightningDevKit.Bindings.Balance.CounterpartyRevokedOutputClaimable? - @objc deinit - @_hasMissingDesignatedInitializers public class ClaimableOnChannelClose : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ClaimableAwaitingConfirmations : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getConfirmationHeight() -> Swift.UInt32 - @objc deinit - } - @_hasMissingDesignatedInitializers public class ContentiousClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getTimeoutHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - public func getPaymentPreimage() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybeTimeoutClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getClaimableHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class MaybePreimageClaimableHTLC : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - public func getExpiryHeight() -> Swift.UInt32 - public func getPaymentHash() -> [Swift.UInt8] - @objc deinit - } - @_hasMissingDesignatedInitializers public class CounterpartyRevokedOutputClaimable : LightningDevKit.NativeTypeWrapper { - public static var enableDeinitLogging: Swift.Bool - public static var suspendFreedom: Swift.Bool - public func getAmountSatoshis() -> Swift.UInt64 - @objc deinit + public enum IOError { + case NotFound + case PermissionDenied + case ConnectionRefused + case ConnectionReset + case ConnectionAborted + case NotConnected + case AddrInUse + case AddrNotAvailable + case BrokenPipe + case AlreadyExists + case WouldBlock + case InvalidInput + case InvalidData + case TimedOut + case WriteZero + case Interrupted + case Other + case UnexpectedEof + public static func == (a: LightningDevKit.Bindings.IOError, b: LightningDevKit.Bindings.IOError) -> Swift.Bool + public func hash(into hasher: inout Swift.Hasher) + public var hashValue: Swift.Int { + get } } } -public typealias Result_WarningMessageDecodeErrorZ = LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ +public typealias Result_ClaimedHTLCDecodeErrorZ = LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_WarningMessageDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ClaimedHTLCDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.WarningMessage) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_WarningMessageDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.ClaimedHTLC) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ClaimedHTLCDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.WarningMessage? + public func getValue() -> LightningDevKit.Bindings.ClaimedHTLC? @objc deinit } } -public typealias Result_TxInitRbfDecodeErrorZ = LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ +public typealias Result_RecipientOnionFieldsDecodeErrorZ = LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_TxInitRbfDecodeErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_RecipientOnionFieldsDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: LightningDevKit.Bindings.TxInitRbf) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_TxInitRbfDecodeErrorZ + public class func initWithOk(o: LightningDevKit.Bindings.RecipientOnionFields) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_RecipientOnionFieldsDecodeErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.DecodeError? - public func getValue() -> LightningDevKit.Bindings.TxInitRbf? + public func getValue() -> LightningDevKit.Bindings.RecipientOnionFields? @objc deinit } } -public typealias Result_StringErrorZ = LightningDevKit.Bindings.Result_StringErrorZ +public typealias Result_PublicKeySecp256k1ErrorZ = LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class Result_StringErrorZ : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_PublicKeySecp256k1ErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public class func initWithOk(o: Swift.String) -> LightningDevKit.Bindings.Result_StringErrorZ - public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_StringErrorZ + public class func initWithOk(o: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.Secp256k1Error) -> LightningDevKit.Bindings.Result_PublicKeySecp256k1ErrorZ public func isOk() -> Swift.Bool public func getError() -> LightningDevKit.Bindings.Secp256k1Error? - public func getValue() -> Swift.String? + public func getValue() -> [Swift.UInt8]? @objc deinit } } -public typealias AcceptChannel = LightningDevKit.Bindings.AcceptChannel +public typealias Result_ChannelTypeFeaturesDecodeErrorZ = LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ extension LightningDevKit.Bindings { - @_hasMissingDesignatedInitializers public class AcceptChannel : LightningDevKit.NativeTypeWrapper { + @_hasMissingDesignatedInitializers public class Result_ChannelTypeFeaturesDecodeErrorZ : LightningDevKit.NativeTypeWrapper { public static var enableDeinitLogging: Swift.Bool public static var suspendFreedom: Swift.Bool - public func getTemporaryChannelId() -> [Swift.UInt8]? - public func setTemporaryChannelId(val: [Swift.UInt8]) - public func getDustLimitSatoshis() -> Swift.UInt64 - public func setDustLimitSatoshis(val: Swift.UInt64) - public func getMaxHtlcValueInFlightMsat() -> Swift.UInt64 - public func setMaxHtlcValueInFlightMsat(val: Swift.UInt64) - public func getChannelReserveSatoshis() -> Swift.UInt64 - public func setChannelReserveSatoshis(val: Swift.UInt64) - public func getHtlcMinimumMsat() -> Swift.UInt64 - public func setHtlcMinimumMsat(val: Swift.UInt64) - public func getMinimumDepth() -> Swift.UInt32 - public func setMinimumDepth(val: Swift.UInt32) - public func getToSelfDelay() -> Swift.UInt16 - public func setToSelfDelay(val: Swift.UInt16) - public func getMaxAcceptedHtlcs() -> Swift.UInt16 - public func setMaxAcceptedHtlcs(val: Swift.UInt16) - public func getFundingPubkey() -> [Swift.UInt8] - public func setFundingPubkey(val: [Swift.UInt8]) - public func getRevocationBasepoint() -> [Swift.UInt8] - public func setRevocationBasepoint(val: [Swift.UInt8]) - public func getPaymentPoint() -> [Swift.UInt8] - public func setPaymentPoint(val: [Swift.UInt8]) - public func getDelayedPaymentBasepoint() -> [Swift.UInt8] - public func setDelayedPaymentBasepoint(val: [Swift.UInt8]) - public func getHtlcBasepoint() -> [Swift.UInt8] - public func setHtlcBasepoint(val: [Swift.UInt8]) - public func getFirstPerCommitmentPoint() -> [Swift.UInt8] - public func setFirstPerCommitmentPoint(val: [Swift.UInt8]) - public func getShutdownScriptpubkey() -> [Swift.UInt8]? - public func setShutdownScriptpubkey(val: [Swift.UInt8]?) - public func getChannelType() -> LightningDevKit.Bindings.ChannelTypeFeatures? - public func setChannelType(val: LightningDevKit.Bindings.ChannelTypeFeatures) - public init(temporaryChannelIdArg: [Swift.UInt8], dustLimitSatoshisArg: Swift.UInt64, maxHtlcValueInFlightMsatArg: Swift.UInt64, channelReserveSatoshisArg: Swift.UInt64, htlcMinimumMsatArg: Swift.UInt64, minimumDepthArg: Swift.UInt32, toSelfDelayArg: Swift.UInt16, maxAcceptedHtlcsArg: Swift.UInt16, fundingPubkeyArg: [Swift.UInt8], revocationBasepointArg: [Swift.UInt8], paymentPointArg: [Swift.UInt8], delayedPaymentBasepointArg: [Swift.UInt8], htlcBasepointArg: [Swift.UInt8], firstPerCommitmentPointArg: [Swift.UInt8], shutdownScriptpubkeyArg: [Swift.UInt8]?, channelTypeArg: LightningDevKit.Bindings.ChannelTypeFeatures) - public class func eq(a: LightningDevKit.Bindings.AcceptChannel, b: LightningDevKit.Bindings.AcceptChannel) -> Swift.Bool + public class func initWithOk(o: LightningDevKit.Bindings.ChannelTypeFeatures) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public class func initWithErr(e: LightningDevKit.Bindings.DecodeError) -> LightningDevKit.Bindings.Result_ChannelTypeFeaturesDecodeErrorZ + public func isOk() -> Swift.Bool + public func getError() -> LightningDevKit.Bindings.DecodeError? + public func getValue() -> LightningDevKit.Bindings.ChannelTypeFeatures? + @objc deinit + } +} +public typealias ClosingSignedFeeRange = LightningDevKit.Bindings.ClosingSignedFeeRange +extension LightningDevKit.Bindings { + @_hasMissingDesignatedInitializers public class ClosingSignedFeeRange : LightningDevKit.NativeTypeWrapper { + public static var enableDeinitLogging: Swift.Bool + public static var suspendFreedom: Swift.Bool + public func getMinFeeSatoshis() -> Swift.UInt64 + public func setMinFeeSatoshis(val: Swift.UInt64) + public func getMaxFeeSatoshis() -> Swift.UInt64 + public func setMaxFeeSatoshis(val: Swift.UInt64) + public init(minFeeSatoshisArg: Swift.UInt64, maxFeeSatoshisArg: Swift.UInt64) + public class func eq(a: LightningDevKit.Bindings.ClosingSignedFeeRange, b: LightningDevKit.Bindings.ClosingSignedFeeRange) -> Swift.Bool public func write() -> [Swift.UInt8] - public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_AcceptChannelDecodeErrorZ + public class func read(ser: [Swift.UInt8]) -> LightningDevKit.Bindings.Result_ClosingSignedFeeRangeDecodeErrorZ public func isOwned() -> Swift.Bool @objc deinit } } -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} +extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} +extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} +extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} extension LightningDevKit.Bindings.Currency : Swift.Equatable {} extension LightningDevKit.Bindings.Currency : Swift.Hashable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} -extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbeSendFailure.ProbeSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} +extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Equatable {} extension LightningDevKit.Bindings.MessageSendEvent.MessageSendEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} -extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Equatable {} -extension LightningDevKit.Bindings.FailureCode : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} -extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} -extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} -extension LightningDevKit.Bindings.Network : Swift.Equatable {} -extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt12SemanticError : Swift.Hashable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddressParseError : Swift.Hashable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} +extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} +extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} extension LightningDevKit.Bindings.Level : Swift.Equatable {} extension LightningDevKit.Bindings.Level : Swift.Hashable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} -extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.OffersMessage.OffersMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentPurpose.PaymentPurposeType : Swift.Hashable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} -extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} -extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Equatable {} -extension LightningDevKit.Bindings.MaxDustHTLCExposure.MaxDustHTLCExposureType : Swift.Hashable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} +extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.Bolt11ParseError.Bolt11ParseErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Equatable {} -extension LightningDevKit.Bindings.SiPrefix : Swift.Hashable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} -extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} +extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} +extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Equatable {} +extension LightningDevKit.Bindings.ClosureReason.ClosureReasonType : Swift.Hashable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} +extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentFailureReason : Swift.Hashable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PathFailure.PathFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Equatable {} +extension LightningDevKit.Bindings.UnsignedGossipMessage.UnsignedGossipMessageType : Swift.Hashable {} extension LightningDevKit.Bindings.Recipient : Swift.Equatable {} extension LightningDevKit.Bindings.Recipient : Swift.Hashable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Equatable {} -extension LightningDevKit.Bindings.Payee.PayeeType : Swift.Hashable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} -extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.Bech32Error.Bech32ErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} -extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} -extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} -extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Equatable {} extension LightningDevKit.Bindings.NetworkUpdate.NetworkUpdateType : Swift.Hashable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} -extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Equatable {} -extension LightningDevKit.Bindings.Option_NoneZ : Swift.Hashable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} -extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Equatable {} -extension LightningDevKit.Bindings.Event.EventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} -extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Equatable {} -extension LightningDevKit.Bindings.RetryableSendFailure : Swift.Hashable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Equatable {} +extension LightningDevKit.Bindings.Secp256k1Error : Swift.Hashable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Equatable {} +extension LightningDevKit.Bindings.ConfirmationTarget : Swift.Hashable {} +extension LightningDevKit.Bindings.CreationError : Swift.Equatable {} +extension LightningDevKit.Bindings.CreationError : Swift.Hashable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Equatable {} extension LightningDevKit.Bindings.RecentPaymentDetails.RecentPaymentDetailsType : Swift.Hashable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Equatable {} -extension LightningDevKit.Bindings.EffectiveCapacity.EffectiveCapacityType : Swift.Hashable {} -extension LightningDevKit.Bindings.IOError : Swift.Equatable {} -extension LightningDevKit.Bindings.IOError : Swift.Hashable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Equatable {} -extension LightningDevKit.Bindings.MonitorEvent.MonitorEventType : Swift.Hashable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Equatable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.Hashable {} -extension LightningDevKit.Bindings.PrintSeverity : Swift.RawRepresentable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} -extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Equatable {} -extension LightningDevKit.Bindings.NetAddress.NetAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.Destination.DestinationType : Swift.Hashable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Equatable {} extension LightningDevKit.Bindings.ChannelShutdownState : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoResult.UtxoResultType : Swift.Hashable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Equatable {} +extension LightningDevKit.Bindings.BumpTransactionEvent.BumpTransactionEventType : Swift.Hashable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Equatable {} +extension LightningDevKit.Bindings.UtxoLookupError : Swift.Hashable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Equatable {} +extension LightningDevKit.Bindings.Fallback.FallbackType : Swift.Hashable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Equatable {} +extension LightningDevKit.Bindings.ErrorAction.ErrorActionType : Swift.Hashable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Equatable {} +extension LightningDevKit.Bindings.GossipSync.GossipSyncType : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCClaim : Swift.Hashable {} +extension LightningDevKit.Bindings.Network : Swift.Equatable {} +extension LightningDevKit.Bindings.Network : Swift.Hashable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Equatable {} +extension LightningDevKit.Bindings.Bolt11SemanticError : Swift.Hashable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.DecodeError.DecodeErrorType : Swift.Hashable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.PaymentError.PaymentErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Equatable {} -extension LightningDevKit.Bindings.Retry.RetryType : Swift.Hashable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Equatable {} extension LightningDevKit.Bindings.SignOrCreationError.SignOrCreationErrorType : Swift.Hashable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Equatable {} -extension LightningDevKit.Bindings.Balance.BalanceType : Swift.Hashable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.APIError.APIErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Equatable {} +extension LightningDevKit.Bindings.SocketAddress.SocketAddressType : Swift.Hashable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Equatable {} +extension LightningDevKit.Bindings.ChannelMonitorUpdateStatus : Swift.Hashable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Equatable {} +extension LightningDevKit.Bindings.HTLCDestination.HTLCDestinationType : Swift.Hashable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ParseOrSemanticError.ParseOrSemanticErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SendError.SendErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Equatable {} +extension LightningDevKit.Bindings.FailureCode.FailureCodeType : Swift.Hashable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.GraphSyncError.GraphSyncErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Equatable {} +extension LightningDevKit.Bindings.SpendableOutputDescriptor.SpendableOutputDescriptorType : Swift.Hashable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Equatable {} +extension LightningDevKit.Bindings.OnionMessageContents.OnionMessageContentsType : Swift.Hashable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Equatable {} +extension LightningDevKit.Bindings.ProbingError.ProbingErrorType : Swift.Hashable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Equatable {} +extension LightningDevKit.Bindings.PaymentSendFailure.PaymentSendFailureType : Swift.Hashable {} +extension LightningDevKit.Bindings.IOError : Swift.Equatable {} +extension LightningDevKit.Bindings.IOError : Swift.Hashable {} diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/_CodeSignature/CodeResources b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/_CodeSignature/CodeResources index 07e817a4..b3edea83 100644 --- a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/_CodeSignature/CodeResources +++ b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/LightningDevKit.framework/_CodeSignature/CodeResources @@ -18,67 +18,67 @@ Headers/ldk_rust_types.h - vJnyRQo2+dU7Yd0pe+Knn7vUB34= + KgA5Uz0moqOuevnRXpch2aXnYY4= Headers/ldk_ver.h - bpfnbzuF8unaIFqE/7kLn0R38q8= + fOejHsjSUbQ2xCSNSecFt+bE2h0= Headers/lightning.h - X/TSrzzFcqOW3I+j/eX/xtKCYiA= + X1v2ppmMBbMyoPPonP3XY5EqsRA= Info.plist - X9S3ShAnqYopZFwooskHtXQGyHk= + 9KNFTeUs+o/n7ckf9MG/9s7soXU= Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc - 6A5q+jGvxce8bHNs6F9bU3IFQfg= + RkgEBfIOVq3uhvxe/Lp5/h0SazE= Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface - LBj58HQu+DhYUTDWKEJQH896v3U= + vHsUvKceS720Ub2GcCkgopHvWfQ= Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule - Ye46ToA7ZCRsFRHhvefMwuRm6CQ= + YsJ/Ix1kCe/lobgJwVx2xbNU6Pw= Modules/LightningDevKit.swiftmodule/arm64.swiftdoc - 6A5q+jGvxce8bHNs6F9bU3IFQfg= + RkgEBfIOVq3uhvxe/Lp5/h0SazE= Modules/LightningDevKit.swiftmodule/arm64.swiftinterface - LBj58HQu+DhYUTDWKEJQH896v3U= + vHsUvKceS720Ub2GcCkgopHvWfQ= Modules/LightningDevKit.swiftmodule/arm64.swiftmodule - Ye46ToA7ZCRsFRHhvefMwuRm6CQ= + YsJ/Ix1kCe/lobgJwVx2xbNU6Pw= Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - fAUjmIFCD79Qgdk3JS4XNMMazyo= + sTVONwIQzR/9YWzzpDLi1TMIdB0= Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - kFW16pQt/TxOUX9Oqi6WebQPzDA= + Q4EHLrxYSyKX1vRz1Jj/I3uS2Rg= Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - MssmqDA/V5jA4Db+NeDlH2U/Pgs= + Txg8WHo+Y32v7F3A7iWSTk8wAM8= Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc - fAUjmIFCD79Qgdk3JS4XNMMazyo= + sTVONwIQzR/9YWzzpDLi1TMIdB0= Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface - kFW16pQt/TxOUX9Oqi6WebQPzDA= + Q4EHLrxYSyKX1vRz1Jj/I3uS2Rg= Modules/LightningDevKit.swiftmodule/x86_64.swiftmodule - MssmqDA/V5jA4Db+NeDlH2U/Pgs= + Txg8WHo+Y32v7F3A7iWSTk8wAM8= Modules/module.modulemap @@ -112,105 +112,105 @@ hash2 - 8ezTcJiXX+YTAZH6tT4zDZRD2Mg1RjM0Td0hG7tL7zs= + fD5mzOZhAYwlHZA4tv8hde0tZyvGZd++LBA/QPCWna0= Headers/ldk_ver.h hash2 - 7Dv7FYaF9c3ef/lNmdWGkUgfG0fedHEKmSbzFyl1FLw= + qTtG1jIXp+p72cUZAOYgC+7YpPdwR8F5IopcKjooA4c= Headers/lightning.h hash2 - J6fwKTWWIOxTDw1IEitIN0LloqKyCrrZhkzxvJ6D39Q= + SkeXp6JamgtBoB56uZfQ7tQdT5IvDH3XtLJhb89WUmM= Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc hash2 - 5fLU0wFiixmYu7lkIh8gjmfxNIaZB3zErwfXCz6fhwY= + suxfiYtdli47AFu86OKEMiWVBnBOQPM/egy34VGn+f8= Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash2 - rjUY/kYIgPrEX9erDGXy1/EXWWEsB+5u699xcw/mYsI= + ttNm9Rke9z32ShcAke42VEXO6reKQoKTiFgjFDygxRg= Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - lVHGHVImp91l4LHWgSxWboIgnximwTorMOoMnKuG/7I= + QS9omwk9OlvgRbY1wPmpUHf08W+0dh25fzExrBSyxmQ= Modules/LightningDevKit.swiftmodule/arm64.swiftdoc hash2 - 5fLU0wFiixmYu7lkIh8gjmfxNIaZB3zErwfXCz6fhwY= + suxfiYtdli47AFu86OKEMiWVBnBOQPM/egy34VGn+f8= Modules/LightningDevKit.swiftmodule/arm64.swiftinterface hash2 - rjUY/kYIgPrEX9erDGXy1/EXWWEsB+5u699xcw/mYsI= + ttNm9Rke9z32ShcAke42VEXO6reKQoKTiFgjFDygxRg= Modules/LightningDevKit.swiftmodule/arm64.swiftmodule hash2 - lVHGHVImp91l4LHWgSxWboIgnximwTorMOoMnKuG/7I= + QS9omwk9OlvgRbY1wPmpUHf08W+0dh25fzExrBSyxmQ= Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - br9ful9amGQw9+s5gQPoReRjW5W5d8zR8q/Ps82TsOs= + pSsMFS7SYd4ShduFBmMXpYjaOef3aN2ald+645wv22Q= Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash2 - Lp64OumK03QePkFgx2UeiRG9KT4qrJWA1GOvKFPd/mQ= + 4ZqqHiZbkCVO7sz9Xa5oAodRAe9dpNr8FEu9nY5/Qog= Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - 9Bf55GDSt0YIcL5r0BRSmvOIGlzkUOHs4+K0bm6Y2Oo= + XLvE7GijKXdArCDpHcCXaxK+95+MFB0Cp8M/vj68PfQ= Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc hash2 - br9ful9amGQw9+s5gQPoReRjW5W5d8zR8q/Ps82TsOs= + pSsMFS7SYd4ShduFBmMXpYjaOef3aN2ald+645wv22Q= Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface hash2 - Lp64OumK03QePkFgx2UeiRG9KT4qrJWA1GOvKFPd/mQ= + 4ZqqHiZbkCVO7sz9Xa5oAodRAe9dpNr8FEu9nY5/Qog= Modules/LightningDevKit.swiftmodule/x86_64.swiftmodule hash2 - 9Bf55GDSt0YIcL5r0BRSmvOIGlzkUOHs4+K0bm6Y2Oo= + XLvE7GijKXdArCDpHcCXaxK+95+MFB0Cp8M/vj68PfQ= Modules/module.modulemap diff --git a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit index 0c040f57..d364a591 100644 Binary files a/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit and b/lib/ios/LightningDevKit.xcframework/ios-arm64_x86_64-simulator/dSYMs/LightningDevKit.framework.dSYM/Contents/Resources/DWARF/LightningDevKit differ diff --git a/lib/package.json b/lib/package.json index d9fcd78e..0519631e 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,7 +1,7 @@ { "name": "@synonymdev/react-native-ldk", "title": "React Native LDK", - "version": "0.0.112", + "version": "0.0.113", "description": "React Native wrapper for LDK", "main": "./dist/index.js", "types": "./dist/index.d.ts",