diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..420fef5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## 0.3.1 - 2026-06-19 + +- Expose Trezor lock state through `TrezorFeatures.unlocked` so mobile apps can distinguish PIN protection from the current locked/unlocked session state. +- Add `trezor_refresh_features()` as an explicit one-shot refresh for fresh Trezor feature state without background polling. +- Surface busy Trezor transport state as `TrezorError::DeviceBusy` so mobile clients can back off while the device is busy or awaiting user action. diff --git a/Cargo.lock b/Cargo.lock index 7cf6b9d..4b327ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -475,7 +475,7 @@ dependencies = [ [[package]] name = "bitkitcore" -version = "0.3.0" +version = "0.3.1" dependencies = [ "android_logger", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 401cbe6..179ce39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitkitcore" -version = "0.3.0" +version = "0.3.1" edition = "2021" [lib] diff --git a/Package.swift b/Package.swift index fa412e3..68dc02d 100644 --- a/Package.swift +++ b/Package.swift @@ -3,8 +3,8 @@ import PackageDescription -let tag = "v0.3.0" -let checksum = "5a1850e4b5477ed2cb8f459efa9903395e2e76a1ba01905d20d72a3c5c3ff2d6" +let tag = "v0.3.1" +let checksum = "2c6f04dcd53ade9c276422fdb89373ef7c6dd922b7ceb16264eae47feef072cc" let url = "https://github.com/synonymdev/bitkit-core/releases/download/\(tag)/BitkitCore.xcframework.zip" let package = Package( diff --git a/bindings/android/gradle.properties b/bindings/android/gradle.properties index 0a1983b..c01f935 100644 --- a/bindings/android/gradle.properties +++ b/bindings/android/gradle.properties @@ -3,4 +3,4 @@ android.useAndroidX=true android.enableJetifier=true kotlin.code.style=official group=com.synonym -version=0.3.0 +version=0.3.1 diff --git a/bindings/android/lib/src/main/jniLibs/arm64-v8a/libbitkitcore.so b/bindings/android/lib/src/main/jniLibs/arm64-v8a/libbitkitcore.so index f9572ce..945687e 100755 Binary files a/bindings/android/lib/src/main/jniLibs/arm64-v8a/libbitkitcore.so and b/bindings/android/lib/src/main/jniLibs/arm64-v8a/libbitkitcore.so differ diff --git a/bindings/android/lib/src/main/jniLibs/armeabi-v7a/libbitkitcore.so b/bindings/android/lib/src/main/jniLibs/armeabi-v7a/libbitkitcore.so index 9cc3f0c..666b359 100755 Binary files a/bindings/android/lib/src/main/jniLibs/armeabi-v7a/libbitkitcore.so and b/bindings/android/lib/src/main/jniLibs/armeabi-v7a/libbitkitcore.so differ diff --git a/bindings/android/lib/src/main/jniLibs/x86/libbitkitcore.so b/bindings/android/lib/src/main/jniLibs/x86/libbitkitcore.so index 2651aa2..4e0326d 100755 Binary files a/bindings/android/lib/src/main/jniLibs/x86/libbitkitcore.so and b/bindings/android/lib/src/main/jniLibs/x86/libbitkitcore.so differ diff --git a/bindings/android/lib/src/main/jniLibs/x86_64/libbitkitcore.so b/bindings/android/lib/src/main/jniLibs/x86_64/libbitkitcore.so index 8a49b0b..41e04ed 100755 Binary files a/bindings/android/lib/src/main/jniLibs/x86_64/libbitkitcore.so and b/bindings/android/lib/src/main/jniLibs/x86_64/libbitkitcore.so differ diff --git a/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.android.kt b/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.android.kt index 2d2f9f2..1e1e1a2 100644 --- a/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.android.kt +++ b/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.android.kt @@ -437,11 +437,11 @@ internal open class UniffiForeignFutureStruct( @JvmField public var `free`: UniffiForeignFutureFree?, ) : com.sun.jna.Structure() { internal constructor(): this( - + `handle` = 0.toLong(), - + `free` = null, - + ) internal class UniffiByValue( @@ -468,11 +468,11 @@ internal open class UniffiForeignFutureStructU8Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.toByte(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -502,11 +502,11 @@ internal open class UniffiForeignFutureStructI8Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.toByte(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -536,11 +536,11 @@ internal open class UniffiForeignFutureStructU16Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.toShort(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -570,11 +570,11 @@ internal open class UniffiForeignFutureStructI16Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.toShort(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -604,11 +604,11 @@ internal open class UniffiForeignFutureStructU32Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0, - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -638,11 +638,11 @@ internal open class UniffiForeignFutureStructI32Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0, - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -672,11 +672,11 @@ internal open class UniffiForeignFutureStructU64Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.toLong(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -706,11 +706,11 @@ internal open class UniffiForeignFutureStructI64Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.toLong(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -740,11 +740,11 @@ internal open class UniffiForeignFutureStructF32Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.0f, - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -774,11 +774,11 @@ internal open class UniffiForeignFutureStructF64Struct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = 0.0, - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -808,11 +808,11 @@ internal open class UniffiForeignFutureStructPointerStruct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = NullPointer, - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -842,11 +842,11 @@ internal open class UniffiForeignFutureStructRustBufferStruct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `returnValue` = RustBufferHelper.allocValue(), - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -875,9 +875,9 @@ internal open class UniffiForeignFutureStructVoidStruct( @JvmField public var `callStatus`: UniffiRustCallStatusByValue, ) : com.sun.jna.Structure() { internal constructor(): this( - + `callStatus` = UniffiRustCallStatusHelper.allocValue(), - + ) internal class UniffiByValue( @@ -946,11 +946,11 @@ internal open class UniffiVTableCallbackInterfaceEventListenerStruct( @JvmField public var `uniffiFree`: UniffiCallbackInterfaceFree?, ) : com.sun.jna.Structure() { internal constructor(): this( - + `onEvent` = null, - + `uniffiFree` = null, - + ) internal class UniffiByValue( @@ -987,31 +987,31 @@ internal open class UniffiVTableCallbackInterfaceTrezorTransportCallbackStruct( @JvmField public var `uniffiFree`: UniffiCallbackInterfaceFree?, ) : com.sun.jna.Structure() { internal constructor(): this( - + `enumerateDevices` = null, - + `openDevice` = null, - + `closeDevice` = null, - + `readChunk` = null, - + `writeChunk` = null, - + `getChunkSize` = null, - + `callMessage` = null, - + `getPairingCode` = null, - + `saveThpCredential` = null, - + `loadThpCredential` = null, - + `logDebug` = null, - + `uniffiFree` = null, - + ) internal class UniffiByValue( @@ -1069,13 +1069,13 @@ internal open class UniffiVTableCallbackInterfaceTrezorUiCallbackStruct( @JvmField public var `uniffiFree`: UniffiCallbackInterfaceFree?, ) : com.sun.jna.Structure() { internal constructor(): this( - + `onPinRequest` = null, - + `onPassphraseRequest` = null, - + `uniffiFree` = null, - + ) internal class UniffiByValue( @@ -1481,6 +1481,8 @@ internal typealias UniffiVTableCallbackInterfaceTrezorUiCallbackUniffiByValue = + + @@ -1880,6 +1882,9 @@ internal object IntegrityCheckingUniffiLib : Library { if (uniffi_bitkitcore_checksum_func_trezor_list_devices() != 32859.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } + if (uniffi_bitkitcore_checksum_func_trezor_refresh_features() != 6918.toShort()) { + throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") + } if (uniffi_bitkitcore_checksum_func_trezor_scan() != 54763.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } @@ -2361,6 +2366,9 @@ internal object IntegrityCheckingUniffiLib : Library { external fun uniffi_bitkitcore_checksum_func_trezor_list_devices( ): Short @JvmStatic + external fun uniffi_bitkitcore_checksum_func_trezor_refresh_features( + ): Short + @JvmStatic external fun uniffi_bitkitcore_checksum_func_trezor_scan( ): Short @JvmStatic @@ -3277,6 +3285,9 @@ internal object UniffiLib : Library { external fun uniffi_bitkitcore_fn_func_trezor_list_devices( ): Long @JvmStatic + external fun uniffi_bitkitcore_fn_func_trezor_refresh_features( + ): Long + @JvmStatic external fun uniffi_bitkitcore_fn_func_trezor_scan( ): Long @JvmStatic @@ -4071,7 +4082,7 @@ public open class EventListenerImpl: Disposable, EventListener { }!! } - + /** * Called when a watcher event occurs. * @@ -4092,13 +4103,13 @@ public open class EventListenerImpl: Disposable, EventListener { } + + - - - - + + public companion object - + } @@ -4287,7 +4298,7 @@ public open class TrezorTransportCallbackImpl: Disposable, TrezorTransportCallba }!! } - + /** * Enumerate all connected Trezor devices */ @@ -4502,13 +4513,13 @@ public open class TrezorTransportCallbackImpl: Disposable, TrezorTransportCallba } + + - - - - + + public companion object - + } @@ -4885,7 +4896,7 @@ public open class TrezorUiCallbackImpl: Disposable, TrezorUiCallback { }!! } - + /** * Called when the device requests a PIN. * @@ -4926,13 +4937,13 @@ public open class TrezorUiCallbackImpl: Disposable, TrezorUiCallback { } + + - - - - + + public companion object - + } @@ -7582,6 +7593,7 @@ public object FfiConverterTypeTrezorFeatures: FfiConverterRustBuffer TrezorException.DeviceNotFound() 3 -> TrezorException.DeviceDisconnected() - 4 -> TrezorException.ConnectionException( + 4 -> TrezorException.DeviceBusy() + 5 -> TrezorException.ConnectionException( FfiConverterString.read(buf), ) - 5 -> TrezorException.ProtocolException( + 6 -> TrezorException.ProtocolException( FfiConverterString.read(buf), ) - 6 -> TrezorException.PairingRequired() - 7 -> TrezorException.PairingFailed( + 7 -> TrezorException.PairingRequired() + 8 -> TrezorException.PairingFailed( FfiConverterString.read(buf), ) - 8 -> TrezorException.PinRequired() - 9 -> TrezorException.PinCancelled() - 10 -> TrezorException.InvalidPin() - 11 -> TrezorException.PassphraseRequired() - 12 -> TrezorException.PassphraseCancelled() - 13 -> TrezorException.UserCancelled() - 14 -> TrezorException.Timeout() - 15 -> TrezorException.InvalidPath( + 9 -> TrezorException.PinRequired() + 10 -> TrezorException.PinCancelled() + 11 -> TrezorException.InvalidPin() + 12 -> TrezorException.PassphraseRequired() + 13 -> TrezorException.PassphraseCancelled() + 14 -> TrezorException.UserCancelled() + 15 -> TrezorException.Timeout() + 16 -> TrezorException.InvalidPath( FfiConverterString.read(buf), ) - 16 -> TrezorException.DeviceException( + 17 -> TrezorException.DeviceException( FfiConverterString.read(buf), ) - 17 -> TrezorException.NotInitialized() - 18 -> TrezorException.NotConnected() - 19 -> TrezorException.SessionException( + 18 -> TrezorException.NotInitialized() + 19 -> TrezorException.NotConnected() + 20 -> TrezorException.SessionException( FfiConverterString.read(buf), ) - 20 -> TrezorException.IoException( + 21 -> TrezorException.IoException( FfiConverterString.read(buf), ) else -> throw RuntimeException("invalid error enum value, something is very wrong!!") @@ -10299,6 +10314,10 @@ public object FfiConverterTypeTrezorError : FfiConverterRustBuffer ( + // Add the size for the Int that specifies the variant plus the size needed for all fields + 4UL + ) is TrezorException.ConnectionException -> ( // Add the size for the Int that specifies the variant plus the size needed for all fields 4UL @@ -10392,78 +10411,82 @@ public object FfiConverterTypeTrezorError : FfiConverterRustBuffer { + is TrezorException.DeviceBusy -> { buf.putInt(4) + Unit + } + is TrezorException.ConnectionException -> { + buf.putInt(5) FfiConverterString.write(value.`errorDetails`, buf) Unit } is TrezorException.ProtocolException -> { - buf.putInt(5) + buf.putInt(6) FfiConverterString.write(value.`errorDetails`, buf) Unit } is TrezorException.PairingRequired -> { - buf.putInt(6) + buf.putInt(7) Unit } is TrezorException.PairingFailed -> { - buf.putInt(7) + buf.putInt(8) FfiConverterString.write(value.`errorDetails`, buf) Unit } is TrezorException.PinRequired -> { - buf.putInt(8) + buf.putInt(9) Unit } is TrezorException.PinCancelled -> { - buf.putInt(9) + buf.putInt(10) Unit } is TrezorException.InvalidPin -> { - buf.putInt(10) + buf.putInt(11) Unit } is TrezorException.PassphraseRequired -> { - buf.putInt(11) + buf.putInt(12) Unit } is TrezorException.PassphraseCancelled -> { - buf.putInt(12) + buf.putInt(13) Unit } is TrezorException.UserCancelled -> { - buf.putInt(13) + buf.putInt(14) Unit } is TrezorException.Timeout -> { - buf.putInt(14) + buf.putInt(15) Unit } is TrezorException.InvalidPath -> { - buf.putInt(15) + buf.putInt(16) FfiConverterString.write(value.`errorDetails`, buf) Unit } is TrezorException.DeviceException -> { - buf.putInt(16) + buf.putInt(17) FfiConverterString.write(value.`errorDetails`, buf) Unit } is TrezorException.NotInitialized -> { - buf.putInt(17) + buf.putInt(18) Unit } is TrezorException.NotConnected -> { - buf.putInt(18) + buf.putInt(19) Unit } is TrezorException.SessionException -> { - buf.putInt(19) + buf.putInt(20) FfiConverterString.write(value.`errorDetails`, buf) Unit } is TrezorException.IoException -> { - buf.putInt(20) + buf.putInt(21) FfiConverterString.write(value.`errorDetails`, buf) Unit } @@ -12953,7 +12976,7 @@ public suspend fun `approvePubkyAuth`(`authUrl`: kotlin.String, `secretKeyHex`: { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter PubkyExceptionErrorHandler, ) @@ -12970,7 +12993,7 @@ public suspend fun `blocktankRemoveAllCjitEntries`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -12987,7 +13010,7 @@ public suspend fun `blocktankRemoveAllOrders`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -13004,7 +13027,7 @@ public suspend fun `blocktankWipeAll`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -13051,7 +13074,7 @@ public suspend fun `cancelPubkyAuth`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter PubkyExceptionErrorHandler, ) @@ -14002,7 +14025,7 @@ public suspend fun `onchainStartWatcher`(`params`: WatcherParams, `listener`: Ev { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter AccountInfoExceptionErrorHandler, ) @@ -14129,7 +14152,7 @@ public suspend fun `pubkyPutWithSecretKey`(`secretKeyHex`: kotlin.String, `path` { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter PubkyExceptionErrorHandler, ) @@ -14148,7 +14171,7 @@ public suspend fun `pubkySessionDelete`(`sessionSecret`: kotlin.String, `path`: { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter PubkyExceptionErrorHandler, ) @@ -14186,7 +14209,7 @@ public suspend fun `pubkySessionPut`(`sessionSecret`: kotlin.String, `path`: kot { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter PubkyExceptionErrorHandler, ) @@ -14356,7 +14379,7 @@ public suspend fun `regtestMine`(`count`: kotlin.UInt?) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -14523,7 +14546,7 @@ public suspend fun `trezorClearCredentials`(`deviceId`: kotlin.String) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter TrezorExceptionErrorHandler, ) @@ -14572,7 +14595,7 @@ public suspend fun `trezorDisconnect`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter TrezorExceptionErrorHandler, ) @@ -14699,7 +14722,7 @@ public suspend fun `trezorInitialize`(`credentialPath`: kotlin.String?) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter TrezorExceptionErrorHandler, ) @@ -14774,6 +14797,29 @@ public suspend fun `trezorListDevices`(): List { ) } +/** + * Refresh features from the currently connected Trezor device. + * + * This performs a single explicit device request and updates the connected + * device's cached features. It does not start polling. Returns `NotConnected` + * if there is no connected device. + */ +@Throws(TrezorException::class, kotlin.coroutines.cancellation.CancellationException::class) +public suspend fun `trezorRefreshFeatures`(): TrezorFeatures { + return uniffiRustCallAsync( + UniffiLib.uniffi_bitkitcore_fn_func_trezor_refresh_features( + ), + { future, callback, continuation -> UniffiLib.ffi_bitkitcore_rust_future_poll_rust_buffer(future, callback, continuation) }, + { future, continuation -> UniffiLib.ffi_bitkitcore_rust_future_complete_rust_buffer(future, continuation) }, + { future -> UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer(future) }, + { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_rust_buffer(future) }, + // lift function + { FfiConverterTypeTrezorFeatures.lift(it) }, + // Error FFI converter + TrezorExceptionErrorHandler, + ) +} + /** * Scan for available Trezor devices (USB + Bluetooth). * @@ -14938,7 +14984,7 @@ public suspend fun `updateBlocktankUrl`(`newUrl`: kotlin.String) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -14976,7 +15022,7 @@ public suspend fun `upsertCjitEntries`(`entries`: List) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -15014,7 +15060,7 @@ public suspend fun `upsertInfo`(`info`: IBtInfo) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -15052,7 +15098,7 @@ public suspend fun `upsertOrders`(`orders`: List) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) diff --git a/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.common.kt b/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.common.kt index 3df8da3..b46a923 100644 --- a/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.common.kt +++ b/bindings/android/lib/src/main/kotlin/com/synonym/bitkitcore/bitkitcore.common.kt @@ -120,7 +120,7 @@ public object NoPointer * from xpub watchers. */ public interface EventListener { - + /** * Called when a watcher event occurs. * @@ -128,7 +128,7 @@ public interface EventListener { * `event` is a typed enum — no JSON parsing needed. */ public fun `onEvent`(`watcherId`: kotlin.String, `event`: WatcherEvent) - + public companion object } @@ -158,37 +158,37 @@ public interface EventListener { * Use IOKit/CoreBluetooth with same service/characteristic UUIDs. */ public interface TrezorTransportCallback { - + /** * Enumerate all connected Trezor devices */ public fun `enumerateDevices`(): List - + /** * Open a connection to a device */ public fun `openDevice`(`path`: kotlin.String): TrezorTransportWriteResult - + /** * Close the connection to a device */ public fun `closeDevice`(`path`: kotlin.String): TrezorTransportWriteResult - + /** * Read a chunk of data from the device */ public fun `readChunk`(`path`: kotlin.String): TrezorTransportReadResult - + /** * Write a chunk of data to the device */ public fun `writeChunk`(`path`: kotlin.String, `data`: kotlin.ByteArray): TrezorTransportWriteResult - + /** * Get the chunk size for a device (64 for USB, 244 for Bluetooth) */ public fun `getChunkSize`(`path`: kotlin.String): kotlin.UInt - + /** * High-level message call for BLE/THP devices. * @@ -205,7 +205,7 @@ public interface TrezorTransportCallback { * * `data` - Serialized protobuf message data */ public fun `callMessage`(`path`: kotlin.String, `messageType`: kotlin.UShort, `data`: kotlin.ByteArray): TrezorCallMessageResult? - + /** * Get pairing code from user during BLE THP pairing. * @@ -218,7 +218,7 @@ public interface TrezorTransportCallback { * Returns the 6-digit code as a string, or empty string to cancel. */ public fun `getPairingCode`(): kotlin.String - + /** * Save THP pairing credentials for a device. * @@ -232,7 +232,7 @@ public interface TrezorTransportCallback { * Returns true if credentials were saved successfully. */ public fun `saveThpCredential`(`deviceId`: kotlin.String, `credentialJson`: kotlin.String): kotlin.Boolean - + /** * Load THP pairing credentials for a device. * @@ -245,7 +245,7 @@ public interface TrezorTransportCallback { * Returns the JSON string containing ThpCredentials, or None if not found. */ public fun `loadThpCredential`(`deviceId`: kotlin.String): kotlin.String? - + /** * Log a debug message from the Rust THP handshake layer. * @@ -258,7 +258,7 @@ public interface TrezorTransportCallback { * * `message` - Human-readable debug message */ public fun `logDebug`(`tag`: kotlin.String, `message`: kotlin.String) - + public companion object } @@ -272,7 +272,7 @@ public interface TrezorTransportCallback { * input UI when the device requests it during operations like signing. */ public interface TrezorUiCallback { - + /** * Called when the device requests a PIN. * @@ -280,7 +280,7 @@ public interface TrezorUiCallback { * Return empty string to cancel. */ public fun `onPinRequest`(): kotlin.String - + /** * Called when the device requests a passphrase. * @@ -292,7 +292,7 @@ public interface TrezorUiCallback { * `OnDevice` (defer entry to the Trezor), or `Cancel`. */ public fun `onPassphraseRequest`(`onDevice`: kotlin.Boolean): PassphraseResponse - + public companion object } @@ -307,11 +307,11 @@ public data class AccountAddresses ( /** * Used receive addresses (have at least one transaction) */ - val `used`: List, + val `used`: List, /** * Unused receive addresses (no transactions yet) */ - val `unused`: List, + val `unused`: List, /** * Change addresses */ @@ -330,19 +330,19 @@ public data class AccountInfoResult ( /** * The account structure with addresses and UTXOs */ - val `account`: ComposeAccount, + val `account`: ComposeAccount, /** * Total confirmed balance in satoshis */ - val `balance`: kotlin.ULong, + val `balance`: kotlin.ULong, /** * Number of UTXOs */ - val `utxoCount`: kotlin.UInt, + val `utxoCount`: kotlin.UInt, /** * The detected or specified account type */ - val `accountType`: AccountType, + val `accountType`: AccountType, /** * The current blockchain tip height */ @@ -361,39 +361,39 @@ public data class AccountUtxo ( /** * Transaction ID (hex) */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * Output index */ - val `vout`: kotlin.UInt, + val `vout`: kotlin.UInt, /** * Amount in satoshis */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Block height where the UTXO was confirmed (0 if unconfirmed) */ - val `blockHeight`: kotlin.UInt, + val `blockHeight`: kotlin.UInt, /** * Address holding this UTXO */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * BIP32 derivation path (e.g., "m/84'/0'/0'/0/0") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Number of confirmations (0 if unconfirmed) */ - val `confirmations`: kotlin.UInt, + val `confirmations`: kotlin.UInt, /** * Whether this is a coinbase output */ - val `coinbase`: kotlin.Boolean, + val `coinbase`: kotlin.Boolean, /** * Whether this UTXO is owned by the account */ - val `own`: kotlin.Boolean, + val `own`: kotlin.Boolean, /** * Whether this UTXO must be included in the transaction */ @@ -406,8 +406,8 @@ public data class AccountUtxo ( @kotlinx.serialization.Serializable public data class ActivityTags ( - val `walletId`: kotlin.String, - val `activityId`: kotlin.String, + val `walletId`: kotlin.String, + val `activityId`: kotlin.String, val `tags`: List ) { public companion object @@ -423,11 +423,11 @@ public data class AddressInfo ( /** * The Bitcoin address */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * BIP32 derivation path */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Number of transfers (real count in `get_address_info`, 1/0 presence flag in `get_account_info`) */ @@ -440,9 +440,9 @@ public data class AddressInfo ( @kotlinx.serialization.Serializable public data class ChannelLiquidityOptions ( - val `defaultLspBalanceSat`: kotlin.ULong, - val `minLspBalanceSat`: kotlin.ULong, - val `maxLspBalanceSat`: kotlin.ULong, + val `defaultLspBalanceSat`: kotlin.ULong, + val `minLspBalanceSat`: kotlin.ULong, + val `maxLspBalanceSat`: kotlin.ULong, val `maxClientBalanceSat`: kotlin.ULong ) { public companion object @@ -452,10 +452,10 @@ public data class ChannelLiquidityOptions ( @kotlinx.serialization.Serializable public data class ChannelLiquidityParams ( - val `clientBalanceSat`: kotlin.ULong, - val `existingChannelsTotalSat`: kotlin.ULong, - val `minChannelSizeSat`: kotlin.ULong, - val `maxChannelSizeSat`: kotlin.ULong, + val `clientBalanceSat`: kotlin.ULong, + val `existingChannelsTotalSat`: kotlin.ULong, + val `minChannelSizeSat`: kotlin.ULong, + val `maxChannelSizeSat`: kotlin.ULong, val `satsPerEur`: kotlin.ULong ) { public companion object @@ -465,19 +465,19 @@ public data class ChannelLiquidityParams ( @kotlinx.serialization.Serializable public data class ClosedChannelDetails ( - val `channelId`: kotlin.String, - val `counterpartyNodeId`: kotlin.String, - val `fundingTxoTxid`: kotlin.String, - val `fundingTxoIndex`: kotlin.UInt, - val `channelValueSats`: kotlin.ULong, - val `closedAt`: kotlin.ULong, - val `outboundCapacityMsat`: kotlin.ULong, - val `inboundCapacityMsat`: kotlin.ULong, - val `counterpartyUnspendablePunishmentReserve`: kotlin.ULong, - val `unspendablePunishmentReserve`: kotlin.ULong, - val `forwardingFeeProportionalMillionths`: kotlin.UInt, - val `forwardingFeeBaseMsat`: kotlin.UInt, - val `channelName`: kotlin.String, + val `channelId`: kotlin.String, + val `counterpartyNodeId`: kotlin.String, + val `fundingTxoTxid`: kotlin.String, + val `fundingTxoIndex`: kotlin.UInt, + val `channelValueSats`: kotlin.ULong, + val `closedAt`: kotlin.ULong, + val `outboundCapacityMsat`: kotlin.ULong, + val `inboundCapacityMsat`: kotlin.ULong, + val `counterpartyUnspendablePunishmentReserve`: kotlin.ULong, + val `unspendablePunishmentReserve`: kotlin.ULong, + val `forwardingFeeProportionalMillionths`: kotlin.UInt, + val `forwardingFeeBaseMsat`: kotlin.UInt, + val `channelName`: kotlin.String, val `channelClosureReason`: kotlin.String ) { public companion object @@ -493,11 +493,11 @@ public data class ComposeAccount ( /** * Account derivation path (e.g., "m/84'/0'/0'") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Categorized addresses */ - val `addresses`: AccountAddresses, + val `addresses`: AccountAddresses, /** * Unspent transaction outputs */ @@ -516,15 +516,15 @@ public data class ComposeParams ( /** * Wallet configuration (key, server, network) */ - val `wallet`: WalletParams, + val `wallet`: WalletParams, /** * Desired transaction outputs */ - val `outputs`: List, + val `outputs`: List, /** * Fee rates to evaluate (sat/vB), one PSBT per rate */ - val `feeRates`: List, + val `feeRates`: List, /** * UTXO selection strategy (defaults to BranchAndBound) */ @@ -537,7 +537,7 @@ public data class ComposeParams ( @kotlinx.serialization.Serializable public data class CreateCjitOptions ( - val `source`: kotlin.String?, + val `source`: kotlin.String?, val `discountCode`: kotlin.String? ) { public companion object @@ -547,18 +547,18 @@ public data class CreateCjitOptions ( @kotlinx.serialization.Serializable public data class CreateOrderOptions ( - val `clientBalanceSat`: kotlin.ULong, - val `lspNodeId`: kotlin.String?, - val `couponCode`: kotlin.String, - val `source`: kotlin.String?, - val `discountCode`: kotlin.String?, - val `zeroConf`: kotlin.Boolean, - val `zeroConfPayment`: kotlin.Boolean?, - val `zeroReserve`: kotlin.Boolean, - val `clientNodeId`: kotlin.String?, - val `signature`: kotlin.String?, - val `timestamp`: kotlin.String?, - val `refundOnchainAddress`: kotlin.String?, + val `clientBalanceSat`: kotlin.ULong, + val `lspNodeId`: kotlin.String?, + val `couponCode`: kotlin.String, + val `source`: kotlin.String?, + val `discountCode`: kotlin.String?, + val `zeroConf`: kotlin.Boolean, + val `zeroConfPayment`: kotlin.Boolean?, + val `zeroReserve`: kotlin.Boolean, + val `clientNodeId`: kotlin.String?, + val `signature`: kotlin.String?, + val `timestamp`: kotlin.String?, + val `refundOnchainAddress`: kotlin.String?, val `announceChannel`: kotlin.Boolean ) { public companion object @@ -568,8 +568,8 @@ public data class CreateOrderOptions ( @kotlinx.serialization.Serializable public data class DefaultLspBalanceParams ( - val `clientBalanceSat`: kotlin.ULong, - val `maxChannelSizeSat`: kotlin.ULong, + val `clientBalanceSat`: kotlin.ULong, + val `maxChannelSizeSat`: kotlin.ULong, val `satsPerEur`: kotlin.ULong ) { public companion object @@ -588,8 +588,8 @@ public data class ErrorData ( @kotlinx.serialization.Serializable public data class FeeRates ( - val `fast`: kotlin.UInt, - val `mid`: kotlin.UInt, + val `fast`: kotlin.UInt, + val `mid`: kotlin.UInt, val `slow`: kotlin.UInt ) { public companion object @@ -599,7 +599,7 @@ public data class FeeRates ( @kotlinx.serialization.Serializable public data class FundingTx ( - val `id`: kotlin.String, + val `id`: kotlin.String, val `vout`: kotlin.ULong ) { public companion object @@ -612,11 +612,11 @@ public data class GetAddressResponse ( /** * The generated Bitcoin address as a string */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * The derivation path used to generate the address */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * The hexadecimal representation of the public key */ @@ -647,42 +647,42 @@ public data class HistoryTransaction ( /** * Transaction ID (hex) */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * Amount received by the wallet (sats) */ - val `received`: kotlin.ULong, + val `received`: kotlin.ULong, /** * Amount sent by the wallet (sats) — includes change sent back to self */ - val `sent`: kotlin.ULong, + val `sent`: kotlin.ULong, /** * Net value from wallet's perspective: received - sent (positive = inflow, negative = outflow) */ - val `net`: kotlin.Long, + val `net`: kotlin.Long, /** * Transaction fee in sats (None if not available, e.g. for received-only txs) */ - val `fee`: kotlin.ULong?, + val `fee`: kotlin.ULong?, /** * Display amount in sats: * - Received: the received value * - Sent: amount that left the wallet (sent - received - fee) * - SelfTransfer: the fee paid */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Transaction direction */ - val `direction`: TxDirection, + val `direction`: TxDirection, /** * Block height (None if unconfirmed/mempool) */ - val `blockHeight`: kotlin.UInt?, + val `blockHeight`: kotlin.UInt?, /** * Block timestamp as unix epoch seconds (None if unconfirmed) */ - val `timestamp`: kotlin.ULong?, + val `timestamp`: kotlin.ULong?, /** * Number of confirmations (0 if unconfirmed) */ @@ -695,7 +695,7 @@ public data class HistoryTransaction ( @kotlinx.serialization.Serializable public data class IBt0ConfMinTxFeeWindow ( - val `satPerVbyte`: kotlin.Double, + val `satPerVbyte`: kotlin.Double, val `validityEndsAt`: kotlin.String ) { public companion object @@ -705,9 +705,9 @@ public data class IBt0ConfMinTxFeeWindow ( @kotlinx.serialization.Serializable public data class IBtBolt11Invoice ( - val `request`: kotlin.String, - val `state`: BtBolt11InvoiceState, - val `expiresAt`: kotlin.String, + val `request`: kotlin.String, + val `state`: BtBolt11InvoiceState, + val `expiresAt`: kotlin.String, val `updatedAt`: kotlin.String ) { public companion object @@ -717,13 +717,13 @@ public data class IBtBolt11Invoice ( @kotlinx.serialization.Serializable public data class IBtChannel ( - val `state`: BtOpenChannelState, - val `lspNodePubkey`: kotlin.String, - val `clientNodePubkey`: kotlin.String, - val `announceChannel`: kotlin.Boolean, - val `fundingTx`: FundingTx, - val `closingTxId`: kotlin.String?, - val `close`: IBtChannelClose?, + val `state`: BtOpenChannelState, + val `lspNodePubkey`: kotlin.String, + val `clientNodePubkey`: kotlin.String, + val `announceChannel`: kotlin.Boolean, + val `fundingTx`: FundingTx, + val `closingTxId`: kotlin.String?, + val `close`: IBtChannelClose?, val `shortChannelId`: kotlin.String? ) { public companion object @@ -733,9 +733,9 @@ public data class IBtChannel ( @kotlinx.serialization.Serializable public data class IBtChannelClose ( - val `txId`: kotlin.String, - val `closeType`: kotlin.String, - val `initiator`: kotlin.String, + val `txId`: kotlin.String, + val `closeType`: kotlin.String, + val `initiator`: kotlin.String, val `registeredAt`: kotlin.String ) { public companion object @@ -745,7 +745,7 @@ public data class IBtChannelClose ( @kotlinx.serialization.Serializable public data class IBtEstimateFeeResponse ( - val `feeSat`: kotlin.ULong, + val `feeSat`: kotlin.ULong, val `min0ConfTxFee`: IBt0ConfMinTxFeeWindow ) { public companion object @@ -755,9 +755,9 @@ public data class IBtEstimateFeeResponse ( @kotlinx.serialization.Serializable public data class IBtEstimateFeeResponse2 ( - val `feeSat`: kotlin.ULong, - val `networkFeeSat`: kotlin.ULong, - val `serviceFeeSat`: kotlin.ULong, + val `feeSat`: kotlin.ULong, + val `networkFeeSat`: kotlin.ULong, + val `serviceFeeSat`: kotlin.ULong, val `min0ConfTxFee`: IBt0ConfMinTxFeeWindow ) { public companion object @@ -767,10 +767,10 @@ public data class IBtEstimateFeeResponse2 ( @kotlinx.serialization.Serializable public data class IBtInfo ( - val `version`: kotlin.UInt, - val `nodes`: List, - val `options`: IBtInfoOptions, - val `versions`: IBtInfoVersions, + val `version`: kotlin.UInt, + val `nodes`: List, + val `options`: IBtInfoOptions, + val `versions`: IBtInfoVersions, val `onchain`: IBtInfoOnchain ) { public companion object @@ -780,7 +780,7 @@ public data class IBtInfo ( @kotlinx.serialization.Serializable public data class IBtInfoOnchain ( - val `network`: BitcoinNetworkEnum, + val `network`: BitcoinNetworkEnum, val `feeRates`: FeeRates ) { public companion object @@ -790,13 +790,13 @@ public data class IBtInfoOnchain ( @kotlinx.serialization.Serializable public data class IBtInfoOptions ( - val `minChannelSizeSat`: kotlin.ULong, - val `maxChannelSizeSat`: kotlin.ULong, - val `minExpiryWeeks`: kotlin.UInt, - val `maxExpiryWeeks`: kotlin.UInt, - val `minPaymentConfirmations`: kotlin.UInt, - val `minHighRiskPaymentConfirmations`: kotlin.UInt, - val `max0ConfClientBalanceSat`: kotlin.ULong, + val `minChannelSizeSat`: kotlin.ULong, + val `maxChannelSizeSat`: kotlin.ULong, + val `minExpiryWeeks`: kotlin.UInt, + val `maxExpiryWeeks`: kotlin.UInt, + val `minPaymentConfirmations`: kotlin.UInt, + val `minHighRiskPaymentConfirmations`: kotlin.UInt, + val `max0ConfClientBalanceSat`: kotlin.ULong, val `maxClientBalanceSat`: kotlin.ULong ) { public companion object @@ -806,8 +806,8 @@ public data class IBtInfoOptions ( @kotlinx.serialization.Serializable public data class IBtInfoVersions ( - val `http`: kotlin.String, - val `btc`: kotlin.String, + val `http`: kotlin.String, + val `btc`: kotlin.String, val `ln2`: kotlin.String ) { public companion object @@ -817,13 +817,13 @@ public data class IBtInfoVersions ( @kotlinx.serialization.Serializable public data class IBtOnchainTransaction ( - val `amountSat`: kotlin.ULong, - val `txId`: kotlin.String, - val `vout`: kotlin.UInt, - val `blockHeight`: kotlin.UInt?, - val `blockConfirmationCount`: kotlin.UInt, - val `feeRateSatPerVbyte`: kotlin.Double, - val `confirmed`: kotlin.Boolean, + val `amountSat`: kotlin.ULong, + val `txId`: kotlin.String, + val `vout`: kotlin.UInt, + val `blockHeight`: kotlin.UInt?, + val `blockConfirmationCount`: kotlin.UInt, + val `feeRateSatPerVbyte`: kotlin.Double, + val `confirmed`: kotlin.Boolean, val `suspicious0ConfReason`: kotlin.String ) { public companion object @@ -833,9 +833,9 @@ public data class IBtOnchainTransaction ( @kotlinx.serialization.Serializable public data class IBtOnchainTransactions ( - val `address`: kotlin.String, - val `confirmedSat`: kotlin.ULong, - val `requiredConfirmations`: kotlin.UInt, + val `address`: kotlin.String, + val `confirmedSat`: kotlin.ULong, + val `requiredConfirmations`: kotlin.UInt, val `transactions`: List ) { public companion object @@ -845,28 +845,28 @@ public data class IBtOnchainTransactions ( @kotlinx.serialization.Serializable public data class IBtOrder ( - val `id`: kotlin.String, - val `state`: BtOrderState, - val `state2`: BtOrderState2?, - val `feeSat`: kotlin.ULong, - val `networkFeeSat`: kotlin.ULong, - val `serviceFeeSat`: kotlin.ULong, - val `lspBalanceSat`: kotlin.ULong, - val `clientBalanceSat`: kotlin.ULong, - val `zeroConf`: kotlin.Boolean, - val `zeroReserve`: kotlin.Boolean, - val `clientNodeId`: kotlin.String?, - val `channelExpiryWeeks`: kotlin.UInt, - val `channelExpiresAt`: kotlin.String, - val `orderExpiresAt`: kotlin.String, - val `channel`: IBtChannel?, - val `lspNode`: ILspNode?, - val `lnurl`: kotlin.String?, - val `payment`: IBtPayment?, - val `couponCode`: kotlin.String?, - val `source`: kotlin.String?, - val `discount`: IDiscount?, - val `updatedAt`: kotlin.String, + val `id`: kotlin.String, + val `state`: BtOrderState, + val `state2`: BtOrderState2?, + val `feeSat`: kotlin.ULong, + val `networkFeeSat`: kotlin.ULong, + val `serviceFeeSat`: kotlin.ULong, + val `lspBalanceSat`: kotlin.ULong, + val `clientBalanceSat`: kotlin.ULong, + val `zeroConf`: kotlin.Boolean, + val `zeroReserve`: kotlin.Boolean, + val `clientNodeId`: kotlin.String?, + val `channelExpiryWeeks`: kotlin.UInt, + val `channelExpiresAt`: kotlin.String, + val `orderExpiresAt`: kotlin.String, + val `channel`: IBtChannel?, + val `lspNode`: ILspNode?, + val `lnurl`: kotlin.String?, + val `payment`: IBtPayment?, + val `couponCode`: kotlin.String?, + val `source`: kotlin.String?, + val `discount`: IDiscount?, + val `updatedAt`: kotlin.String, val `createdAt`: kotlin.String ) { public companion object @@ -876,12 +876,12 @@ public data class IBtOrder ( @kotlinx.serialization.Serializable public data class IBtPayment ( - val `state`: BtPaymentState, - val `state2`: BtPaymentState2?, - val `paidSat`: kotlin.ULong, - val `bolt11Invoice`: IBtBolt11Invoice?, - val `onchain`: IBtOnchainTransactions?, - val `isManuallyPaid`: kotlin.Boolean?, + val `state`: BtPaymentState, + val `state2`: BtPaymentState2?, + val `paidSat`: kotlin.ULong, + val `bolt11Invoice`: IBtBolt11Invoice?, + val `onchain`: IBtOnchainTransactions?, + val `isManuallyPaid`: kotlin.Boolean?, val `manualRefunds`: List? ) { public companion object @@ -891,23 +891,23 @@ public data class IBtPayment ( @kotlinx.serialization.Serializable public data class IcJitEntry ( - val `id`: kotlin.String, - val `state`: CJitStateEnum, - val `feeSat`: kotlin.ULong, - val `networkFeeSat`: kotlin.ULong, - val `serviceFeeSat`: kotlin.ULong, - val `channelSizeSat`: kotlin.ULong, - val `channelExpiryWeeks`: kotlin.UInt, - val `channelOpenError`: kotlin.String?, - val `nodeId`: kotlin.String, - val `invoice`: IBtBolt11Invoice, - val `channel`: IBtChannel?, - val `lspNode`: ILspNode, - val `couponCode`: kotlin.String, - val `source`: kotlin.String?, - val `discount`: IDiscount?, - val `expiresAt`: kotlin.String, - val `updatedAt`: kotlin.String, + val `id`: kotlin.String, + val `state`: CJitStateEnum, + val `feeSat`: kotlin.ULong, + val `networkFeeSat`: kotlin.ULong, + val `serviceFeeSat`: kotlin.ULong, + val `channelSizeSat`: kotlin.ULong, + val `channelExpiryWeeks`: kotlin.UInt, + val `channelOpenError`: kotlin.String?, + val `nodeId`: kotlin.String, + val `invoice`: IBtBolt11Invoice, + val `channel`: IBtChannel?, + val `lspNode`: ILspNode, + val `couponCode`: kotlin.String, + val `source`: kotlin.String?, + val `discount`: IDiscount?, + val `expiresAt`: kotlin.String, + val `updatedAt`: kotlin.String, val `createdAt`: kotlin.String ) { public companion object @@ -917,9 +917,9 @@ public data class IcJitEntry ( @kotlinx.serialization.Serializable public data class IDiscount ( - val `code`: kotlin.String, - val `absoluteSat`: kotlin.ULong, - val `relative`: kotlin.Double, + val `code`: kotlin.String, + val `absoluteSat`: kotlin.ULong, + val `relative`: kotlin.Double, val `overallSat`: kotlin.ULong ) { public companion object @@ -929,15 +929,15 @@ public data class IDiscount ( @kotlinx.serialization.Serializable public data class IGift ( - val `id`: kotlin.String, - val `nodeId`: kotlin.String, - val `orderId`: kotlin.String?, - val `order`: IGiftOrder?, - val `bolt11PaymentId`: kotlin.String?, - val `bolt11Payment`: IGiftPayment?, - val `appliedGiftCodeId`: kotlin.String?, - val `appliedGiftCode`: IGiftCode?, - val `createdAt`: kotlin.String?, + val `id`: kotlin.String, + val `nodeId`: kotlin.String, + val `orderId`: kotlin.String?, + val `order`: IGiftOrder?, + val `bolt11PaymentId`: kotlin.String?, + val `bolt11Payment`: IGiftPayment?, + val `appliedGiftCodeId`: kotlin.String?, + val `appliedGiftCode`: IGiftCode?, + val `createdAt`: kotlin.String?, val `updatedAt`: kotlin.String? ) { public companion object @@ -947,16 +947,16 @@ public data class IGift ( @kotlinx.serialization.Serializable public data class IGiftBolt11Invoice ( - val `id`: kotlin.String, - val `request`: kotlin.String, - val `state`: kotlin.String, - val `isHodlInvoice`: kotlin.Boolean?, - val `paymentHash`: kotlin.String?, - val `amountSat`: kotlin.ULong?, - val `amountMsat`: kotlin.String?, - val `internalNodePubkey`: kotlin.String?, - val `updatedAt`: kotlin.String?, - val `createdAt`: kotlin.String?, + val `id`: kotlin.String, + val `request`: kotlin.String, + val `state`: kotlin.String, + val `isHodlInvoice`: kotlin.Boolean?, + val `paymentHash`: kotlin.String?, + val `amountSat`: kotlin.ULong?, + val `amountMsat`: kotlin.String?, + val `internalNodePubkey`: kotlin.String?, + val `updatedAt`: kotlin.String?, + val `createdAt`: kotlin.String?, val `expiresAt`: kotlin.String? ) { public companion object @@ -966,14 +966,14 @@ public data class IGiftBolt11Invoice ( @kotlinx.serialization.Serializable public data class IGiftBtcAddress ( - val `id`: kotlin.String, - val `address`: kotlin.String, - val `transactions`: List, - val `allTransactions`: List, - val `isBlacklisted`: kotlin.Boolean?, - val `watchUntil`: kotlin.String?, - val `watchForBlockConfirmations`: kotlin.UInt?, - val `updatedAt`: kotlin.String?, + val `id`: kotlin.String, + val `address`: kotlin.String, + val `transactions`: List, + val `allTransactions`: List, + val `isBlacklisted`: kotlin.Boolean?, + val `watchUntil`: kotlin.String?, + val `watchForBlockConfirmations`: kotlin.UInt?, + val `updatedAt`: kotlin.String?, val `createdAt`: kotlin.String? ) { public companion object @@ -983,13 +983,13 @@ public data class IGiftBtcAddress ( @kotlinx.serialization.Serializable public data class IGiftCode ( - val `id`: kotlin.String, - val `code`: kotlin.String, - val `createdAt`: kotlin.String, - val `updatedAt`: kotlin.String, - val `expiresAt`: kotlin.String, - val `giftSat`: kotlin.ULong?, - val `scope`: kotlin.String?, + val `id`: kotlin.String, + val `code`: kotlin.String, + val `createdAt`: kotlin.String, + val `updatedAt`: kotlin.String, + val `expiresAt`: kotlin.String, + val `giftSat`: kotlin.ULong?, + val `scope`: kotlin.String?, val `maxCount`: kotlin.UInt? ) { public companion object @@ -999,8 +999,8 @@ public data class IGiftCode ( @kotlinx.serialization.Serializable public data class IGiftLspNode ( - val `alias`: kotlin.String, - val `pubkey`: kotlin.String, + val `alias`: kotlin.String, + val `pubkey`: kotlin.String, val `connectionStrings`: List ) { public companion object @@ -1010,27 +1010,27 @@ public data class IGiftLspNode ( @kotlinx.serialization.Serializable public data class IGiftOrder ( - val `id`: kotlin.String, - val `state`: kotlin.String, - val `oldState`: kotlin.String?, - val `isChannelExpired`: kotlin.Boolean?, - val `isOrderExpired`: kotlin.Boolean?, - val `lspBalanceSat`: kotlin.ULong?, - val `clientBalanceSat`: kotlin.ULong?, - val `channelExpiryWeeks`: kotlin.UInt?, - val `zeroConf`: kotlin.Boolean?, - val `zeroReserve`: kotlin.Boolean?, - val `announced`: kotlin.Boolean?, - val `clientNodeId`: kotlin.String?, - val `channelExpiresAt`: kotlin.String?, - val `orderExpiresAt`: kotlin.String?, - val `feeSat`: kotlin.ULong?, - val `networkFeeSat`: kotlin.ULong?, - val `serviceFeeSat`: kotlin.ULong?, - val `payment`: IGiftPayment?, - val `lspNode`: IGiftLspNode?, - val `updatedAt`: kotlin.String?, - val `createdAt`: kotlin.String?, + val `id`: kotlin.String, + val `state`: kotlin.String, + val `oldState`: kotlin.String?, + val `isChannelExpired`: kotlin.Boolean?, + val `isOrderExpired`: kotlin.Boolean?, + val `lspBalanceSat`: kotlin.ULong?, + val `clientBalanceSat`: kotlin.ULong?, + val `channelExpiryWeeks`: kotlin.UInt?, + val `zeroConf`: kotlin.Boolean?, + val `zeroReserve`: kotlin.Boolean?, + val `announced`: kotlin.Boolean?, + val `clientNodeId`: kotlin.String?, + val `channelExpiresAt`: kotlin.String?, + val `orderExpiresAt`: kotlin.String?, + val `feeSat`: kotlin.ULong?, + val `networkFeeSat`: kotlin.ULong?, + val `serviceFeeSat`: kotlin.ULong?, + val `payment`: IGiftPayment?, + val `lspNode`: IGiftLspNode?, + val `updatedAt`: kotlin.String?, + val `createdAt`: kotlin.String?, val `nodeIdVerified`: kotlin.Boolean? ) { public companion object @@ -1040,25 +1040,25 @@ public data class IGiftOrder ( @kotlinx.serialization.Serializable public data class IGiftPayment ( - val `id`: kotlin.String, - val `state`: kotlin.String, - val `oldState`: kotlin.String?, - val `onchainState`: kotlin.String?, - val `lnState`: kotlin.String?, - val `paidOnchainSat`: kotlin.ULong?, - val `paidLnSat`: kotlin.ULong?, - val `paidSat`: kotlin.ULong?, - val `isOverpaid`: kotlin.Boolean?, - val `isRefunded`: kotlin.Boolean?, - val `overpaidAmountSat`: kotlin.ULong?, - val `requiredOnchainConfirmations`: kotlin.UInt?, - val `settlementState`: kotlin.String?, - val `expectedAmountSat`: kotlin.ULong?, - val `isManuallyPaid`: kotlin.Boolean?, - val `btcAddress`: IGiftBtcAddress?, - val `btcAddressId`: kotlin.String?, - val `bolt11Invoice`: IGiftBolt11Invoice?, - val `bolt11InvoiceId`: kotlin.String?, + val `id`: kotlin.String, + val `state`: kotlin.String, + val `oldState`: kotlin.String?, + val `onchainState`: kotlin.String?, + val `lnState`: kotlin.String?, + val `paidOnchainSat`: kotlin.ULong?, + val `paidLnSat`: kotlin.ULong?, + val `paidSat`: kotlin.ULong?, + val `isOverpaid`: kotlin.Boolean?, + val `isRefunded`: kotlin.Boolean?, + val `overpaidAmountSat`: kotlin.ULong?, + val `requiredOnchainConfirmations`: kotlin.UInt?, + val `settlementState`: kotlin.String?, + val `expectedAmountSat`: kotlin.ULong?, + val `isManuallyPaid`: kotlin.Boolean?, + val `btcAddress`: IGiftBtcAddress?, + val `btcAddressId`: kotlin.String?, + val `bolt11Invoice`: IGiftBolt11Invoice?, + val `bolt11InvoiceId`: kotlin.String?, val `manualRefunds`: List ) { public companion object @@ -1068,9 +1068,9 @@ public data class IGiftPayment ( @kotlinx.serialization.Serializable public data class ILspNode ( - val `alias`: kotlin.String, - val `pubkey`: kotlin.String, - val `connectionStrings`: List, + val `alias`: kotlin.String, + val `pubkey`: kotlin.String, + val `connectionStrings`: List, val `readonly`: kotlin.Boolean? ) { public companion object @@ -1080,12 +1080,12 @@ public data class ILspNode ( @kotlinx.serialization.Serializable public data class IManualRefund ( - val `amountSat`: kotlin.ULong, - val `target`: kotlin.String, - val `state`: ManualRefundStateEnum, - val `createdByName`: kotlin.String, - val `votedByName`: kotlin.String?, - val `reason`: kotlin.String?, + val `amountSat`: kotlin.ULong, + val `target`: kotlin.String, + val `state`: ManualRefundStateEnum, + val `createdByName`: kotlin.String, + val `votedByName`: kotlin.String?, + val `reason`: kotlin.String?, val `targetType`: kotlin.String ) { public companion object @@ -1098,7 +1098,7 @@ public data class LegacyRnCloseRecoveryScanResult ( /** * Total balance found in legacy RN P2WPKH close outputs (in satoshis). */ - val `totalAmount`: kotlin.ULong, + val `totalAmount`: kotlin.ULong, /** * Number of P2WPKH outputs found. */ @@ -1114,31 +1114,31 @@ public data class LegacyRnCloseRecoverySweepPreview ( /** * Fully signed raw sweep transaction hex. Broadcast only after user confirmation. */ - val `txHex`: kotlin.String, + val `txHex`: kotlin.String, /** * Transaction id of the sweep transaction. */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * Total input amount in satoshis. */ - val `totalAmount`: kotlin.ULong, + val `totalAmount`: kotlin.ULong, /** * Fee in satoshis. */ - val `estimatedFee`: kotlin.ULong, + val `estimatedFee`: kotlin.ULong, /** * Transaction virtual size in vbytes. */ - val `estimatedVsize`: kotlin.ULong, + val `estimatedVsize`: kotlin.ULong, /** * Number of recovered outputs swept. */ - val `outputsCount`: kotlin.UInt, + val `outputsCount`: kotlin.UInt, /** * Destination address receiving the sweep. */ - val `destinationAddress`: kotlin.String, + val `destinationAddress`: kotlin.String, /** * Amount sent to destination after fees. */ @@ -1151,19 +1151,19 @@ public data class LegacyRnCloseRecoverySweepPreview ( @kotlinx.serialization.Serializable public data class LightningActivity ( - val `walletId`: kotlin.String, - val `id`: kotlin.String, - val `txType`: PaymentType, - val `status`: PaymentState, - val `value`: kotlin.ULong, - val `fee`: kotlin.ULong?, - val `invoice`: kotlin.String, - val `message`: kotlin.String, - val `timestamp`: kotlin.ULong, - val `preimage`: kotlin.String?, - val `contact`: kotlin.String?, - val `createdAt`: kotlin.ULong?, - val `updatedAt`: kotlin.ULong?, + val `walletId`: kotlin.String, + val `id`: kotlin.String, + val `txType`: PaymentType, + val `status`: PaymentState, + val `value`: kotlin.ULong, + val `fee`: kotlin.ULong?, + val `invoice`: kotlin.String, + val `message`: kotlin.String, + val `timestamp`: kotlin.ULong, + val `preimage`: kotlin.String?, + val `contact`: kotlin.String?, + val `createdAt`: kotlin.ULong?, + val `updatedAt`: kotlin.ULong?, val `seenAt`: kotlin.ULong? ) { public companion object @@ -1173,14 +1173,14 @@ public data class LightningActivity ( @kotlinx.serialization.Serializable public data class LightningInvoice ( - val `bolt11`: kotlin.String, - val `paymentHash`: kotlin.ByteArray, - val `amountSatoshis`: kotlin.ULong, - val `timestampSeconds`: kotlin.ULong, - val `expirySeconds`: kotlin.ULong, - val `isExpired`: kotlin.Boolean, - val `description`: kotlin.String?, - val `networkType`: NetworkType, + val `bolt11`: kotlin.String, + val `paymentHash`: kotlin.ByteArray, + val `amountSatoshis`: kotlin.ULong, + val `timestampSeconds`: kotlin.ULong, + val `expirySeconds`: kotlin.ULong, + val `isExpired`: kotlin.Boolean, + val `description`: kotlin.String?, + val `networkType`: NetworkType, val `payeeNodeId`: kotlin.ByteArray? ) { override fun equals(other: Any?): Boolean { @@ -1222,8 +1222,8 @@ public data class LightningInvoice ( @kotlinx.serialization.Serializable public data class LnurlAddressData ( - val `uri`: kotlin.String, - val `domain`: kotlin.String, + val `uri`: kotlin.String, + val `domain`: kotlin.String, val `username`: kotlin.String ) { public companion object @@ -1233,9 +1233,9 @@ public data class LnurlAddressData ( @kotlinx.serialization.Serializable public data class LnurlAuthData ( - val `uri`: kotlin.String, - val `tag`: kotlin.String, - val `k1`: kotlin.String, + val `uri`: kotlin.String, + val `tag`: kotlin.String, + val `k1`: kotlin.String, val `domain`: kotlin.String ) { public companion object @@ -1245,9 +1245,9 @@ public data class LnurlAuthData ( @kotlinx.serialization.Serializable public data class LnurlChannelData ( - val `uri`: kotlin.String, - val `callback`: kotlin.String, - val `k1`: kotlin.String, + val `uri`: kotlin.String, + val `callback`: kotlin.String, + val `k1`: kotlin.String, val `tag`: kotlin.String ) { public companion object @@ -1257,13 +1257,13 @@ public data class LnurlChannelData ( @kotlinx.serialization.Serializable public data class LnurlPayData ( - val `uri`: kotlin.String, - val `callback`: kotlin.String, - val `minSendable`: kotlin.ULong, - val `maxSendable`: kotlin.ULong, - val `metadataStr`: kotlin.String, - val `commentAllowed`: kotlin.UInt?, - val `allowsNostr`: kotlin.Boolean, + val `uri`: kotlin.String, + val `callback`: kotlin.String, + val `minSendable`: kotlin.ULong, + val `maxSendable`: kotlin.ULong, + val `metadataStr`: kotlin.String, + val `commentAllowed`: kotlin.UInt?, + val `allowsNostr`: kotlin.Boolean, val `nostrPubkey`: kotlin.ByteArray? ) { override fun equals(other: Any?): Boolean { @@ -1303,12 +1303,12 @@ public data class LnurlPayData ( @kotlinx.serialization.Serializable public data class LnurlWithdrawData ( - val `uri`: kotlin.String, - val `callback`: kotlin.String, - val `k1`: kotlin.String, - val `defaultDescription`: kotlin.String, - val `minWithdrawable`: kotlin.ULong?, - val `maxWithdrawable`: kotlin.ULong, + val `uri`: kotlin.String, + val `callback`: kotlin.String, + val `k1`: kotlin.String, + val `defaultDescription`: kotlin.String, + val `minWithdrawable`: kotlin.ULong?, + val `maxWithdrawable`: kotlin.ULong, val `tag`: kotlin.String ) { public companion object @@ -1324,19 +1324,19 @@ public data class NativeDeviceInfo ( /** * Unique path/identifier for this device */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Transport type: "usb" or "bluetooth" */ - val `transportType`: kotlin.String, + val `transportType`: kotlin.String, /** * Optional device name (from BLE advertisement or USB descriptor) */ - val `name`: kotlin.String?, + val `name`: kotlin.String?, /** * USB Vendor ID (for USB devices) */ - val `vendorId`: kotlin.UShort?, + val `vendorId`: kotlin.UShort?, /** * USB Product ID (for USB devices) */ @@ -1349,10 +1349,10 @@ public data class NativeDeviceInfo ( @kotlinx.serialization.Serializable public data class OnChainInvoice ( - val `address`: kotlin.String, - val `amountSatoshis`: kotlin.ULong, - val `label`: kotlin.String?, - val `message`: kotlin.String?, + val `address`: kotlin.String, + val `amountSatoshis`: kotlin.ULong, + val `label`: kotlin.String?, + val `message`: kotlin.String?, val `params`: Map? ) { public companion object @@ -1362,26 +1362,26 @@ public data class OnChainInvoice ( @kotlinx.serialization.Serializable public data class OnchainActivity ( - val `walletId`: kotlin.String, - val `id`: kotlin.String, - val `txType`: PaymentType, - val `txId`: kotlin.String, - val `value`: kotlin.ULong, - val `fee`: kotlin.ULong, - val `feeRate`: kotlin.ULong, - val `address`: kotlin.String, - val `confirmed`: kotlin.Boolean, - val `timestamp`: kotlin.ULong, - val `isBoosted`: kotlin.Boolean, - val `boostTxIds`: List, - val `isTransfer`: kotlin.Boolean, - val `doesExist`: kotlin.Boolean, - val `confirmTimestamp`: kotlin.ULong?, - val `channelId`: kotlin.String?, - val `transferTxId`: kotlin.String?, - val `contact`: kotlin.String?, - val `createdAt`: kotlin.ULong?, - val `updatedAt`: kotlin.ULong?, + val `walletId`: kotlin.String, + val `id`: kotlin.String, + val `txType`: PaymentType, + val `txId`: kotlin.String, + val `value`: kotlin.ULong, + val `fee`: kotlin.ULong, + val `feeRate`: kotlin.ULong, + val `address`: kotlin.String, + val `confirmed`: kotlin.Boolean, + val `timestamp`: kotlin.ULong, + val `isBoosted`: kotlin.Boolean, + val `boostTxIds`: List, + val `isTransfer`: kotlin.Boolean, + val `doesExist`: kotlin.Boolean, + val `confirmTimestamp`: kotlin.ULong?, + val `channelId`: kotlin.String?, + val `transferTxId`: kotlin.String?, + val `contact`: kotlin.String?, + val `createdAt`: kotlin.ULong?, + val `updatedAt`: kotlin.ULong?, val `seenAt`: kotlin.ULong? ) { public companion object @@ -1391,16 +1391,16 @@ public data class OnchainActivity ( @kotlinx.serialization.Serializable public data class PreActivityMetadata ( - val `walletId`: kotlin.String, - val `paymentId`: kotlin.String, - val `tags`: List, - val `paymentHash`: kotlin.String?, - val `txId`: kotlin.String?, - val `address`: kotlin.String?, - val `isReceive`: kotlin.Boolean, - val `feeRate`: kotlin.ULong, - val `isTransfer`: kotlin.Boolean, - val `channelId`: kotlin.String?, + val `walletId`: kotlin.String, + val `paymentId`: kotlin.String, + val `tags`: List, + val `paymentHash`: kotlin.String?, + val `txId`: kotlin.String?, + val `address`: kotlin.String?, + val `isReceive`: kotlin.Boolean, + val `feeRate`: kotlin.ULong, + val `isTransfer`: kotlin.Boolean, + val `channelId`: kotlin.String?, val `createdAt`: kotlin.ULong ) { public companion object @@ -1425,19 +1425,19 @@ public data class PubkyAuthDetails ( /** * Whether this is a signin or signup flow. */ - val `kind`: PubkyAuthKind, + val `kind`: PubkyAuthKind, /** * Requested capabilities (e.g. `"/pub/pubky.app/:rw"`). */ - val `capabilities`: kotlin.String, + val `capabilities`: kotlin.String, /** * Relay URL used for the auth exchange. */ - val `relay`: kotlin.String, + val `relay`: kotlin.String, /** * Homeserver public key (z32-encoded). Present only for signup flows. */ - val `homeserver`: kotlin.String?, + val `homeserver`: kotlin.String?, /** * Signup token. Present only for signup flows. */ @@ -1450,10 +1450,10 @@ public data class PubkyAuthDetails ( @kotlinx.serialization.Serializable public data class PubkyProfile ( - val `name`: kotlin.String, - val `bio`: kotlin.String?, - val `image`: kotlin.String?, - val `links`: List?, + val `name`: kotlin.String, + val `bio`: kotlin.String?, + val `image`: kotlin.String?, + val `links`: List?, val `status`: kotlin.String? ) { public companion object @@ -1463,7 +1463,7 @@ public data class PubkyProfile ( @kotlinx.serialization.Serializable public data class PubkyProfileLink ( - val `title`: kotlin.String, + val `title`: kotlin.String, val `url`: kotlin.String ) { public companion object @@ -1479,19 +1479,19 @@ public data class SingleAddressInfoResult ( /** * The queried address */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * Total confirmed balance in satoshis */ - val `balance`: kotlin.ULong, + val `balance`: kotlin.ULong, /** * UTXOs for this address */ - val `utxos`: List, + val `utxos`: List, /** * Number of transactions involving this address */ - val `transfers`: kotlin.UInt, + val `transfers`: kotlin.UInt, /** * Current blockchain tip height */ @@ -1507,15 +1507,15 @@ public data class SweepResult ( /** * The transaction ID of the sweep transaction */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * The total amount swept (in satoshis) */ - val `amountSwept`: kotlin.ULong, + val `amountSwept`: kotlin.ULong, /** * The fee paid (in satoshis) */ - val `feePaid`: kotlin.ULong, + val `feePaid`: kotlin.ULong, /** * The number of UTXOs swept */ @@ -1531,27 +1531,27 @@ public data class SweepTransactionPreview ( /** * The PSBT (Partially Signed Bitcoin Transaction) in base64 format */ - val `psbt`: kotlin.String, + val `psbt`: kotlin.String, /** * The total amount available to sweep (in satoshis) */ - val `totalAmount`: kotlin.ULong, + val `totalAmount`: kotlin.ULong, /** * The estimated fee for the transaction (in satoshis) */ - val `estimatedFee`: kotlin.ULong, + val `estimatedFee`: kotlin.ULong, /** * The estimated virtual size of the transaction (in vbytes) */ - val `estimatedVsize`: kotlin.ULong, + val `estimatedVsize`: kotlin.ULong, /** * The number of UTXOs that will be swept */ - val `utxosCount`: kotlin.UInt, + val `utxosCount`: kotlin.UInt, /** * The destination address */ - val `destinationAddress`: kotlin.String, + val `destinationAddress`: kotlin.String, /** * The amount that will be sent to destination after fees (in satoshis) */ @@ -1567,31 +1567,31 @@ public data class SweepableBalances ( /** * Balance in legacy (P2PKH) addresses (in satoshis) */ - val `legacyBalance`: kotlin.ULong, + val `legacyBalance`: kotlin.ULong, /** * Balance in P2SH-SegWit (P2SH-P2WPKH) addresses (in satoshis) */ - val `p2shBalance`: kotlin.ULong, + val `p2shBalance`: kotlin.ULong, /** * Balance in Taproot (P2TR) addresses (in satoshis) */ - val `taprootBalance`: kotlin.ULong, + val `taprootBalance`: kotlin.ULong, /** * Total balance across all wallet types (in satoshis) */ - val `totalBalance`: kotlin.ULong, + val `totalBalance`: kotlin.ULong, /** * Number of UTXOs in legacy wallet */ - val `legacyUtxosCount`: kotlin.UInt, + val `legacyUtxosCount`: kotlin.UInt, /** * Number of UTXOs in P2SH-SegWit wallet */ - val `p2shUtxosCount`: kotlin.UInt, + val `p2shUtxosCount`: kotlin.UInt, /** * Number of UTXOs in Taproot wallet */ - val `taprootUtxosCount`: kotlin.UInt, + val `taprootUtxosCount`: kotlin.UInt, /** * Total number of UTXOs across all wallet types */ @@ -1610,63 +1610,63 @@ public data class TransactionDetail ( /** * Transaction ID (hex) */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * Amount received by the wallet (sats) */ - val `received`: kotlin.ULong, + val `received`: kotlin.ULong, /** * Amount sent by the wallet (sats) — includes change sent back to self */ - val `sent`: kotlin.ULong, + val `sent`: kotlin.ULong, /** * Net value from wallet's perspective: received - sent (positive = inflow, negative = outflow) */ - val `net`: kotlin.Long, + val `net`: kotlin.Long, /** * Display amount in sats (same semantics as HistoryTransaction.amount) */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Transaction fee in sats (None if not available) */ - val `fee`: kotlin.ULong?, + val `fee`: kotlin.ULong?, /** * Transaction direction */ - val `direction`: TxDirection, + val `direction`: TxDirection, /** * Block height (None if unconfirmed/mempool) */ - val `blockHeight`: kotlin.UInt?, + val `blockHeight`: kotlin.UInt?, /** * Block timestamp as unix epoch seconds (None if unconfirmed) */ - val `timestamp`: kotlin.ULong?, + val `timestamp`: kotlin.ULong?, /** * Number of confirmations (0 if unconfirmed) */ - val `confirmations`: kotlin.UInt, + val `confirmations`: kotlin.UInt, /** * Transaction inputs */ - val `inputs`: List, + val `inputs`: List, /** * Transaction outputs */ - val `outputs`: List, + val `outputs`: List, /** * Serialized transaction size in bytes */ - val `size`: kotlin.UInt, + val `size`: kotlin.UInt, /** * Virtual size in vbytes (ceil(weight / 4)) */ - val `vsize`: kotlin.UInt, + val `vsize`: kotlin.UInt, /** * Transaction weight in weight units */ - val `weight`: kotlin.UInt, + val `weight`: kotlin.UInt, /** * Fee rate in sat/vB (fee / vsize), None if fee is unavailable or vsize is zero */ @@ -1682,11 +1682,11 @@ public data class TransactionDetail ( */ @kotlinx.serialization.Serializable public data class TransactionDetails ( - val `walletId`: kotlin.String, + val `walletId`: kotlin.String, /** * The transaction ID. */ - val `txId`: kotlin.String, + val `txId`: kotlin.String, /** * The net amount in this transaction (in satoshis). * @@ -1695,11 +1695,11 @@ public data class TransactionDetails ( * * Note: This amount does NOT include transaction fees. */ - val `amountSats`: kotlin.Long, + val `amountSats`: kotlin.Long, /** * The transaction inputs with full details. */ - val `inputs`: List, + val `inputs`: List, /** * The transaction outputs with full details. */ @@ -1718,19 +1718,19 @@ public data class TransactionHistoryResult ( /** * All transactions, sorted: unconfirmed first, then by timestamp descending */ - val `transactions`: List, + val `transactions`: List, /** * Balance breakdown */ - val `balance`: WalletBalance, + val `balance`: WalletBalance, /** * Total number of transactions */ - val `txCount`: kotlin.UInt, + val `txCount`: kotlin.UInt, /** * Current blockchain tip height */ - val `blockHeight`: kotlin.UInt, + val `blockHeight`: kotlin.UInt, /** * The detected or specified account type */ @@ -1749,7 +1749,7 @@ public data class TrezorAddressResponse ( /** * The Bitcoin address */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * The serialized path (e.g., "m/84'/0'/0'/0/0") */ @@ -1768,15 +1768,15 @@ public data class TrezorCallMessageResult ( /** * Whether the call succeeded */ - val `success`: kotlin.Boolean, + val `success`: kotlin.Boolean, /** * Response message type */ - val `messageType`: kotlin.UShort, + val `messageType`: kotlin.UShort, /** * Response protobuf data */ - val `data`: kotlin.ByteArray, + val `data`: kotlin.ByteArray, /** * Error message (empty on success) */ @@ -1814,27 +1814,27 @@ public data class TrezorDeviceInfo ( /** * Unique identifier for the device */ - val `id`: kotlin.String, + val `id`: kotlin.String, /** * Transport type (USB or Bluetooth) */ - val `transportType`: TrezorTransportType, + val `transportType`: TrezorTransportType, /** * Device name (from BLE advertisement or USB descriptor) */ - val `name`: kotlin.String?, + val `name`: kotlin.String?, /** * Transport-specific path (used internally for connection) */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Device label (set by user during device setup) */ - val `label`: kotlin.String?, + val `label`: kotlin.String?, /** * Device model (e.g., "T2", "Safe 5", "Safe 7") */ - val `model`: kotlin.String?, + val `model`: kotlin.String?, /** * Whether the device is in bootloader mode */ @@ -1853,47 +1853,53 @@ public data class TrezorFeatures ( /** * Vendor string */ - val `vendor`: kotlin.String?, + val `vendor`: kotlin.String?, /** * Device model */ - val `model`: kotlin.String?, + val `model`: kotlin.String?, /** * Device label (set by user during device setup) */ - val `label`: kotlin.String?, + val `label`: kotlin.String?, /** * Device ID (unique per device) */ - val `deviceId`: kotlin.String?, + val `deviceId`: kotlin.String?, /** * Major firmware version */ - val `majorVersion`: kotlin.UInt?, + val `majorVersion`: kotlin.UInt?, /** * Minor firmware version */ - val `minorVersion`: kotlin.UInt?, + val `minorVersion`: kotlin.UInt?, /** * Patch firmware version */ - val `patchVersion`: kotlin.UInt?, + val `patchVersion`: kotlin.UInt?, /** * Whether PIN protection is enabled */ - val `pinProtection`: kotlin.Boolean?, + val `pinProtection`: kotlin.Boolean?, + /** + * Whether the device is currently unlocked. When PIN protection is enabled + * and this is `Some(false)`, mobile callers should back off and ask the + * user to unlock the Trezor instead of repeatedly reconnecting. + */ + val `unlocked`: kotlin.Boolean?, /** * Whether passphrase protection is enabled */ - val `passphraseProtection`: kotlin.Boolean?, + val `passphraseProtection`: kotlin.Boolean?, /** * Whether the device is initialized with a seed */ - val `initialized`: kotlin.Boolean?, + val `initialized`: kotlin.Boolean?, /** * Whether the device needs backup */ - val `needsBackup`: kotlin.Boolean?, + val `needsBackup`: kotlin.Boolean?, /** * Whether the device can accept passphrase entry on the device itself * (`Capability_PassphraseEntry`). When false/None, use host entry only. @@ -1913,15 +1919,15 @@ public data class TrezorGetAddressParams ( /** * BIP32 path (e.g., "m/84'/0'/0'/0/0") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Coin network (default: Bitcoin) */ - val `coin`: TrezorCoinType?, + val `coin`: TrezorCoinType?, /** * Whether to display the address on the device for confirmation */ - val `showOnTrezor`: kotlin.Boolean, + val `showOnTrezor`: kotlin.Boolean, /** * Script type (auto-detected from path if not specified) */ @@ -1940,11 +1946,11 @@ public data class TrezorGetPublicKeyParams ( /** * BIP32 path (e.g., "m/84'/0'/0'") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Coin network (default: Bitcoin) */ - val `coin`: TrezorCoinType?, + val `coin`: TrezorCoinType?, /** * Whether to display on device for confirmation */ @@ -1963,19 +1969,19 @@ public data class TrezorPrevTx ( /** * Transaction hash (hex encoded) */ - val `hash`: kotlin.String, + val `hash`: kotlin.String, /** * Transaction version */ - val `version`: kotlin.UInt, + val `version`: kotlin.UInt, /** * Lock time */ - val `lockTime`: kotlin.UInt, + val `lockTime`: kotlin.UInt, /** * Transaction inputs */ - val `inputs`: List, + val `inputs`: List, /** * Transaction outputs */ @@ -1994,15 +2000,15 @@ public data class TrezorPrevTxInput ( /** * Previous transaction hash (hex encoded) */ - val `prevHash`: kotlin.String, + val `prevHash`: kotlin.String, /** * Previous output index */ - val `prevIndex`: kotlin.UInt, + val `prevIndex`: kotlin.UInt, /** * Script signature (hex encoded) */ - val `scriptSig`: kotlin.String, + val `scriptSig`: kotlin.String, /** * Sequence number */ @@ -2021,7 +2027,7 @@ public data class TrezorPrevTxOutput ( /** * Amount in satoshis */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Script pubkey (hex encoded) */ @@ -2040,27 +2046,27 @@ public data class TrezorPublicKeyResponse ( /** * Extended public key (xpub) */ - val `xpub`: kotlin.String, + val `xpub`: kotlin.String, /** * The serialized path (e.g., "m/84'/0'/0'") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Compressed public key (hex encoded) */ - val `publicKey`: kotlin.String, + val `publicKey`: kotlin.String, /** * Chain code (hex encoded) */ - val `chainCode`: kotlin.String, + val `chainCode`: kotlin.String, /** * Parent key fingerprint */ - val `fingerprint`: kotlin.UInt, + val `fingerprint`: kotlin.UInt, /** * Derivation depth */ - val `depth`: kotlin.UInt, + val `depth`: kotlin.UInt, /** * Master root fingerprint (from the device's master seed) */ @@ -2079,11 +2085,11 @@ public data class TrezorSignMessageParams ( /** * BIP32 path for the signing key (e.g., "m/84'/0'/0'/0/0") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Message to sign */ - val `message`: kotlin.String, + val `message`: kotlin.String, /** * Coin network (default: Bitcoin) */ @@ -2102,23 +2108,23 @@ public data class TrezorSignTxParams ( /** * Transaction inputs */ - val `inputs`: List, + val `inputs`: List, /** * Transaction outputs */ - val `outputs`: List, + val `outputs`: List, /** * Coin network (default: Bitcoin) */ - val `coin`: TrezorCoinType?, + val `coin`: TrezorCoinType?, /** * Lock time (default: 0) */ - val `lockTime`: kotlin.UInt?, + val `lockTime`: kotlin.UInt?, /** * Version (default: 2) */ - val `version`: kotlin.UInt?, + val `version`: kotlin.UInt?, /** * Previous transactions (for non-SegWit input verification) */ @@ -2137,7 +2143,7 @@ public data class TrezorSignedMessageResponse ( /** * Bitcoin address that signed the message */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * Signature (base64 encoded) */ @@ -2156,11 +2162,11 @@ public data class TrezorSignedTx ( /** * Signatures for each input (hex encoded) */ - val `signatures`: List, + val `signatures`: List, /** * Serialized transaction (hex) */ - val `serializedTx`: kotlin.String, + val `serializedTx`: kotlin.String, /** * Broadcast transaction ID (populated when push=true) */ @@ -2179,11 +2185,11 @@ public data class TrezorTransportReadResult ( /** * Whether the read succeeded */ - val `success`: kotlin.Boolean, + val `success`: kotlin.Boolean, /** * Data read (empty on failure) */ - val `data`: kotlin.ByteArray, + val `data`: kotlin.ByteArray, /** * Error message (empty on success) */ @@ -2219,7 +2225,7 @@ public data class TrezorTransportWriteResult ( /** * Whether the operation succeeded */ - val `success`: kotlin.Boolean, + val `success`: kotlin.Boolean, /** * Error message (empty on success) */ @@ -2238,31 +2244,31 @@ public data class TrezorTxInput ( /** * Previous transaction hash (hex, 32 bytes) */ - val `prevHash`: kotlin.String, + val `prevHash`: kotlin.String, /** * Previous output index */ - val `prevIndex`: kotlin.UInt, + val `prevIndex`: kotlin.UInt, /** * BIP32 derivation path (e.g., "m/84'/0'/0'/0/0") */ - val `path`: kotlin.String, + val `path`: kotlin.String, /** * Amount in satoshis */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Script type */ - val `scriptType`: TrezorScriptType, + val `scriptType`: TrezorScriptType, /** * Sequence number (default: 0xFFFFFFFD for RBF) */ - val `sequence`: kotlin.UInt?, + val `sequence`: kotlin.UInt?, /** * Original transaction hash for RBF replacement (hex encoded) */ - val `origHash`: kotlin.String?, + val `origHash`: kotlin.String?, /** * Original input index for RBF replacement */ @@ -2281,27 +2287,27 @@ public data class TrezorTxOutput ( /** * Destination address (for external outputs) */ - val `address`: kotlin.String?, + val `address`: kotlin.String?, /** * BIP32 path (for change outputs) */ - val `path`: kotlin.String?, + val `path`: kotlin.String?, /** * Amount in satoshis */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Script type (for change outputs) */ - val `scriptType`: TrezorScriptType?, + val `scriptType`: TrezorScriptType?, /** * OP_RETURN data (hex encoded, for data outputs) */ - val `opReturnData`: kotlin.String?, + val `opReturnData`: kotlin.String?, /** * Original transaction hash for RBF replacement (hex encoded) */ - val `origHash`: kotlin.String?, + val `origHash`: kotlin.String?, /** * Original output index for RBF replacement */ @@ -2320,15 +2326,15 @@ public data class TrezorVerifyMessageParams ( /** * Bitcoin address that signed the message */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * Signature (base64 encoded) */ - val `signature`: kotlin.String, + val `signature`: kotlin.String, /** * Original message */ - val `message`: kotlin.String, + val `message`: kotlin.String, /** * Coin network (default: Bitcoin) */ @@ -2347,19 +2353,19 @@ public data class TxDetailInput ( /** * Previous output transaction ID (hex) */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * Previous output index */ - val `vout`: kotlin.UInt, + val `vout`: kotlin.UInt, /** * Sequence number */ - val `sequence`: kotlin.UInt, + val `sequence`: kotlin.UInt, /** * Script signature (hex-encoded) */ - val `scriptSig`: kotlin.String, + val `scriptSig`: kotlin.String, /** * Witness stack (each element hex-encoded) */ @@ -2378,15 +2384,15 @@ public data class TxDetailOutput ( /** * Output value in sats */ - val `value`: kotlin.ULong, + val `value`: kotlin.ULong, /** * Script public key (hex-encoded) */ - val `scriptPubkey`: kotlin.String, + val `scriptPubkey`: kotlin.String, /** * Decoded address (None if script is not decodable to an address) */ - val `address`: kotlin.String?, + val `address`: kotlin.String?, /** * Whether this output belongs to the queried wallet */ @@ -2405,19 +2411,19 @@ public data class TxInput ( /** * The transaction ID of the previous output being spent. */ - val `txid`: kotlin.String, + val `txid`: kotlin.String, /** * The output index of the previous output being spent. */ - val `vout`: kotlin.UInt, + val `vout`: kotlin.UInt, /** * The script signature (hex-encoded). */ - val `scriptsig`: kotlin.String, + val `scriptsig`: kotlin.String, /** * The witness stack (hex-encoded strings). */ - val `witness`: List, + val `witness`: List, /** * The sequence number. */ @@ -2436,19 +2442,19 @@ public data class TxOutput ( /** * The script public key (hex-encoded). */ - val `scriptpubkey`: kotlin.String, + val `scriptpubkey`: kotlin.String, /** * The script public key type (e.g., "p2pkh", "p2sh", "p2wpkh", "p2wsh", "p2tr"). */ - val `scriptpubkeyType`: kotlin.String?, + val `scriptpubkeyType`: kotlin.String?, /** * The address corresponding to this script (if decodable). */ - val `scriptpubkeyAddress`: kotlin.String?, + val `scriptpubkeyAddress`: kotlin.String?, /** * The value in satoshis. */ - val `value`: kotlin.Long, + val `value`: kotlin.Long, /** * The output index in the transaction. */ @@ -2461,8 +2467,8 @@ public data class TxOutput ( @kotlinx.serialization.Serializable public data class ValidationResult ( - val `address`: kotlin.String, - val `network`: NetworkType, + val `address`: kotlin.String, + val `network`: NetworkType, val `addressType`: AddressType ) { public companion object @@ -2478,23 +2484,23 @@ public data class WalletBalance ( /** * Confirmed and spendable balance (sats) */ - val `confirmed`: kotlin.ULong, + val `confirmed`: kotlin.ULong, /** * Immature coinbase outputs (sats) */ - val `immature`: kotlin.ULong, + val `immature`: kotlin.ULong, /** * Unconfirmed UTXOs from trusted sources (own change) (sats) */ - val `trustedPending`: kotlin.ULong, + val `trustedPending`: kotlin.ULong, /** * Unconfirmed UTXOs from external sources (sats) */ - val `untrustedPending`: kotlin.ULong, + val `untrustedPending`: kotlin.ULong, /** * Total spendable: confirmed + trusted_pending (sats) */ - val `spendable`: kotlin.ULong, + val `spendable`: kotlin.ULong, /** * Grand total: all categories (sats) */ @@ -2513,19 +2519,19 @@ public data class WalletParams ( /** * Extended public key (xpub/ypub/zpub/tpub/upub/vpub) */ - val `extendedKey`: kotlin.String, + val `extendedKey`: kotlin.String, /** * Electrum server URL for wallet sync */ - val `electrumUrl`: kotlin.String, + val `electrumUrl`: kotlin.String, /** * Root fingerprint hex (e.g. "73c5da0a"). Required for hardware wallet signing. */ - val `fingerprint`: kotlin.String?, + val `fingerprint`: kotlin.String?, /** * Bitcoin network (auto-detected from key prefix if not specified) */ - val `network`: Network?, + val `network`: Network?, /** * Override account type for ambiguous key prefixes (xpub/tpub) */ @@ -2544,23 +2550,23 @@ public data class WatcherParams ( /** * Caller-supplied identifier for this watcher. */ - val `watcherId`: kotlin.String, + val `watcherId`: kotlin.String, /** * Extended public key (xpub/ypub/zpub/tpub/upub/vpub). */ - val `extendedKey`: kotlin.String, + val `extendedKey`: kotlin.String, /** * Electrum server URL (e.g. "ssl://electrum.example.com:50002"). */ - val `electrumUrl`: kotlin.String, + val `electrumUrl`: kotlin.String, /** * Bitcoin network override (auto-detected from key prefix if None). */ - val `network`: Network?, + val `network`: Network?, /** * Account type override (auto-detected from key prefix if None). */ - val `accountType`: AccountType?, + val `accountType`: AccountType?, /** * Number of unused addresses to monitor beyond the last used (default 20). */ @@ -2577,7 +2583,7 @@ public data class WatcherParams ( * Errors specific to account info operations (BDK/Electrum-based). */ public sealed class AccountInfoException: kotlin.Exception() { - + /** * The provided extended public key is invalid or cannot be parsed */ @@ -2587,7 +2593,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * The provided address is invalid */ @@ -2597,7 +2603,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Electrum connection or query failed */ @@ -2607,7 +2613,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * BDK wallet creation or operation error */ @@ -2617,7 +2623,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Wallet sync with Electrum failed */ @@ -2627,7 +2633,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * The key type/prefix is not recognized */ @@ -2637,7 +2643,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Network mismatch between key prefix and specified network */ @@ -2647,7 +2653,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Invalid transaction ID provided */ @@ -2657,7 +2663,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * A valid transaction ID was not found in the wallet */ @@ -2667,7 +2673,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Watcher lifecycle or subscription error */ @@ -2677,7 +2683,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -2691,7 +2697,7 @@ public sealed class AccountInfoException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class AccountType { - + /** * BIP44 legacy (P2PKH) — xpub/tpub prefix */ @@ -2728,7 +2734,7 @@ public sealed class Activity { val v1: LightningActivity, ) : Activity() { } - + } @@ -2738,56 +2744,56 @@ public sealed class Activity { public sealed class ActivityException: kotlin.Exception() { - + public class InvalidActivity( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InitializationException( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InsertException( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class RetrievalException( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class DataException( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class ConnectionException( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class SerializationException( public val `errorDetails`: kotlin.String, ) : ActivityException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -2796,7 +2802,7 @@ public sealed class ActivityException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class ActivityFilter { - + ALL, LIGHTNING, ONCHAIN; @@ -2811,7 +2817,7 @@ public enum class ActivityFilter { @kotlinx.serialization.Serializable public enum class ActivityType { - + ONCHAIN, LIGHTNING; public companion object @@ -2824,43 +2830,43 @@ public enum class ActivityType { public sealed class AddressException: kotlin.Exception() { - + public class InvalidAddress( ) : AddressException() { override val message: String get() = "" } - + public class InvalidNetwork( ) : AddressException() { override val message: String get() = "" } - + public class MnemonicGenerationFailed( ) : AddressException() { override val message: String get() = "" } - + public class InvalidMnemonic( ) : AddressException() { override val message: String get() = "" } - + public class InvalidEntropy( ) : AddressException() { override val message: String get() = "" } - + public class AddressDerivationFailed( ) : AddressException() { override val message: String get() = "" } - + } @@ -2869,7 +2875,7 @@ public sealed class AddressException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class AddressType { - + P2PKH, P2SH, P2WPKH, @@ -2887,7 +2893,7 @@ public enum class AddressType { @kotlinx.serialization.Serializable public enum class BitcoinNetworkEnum { - + MAINNET, TESTNET, SIGNET, @@ -2902,70 +2908,70 @@ public enum class BitcoinNetworkEnum { public sealed class BlocktankException: kotlin.Exception() { - + public class HttpClient( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class BlocktankClient( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InvalidBlocktank( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InitializationException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InsertException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class RetrievalException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class DataException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class ConnectionException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class SerializationException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class ChannelOpen( public val `errorType`: BtChannelOrderErrorType, public val `errorDetails`: kotlin.String, @@ -2973,28 +2979,28 @@ public sealed class BlocktankException: kotlin.Exception() { override val message: String get() = "errorType=${ `errorType` }, errorDetails=${ `errorDetails` }" } - + public class OrderState( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InvalidParameter( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class DatabaseException( public val `errorDetails`: kotlin.String, ) : BlocktankException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -3002,35 +3008,35 @@ public sealed class BlocktankException: kotlin.Exception() { public sealed class BroadcastException: kotlin.Exception() { - + public class InvalidHex( public val `errorDetails`: kotlin.String, ) : BroadcastException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InvalidTransaction( public val `errorDetails`: kotlin.String, ) : BroadcastException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class ElectrumException( public val `errorDetails`: kotlin.String, ) : BroadcastException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class TaskException( public val `errorDetails`: kotlin.String, ) : BroadcastException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -3039,7 +3045,7 @@ public sealed class BroadcastException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class BtBolt11InvoiceState { - + PENDING, HOLDING, PAID, @@ -3055,7 +3061,7 @@ public enum class BtBolt11InvoiceState { @kotlinx.serialization.Serializable public enum class BtChannelOrderErrorType { - + WRONG_ORDER_STATE, PEER_NOT_REACHABLE, CHANNEL_REJECTED_BY_DESTINATION, @@ -3072,7 +3078,7 @@ public enum class BtChannelOrderErrorType { @kotlinx.serialization.Serializable public enum class BtOpenChannelState { - + OPENING, OPEN, CLOSED; @@ -3087,7 +3093,7 @@ public enum class BtOpenChannelState { @kotlinx.serialization.Serializable public enum class BtOrderState { - + CREATED, EXPIRED, OPEN, @@ -3103,7 +3109,7 @@ public enum class BtOrderState { @kotlinx.serialization.Serializable public enum class BtOrderState2 { - + CREATED, EXPIRED, EXECUTED, @@ -3119,7 +3125,7 @@ public enum class BtOrderState2 { @kotlinx.serialization.Serializable public enum class BtPaymentState { - + CREATED, PARTIALLY_PAID, PAID, @@ -3136,7 +3142,7 @@ public enum class BtPaymentState { @kotlinx.serialization.Serializable public enum class BtPaymentState2 { - + CREATED, PAID, REFUNDED, @@ -3153,7 +3159,7 @@ public enum class BtPaymentState2 { @kotlinx.serialization.Serializable public enum class CJitStateEnum { - + CREATED, COMPLETED, EXPIRED, @@ -3172,7 +3178,7 @@ public enum class CJitStateEnum { @kotlinx.serialization.Serializable public enum class CoinSelection { - + /** * Branch-and-bound (default). Minimizes change by searching for exact matches. */ @@ -3198,7 +3204,7 @@ public enum class CoinSelection { */ @kotlinx.serialization.Serializable public sealed class ComposeOutput { - + /** * Payment to a specific address with a fixed amount (satoshis) */@kotlinx.serialization.Serializable @@ -3207,7 +3213,7 @@ public sealed class ComposeOutput { val `amountSats`: kotlin.ULong, ) : ComposeOutput() { } - + /** * Send all remaining funds (after fees) to an address */@kotlinx.serialization.Serializable @@ -3215,7 +3221,7 @@ public sealed class ComposeOutput { val `address`: kotlin.String, ) : ComposeOutput() { } - + /** * OP_RETURN data output (hex-encoded payload) */@kotlinx.serialization.Serializable @@ -3223,7 +3229,7 @@ public sealed class ComposeOutput { val `dataHex`: kotlin.String, ) : ComposeOutput() { } - + } @@ -3236,7 +3242,7 @@ public sealed class ComposeOutput { */ @kotlinx.serialization.Serializable public sealed class ComposeResult { - + /** * Successfully built a signable PSBT */@kotlinx.serialization.Serializable @@ -3261,7 +3267,7 @@ public sealed class ComposeResult { val `totalSpent`: kotlin.ULong, ) : ComposeResult() { } - + /** * Composition failed (e.g. insufficient funds) */@kotlinx.serialization.Serializable @@ -3269,7 +3275,7 @@ public sealed class ComposeResult { val `error`: kotlin.String, ) : ComposeResult() { } - + } @@ -3279,28 +3285,28 @@ public sealed class ComposeResult { public sealed class DbException: kotlin.Exception() { - + public class DbActivityException( public val `errorDetails`: ActivityException, ) : DbException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class DbBlocktankException( public val `errorDetails`: BlocktankException, ) : DbException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class InitializationException( public val `errorDetails`: kotlin.String, ) : DbException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -3308,25 +3314,25 @@ public sealed class DbException: kotlin.Exception() { public sealed class DecodingException: kotlin.Exception() { - + public class InvalidFormat( ) : DecodingException() { override val message: String get() = "" } - + public class InvalidNetwork( ) : DecodingException() { override val message: String get() = "" } - + public class InvalidAmount( ) : DecodingException() { override val message: String get() = "" } - + public class InvalidLnurlPayAmount( public val `amountSatoshis`: kotlin.ULong, public val `min`: kotlin.ULong, @@ -3335,56 +3341,56 @@ public sealed class DecodingException: kotlin.Exception() { override val message: String get() = "amountSatoshis=${ `amountSatoshis` }, min=${ `min` }, max=${ `max` }" } - + public class InvalidTimestamp( ) : DecodingException() { override val message: String get() = "" } - + public class InvalidChecksum( ) : DecodingException() { override val message: String get() = "" } - + public class InvalidResponse( ) : DecodingException() { override val message: String get() = "" } - + public class UnsupportedType( ) : DecodingException() { override val message: String get() = "" } - + public class InvalidAddress( ) : DecodingException() { override val message: String get() = "" } - + public class RequestFailed( ) : DecodingException() { override val message: String get() = "" } - + public class ClientCreationFailed( ) : DecodingException() { override val message: String get() = "" } - + public class InvoiceCreationFailed( public val `errorMessage`: kotlin.String, ) : DecodingException() { override val message: String get() = "errorMessage=${ `errorMessage` }" } - + } @@ -3392,31 +3398,31 @@ public sealed class DecodingException: kotlin.Exception() { public sealed class LnurlException: kotlin.Exception() { - + public class InvalidAddress( ) : LnurlException() { override val message: String get() = "" } - + public class ClientCreationFailed( ) : LnurlException() { override val message: String get() = "" } - + public class RequestFailed( ) : LnurlException() { override val message: String get() = "" } - + public class InvalidResponse( ) : LnurlException() { override val message: String get() = "" } - + public class InvalidAmount( public val `amountSatoshis`: kotlin.ULong, public val `min`: kotlin.ULong, @@ -3425,20 +3431,20 @@ public sealed class LnurlException: kotlin.Exception() { override val message: String get() = "amountSatoshis=${ `amountSatoshis` }, min=${ `min` }, max=${ `max` }" } - + public class InvoiceCreationFailed( public val `errorDetails`: kotlin.String, ) : LnurlException() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + public class AuthenticationFailed( ) : LnurlException() { override val message: String get() = "" } - + } @@ -3447,7 +3453,7 @@ public sealed class LnurlException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class ManualRefundStateEnum { - + CREATED, APPROVED, REJECTED, @@ -3463,7 +3469,7 @@ public enum class ManualRefundStateEnum { @kotlinx.serialization.Serializable public enum class Network { - + /** * Mainnet Bitcoin. */ @@ -3495,7 +3501,7 @@ public enum class Network { @kotlinx.serialization.Serializable public enum class NetworkType { - + BITCOIN, TESTNET, REGTEST, @@ -3510,21 +3516,21 @@ public enum class NetworkType { @kotlinx.serialization.Serializable public sealed class PassphraseResponse { - + /** * User cancelled — aborts the pending operation. */ @kotlinx.serialization.Serializable - public data object Cancel : PassphraseResponse() - - + public data object Cancel : PassphraseResponse() + + /** * Standard wallet — no passphrase, equivalent to `Some("")` on the device. */ @kotlinx.serialization.Serializable - public data object Standard : PassphraseResponse() - - + public data object Standard : PassphraseResponse() + + /** * Hidden wallet — derived from the passphrase entered on the host. */@kotlinx.serialization.Serializable @@ -3532,14 +3538,14 @@ public sealed class PassphraseResponse { val `value`: kotlin.String, ) : PassphraseResponse() { } - + /** * Enter the passphrase on the Trezor device itself instead of on the host. */ @kotlinx.serialization.Serializable - public data object OnDevice : PassphraseResponse() - - + public data object OnDevice : PassphraseResponse() + + } @@ -3550,7 +3556,7 @@ public sealed class PassphraseResponse { @kotlinx.serialization.Serializable public enum class PaymentState { - + PENDING, SUCCEEDED, FAILED; @@ -3565,7 +3571,7 @@ public enum class PaymentState { @kotlinx.serialization.Serializable public enum class PaymentType { - + SENT, RECEIVED; public companion object @@ -3582,7 +3588,7 @@ public enum class PaymentType { @kotlinx.serialization.Serializable public enum class PubkyAuthKind { - + SIGNIN, SIGNUP; public companion object @@ -3595,68 +3601,68 @@ public enum class PubkyAuthKind { public sealed class PubkyException: kotlin.Exception() { - + public class InvalidCapabilities( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + public class AuthFailed( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + public class NoActiveFlow( ) : PubkyException() { override val message: String get() = "" } - + public class ResolutionFailed( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + public class FetchFailed( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + public class ProfileNotFound( ) : PubkyException() { override val message: String get() = "" } - + public class ProfileParseFailed( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + public class KeyException( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + public class WriteFailed( public val `reason`: kotlin.String, ) : PubkyException() { override val message: String get() = "reason=${ `reason` }" } - + } @@ -3716,7 +3722,7 @@ public sealed class Scanner { val `amount`: kotlin.ULong, ) : Scanner() { } - + } @@ -3727,7 +3733,7 @@ public sealed class Scanner { @kotlinx.serialization.Serializable public enum class SortDirection { - + ASC, DESC; public companion object @@ -3740,26 +3746,26 @@ public enum class SortDirection { public sealed class SweepException: kotlin.Exception() { - + public class SweepFailed( public val v1: kotlin.String, ) : SweepException() { override val message: String get() = "v1=${ v1 }" } - + public class NoUtxosFound( ) : SweepException() { override val message: String get() = "" } - + public class InvalidMnemonic( ) : SweepException() { override val message: String get() = "" } - + } @@ -3771,7 +3777,7 @@ public sealed class SweepException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class TrezorCoinType { - + /** * Bitcoin mainnet */ @@ -3801,7 +3807,7 @@ public enum class TrezorCoinType { * Trezor-related errors exposed via FFI. */ public sealed class TrezorException: kotlin.Exception() { - + /** * Transport layer error (USB/Bluetooth communication) */ @@ -3811,7 +3817,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * No Trezor device found */ @@ -3820,7 +3826,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Device disconnected during operation */ @@ -3829,7 +3835,16 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + + /** + * Device is busy and the caller should back off before retrying + */ + public class DeviceBusy( + ) : TrezorException() { + override val message: String + get() = "" + } + /** * Connection error */ @@ -3839,7 +3854,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Protocol error (encoding/decoding) */ @@ -3849,7 +3864,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Pairing required for Bluetooth connection */ @@ -3858,7 +3873,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Pairing failed */ @@ -3868,7 +3883,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * PIN is required */ @@ -3877,7 +3892,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * PIN entry cancelled */ @@ -3886,7 +3901,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Invalid PIN entered */ @@ -3895,7 +3910,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Passphrase is required */ @@ -3904,7 +3919,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Passphrase entry cancelled */ @@ -3913,7 +3928,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Action cancelled by user on device */ @@ -3922,7 +3937,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Operation timed out */ @@ -3931,7 +3946,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Invalid derivation path */ @@ -3941,7 +3956,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Device returned an error */ @@ -3951,7 +3966,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Trezor manager not initialized */ @@ -3960,7 +3975,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * No device connected */ @@ -3969,7 +3984,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Session error */ @@ -3979,7 +3994,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * IO error */ @@ -3989,7 +4004,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -4001,7 +4016,7 @@ public sealed class TrezorException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class TrezorScriptType { - + /** * P2PKH (legacy) */ @@ -4040,7 +4055,7 @@ public enum class TrezorScriptType { @kotlinx.serialization.Serializable public enum class TrezorTransportType { - + /** * USB connection */ @@ -4063,7 +4078,7 @@ public enum class TrezorTransportType { @kotlinx.serialization.Serializable public enum class TxDirection { - + /** * Wallet sent funds to an external address */ @@ -4095,14 +4110,14 @@ public enum class TxDirection { */ @kotlinx.serialization.Serializable public sealed class WalletSelection { - + /** * The standard wallet — no passphrase. */ @kotlinx.serialization.Serializable - public data object Standard : WalletSelection() - - + public data object Standard : WalletSelection() + + /** * A hidden wallet whose passphrase is entered on the host. */@kotlinx.serialization.Serializable @@ -4110,14 +4125,14 @@ public sealed class WalletSelection { val `passphrase`: kotlin.String, ) : WalletSelection() { } - + /** * A hidden wallet whose passphrase is entered on the Trezor itself. */ @kotlinx.serialization.Serializable - public data object OnDevice : WalletSelection() - - + public data object OnDevice : WalletSelection() + + } @@ -4130,7 +4145,7 @@ public sealed class WalletSelection { */ @kotlinx.serialization.Serializable public sealed class WatcherEvent { - + /** * Transaction activity changed — contains full updated state. */@kotlinx.serialization.Serializable @@ -4142,7 +4157,7 @@ public sealed class WatcherEvent { val `accountType`: AccountType, ) : WatcherEvent() { } - + /** * An error occurred in the watcher loop. */@kotlinx.serialization.Serializable @@ -4150,7 +4165,7 @@ public sealed class WatcherEvent { val `message`: kotlin.String, ) : WatcherEvent() { } - + /** * Connection to the Electrum server was lost. */@kotlinx.serialization.Serializable @@ -4158,14 +4173,14 @@ public sealed class WatcherEvent { val `message`: kotlin.String, ) : WatcherEvent() { } - + /** * Connection to the Electrum server was restored. */ @kotlinx.serialization.Serializable - public data object Reconnected : WatcherEvent() - - + public data object Reconnected : WatcherEvent() + + } @@ -4176,7 +4191,7 @@ public sealed class WatcherEvent { @kotlinx.serialization.Serializable public enum class WordCount { - + /** * 12-word mnemonic (128 bits of entropy) */ diff --git a/bindings/ios/BitkitCore.xcframework.zip b/bindings/ios/BitkitCore.xcframework.zip index b735c4f..60364e7 100644 Binary files a/bindings/ios/BitkitCore.xcframework.zip and b/bindings/ios/BitkitCore.xcframework.zip differ diff --git a/bindings/ios/BitkitCore.xcframework/Info.plist b/bindings/ios/BitkitCore.xcframework/Info.plist index 478a88f..b7357e0 100644 --- a/bindings/ios/BitkitCore.xcframework/Info.plist +++ b/bindings/ios/BitkitCore.xcframework/Info.plist @@ -10,7 +10,7 @@ HeadersPath Headers LibraryIdentifier - ios-arm64 + ios-arm64-simulator LibraryPath libbitkitcore.a SupportedArchitectures @@ -19,6 +19,8 @@ SupportedPlatform ios + SupportedPlatformVariant + simulator BinaryPath @@ -26,7 +28,7 @@ HeadersPath Headers LibraryIdentifier - ios-arm64-simulator + ios-arm64 LibraryPath libbitkitcore.a SupportedArchitectures @@ -35,8 +37,6 @@ SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/Headers/bitkitcoreFFI.h b/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/Headers/bitkitcoreFFI.h index f28c6c6..721530a 100644 --- a/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/Headers/bitkitcoreFFI.h +++ b/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/Headers/bitkitcoreFFI.h @@ -253,98 +253,98 @@ typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStr #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 -typedef void (*UniffiCallbackInterfaceEventListenerMethod0)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, +typedef void (*UniffiCallbackInterfaceEventListenerMethod0)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD0 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD1 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD1 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod1)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod1)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD2 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD2 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD3 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD3 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod3)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod3)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD4 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD4 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD5 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD5 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod5)(uint64_t, RustBuffer, uint32_t* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod5)(uint64_t, RustBuffer, uint32_t* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD6 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD6 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod6)(uint64_t, RustBuffer, uint16_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod6)(uint64_t, RustBuffer, uint16_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD7 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD7 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod7)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod7)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD8 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD8 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod8)(uint64_t, RustBuffer, RustBuffer, int8_t* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod8)(uint64_t, RustBuffer, RustBuffer, int8_t* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD9 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD9 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod9)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod9)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD10 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD10 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod10)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod10)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD0 -typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD1 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD1 -typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod1)(uint64_t, int8_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod1)(uint64_t, int8_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); @@ -502,7 +502,7 @@ RustBuffer uniffi_bitkitcore_fn_method_trezoruicallback_on_passphrase_request(vo #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ACTIVITY_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ACTIVITY_WIPE_ALL void uniffi_bitkitcore_fn_func_activity_wipe_all(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ADD_PRE_ACTIVITY_METADATA @@ -528,19 +528,19 @@ uint64_t uniffi_bitkitcore_fn_func_approve_pubky_auth(RustBuffer auth_url, RustB #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES uint64_t uniffi_bitkitcore_fn_func_blocktank_remove_all_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS uint64_t uniffi_bitkitcore_fn_func_blocktank_remove_all_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_WIPE_ALL uint64_t uniffi_bitkitcore_fn_func_blocktank_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BROADCAST_SWEEP_TRANSACTION @@ -556,7 +556,7 @@ RustBuffer uniffi_bitkitcore_fn_func_calculate_channel_liquidity_options(RustBuf #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CANCEL_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CANCEL_PUBKY_AUTH uint64_t uniffi_bitkitcore_fn_func_cancel_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CHECK_SWEEPABLE_BALANCES @@ -567,7 +567,7 @@ uint64_t uniffi_bitkitcore_fn_func_check_sweepable_balances(RustBuffer mnemonic_ #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_COMPLETE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_COMPLETE_PUBKY_AUTH uint64_t uniffi_bitkitcore_fn_func_complete_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CREATE_CHANNEL_REQUEST_URL @@ -703,7 +703,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_activity_by_tx_id(RustBuffer wallet_id, #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_ACTIVITIES_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_ACTIVITIES_TAGS RustBuffer uniffi_bitkitcore_fn_func_get_all_activities_tags(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_CLOSED_CHANNELS @@ -714,19 +714,19 @@ RustBuffer uniffi_bitkitcore_fn_func_get_all_closed_channels(RustBuffer sort_dir #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_PRE_ACTIVITY_METADATA RustBuffer uniffi_bitkitcore_fn_func_get_all_pre_activity_metadata(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_TRANSACTION_DETAILS RustBuffer uniffi_bitkitcore_fn_func_get_all_transaction_details(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_UNIQUE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_UNIQUE_TAGS RustBuffer uniffi_bitkitcore_fn_func_get_all_unique_tags(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_SUGGESTIONS @@ -737,7 +737,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_bip39_suggestions(RustBuffer partial_wo #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_WORDLIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_WORDLIST RustBuffer uniffi_bitkitcore_fn_func_get_bip39_wordlist(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_CJIT_ENTRIES @@ -758,7 +758,7 @@ uint64_t uniffi_bitkitcore_fn_func_get_default_lsp_balance(RustBuffer params, Ru #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_DEFAULT_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_DEFAULT_WALLET_ID RustBuffer uniffi_bitkitcore_fn_func_get_default_wallet_id(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_GIFT @@ -894,7 +894,7 @@ uint64_t uniffi_bitkitcore_fn_func_onchain_start_watcher(RustBuffer params, void #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_ALL_WATCHERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_ALL_WATCHERS void uniffi_bitkitcore_fn_func_onchain_stop_all_watchers(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_WATCHER @@ -960,13 +960,13 @@ uint64_t uniffi_bitkitcore_fn_func_pubky_sign_up(RustBuffer secret_key_hex, Rust #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES uint64_t uniffi_bitkitcore_fn_func_refresh_active_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_ORDERS uint64_t uniffi_bitkitcore_fn_func_refresh_active_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REGISTER_DEVICE @@ -1057,7 +1057,7 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_connect(RustBuffer device_id, RustBuff #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_DISCONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_DISCONNECT uint64_t uniffi_bitkitcore_fn_func_trezor_disconnect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_ADDRESS @@ -1068,19 +1068,19 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_get_address(RustBuffer params #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_CONNECTED_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_CONNECTED_DEVICE uint64_t uniffi_bitkitcore_fn_func_trezor_get_connected_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_DEVICE_FINGERPRINT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_DEVICE_FINGERPRINT uint64_t uniffi_bitkitcore_fn_func_trezor_get_device_fingerprint(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_FEATURES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_FEATURES uint64_t uniffi_bitkitcore_fn_func_trezor_get_features(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_PUBLIC_KEY @@ -1096,31 +1096,37 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_initialize(RustBuffer credential_path #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_BLE_AVAILABLE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_BLE_AVAILABLE int8_t uniffi_bitkitcore_fn_func_trezor_is_ble_available(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_CONNECTED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_CONNECTED uint64_t uniffi_bitkitcore_fn_func_trezor_is_connected(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_INITIALIZED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_INITIALIZED uint64_t uniffi_bitkitcore_fn_func_trezor_is_initialized(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_LIST_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_LIST_DEVICES uint64_t uniffi_bitkitcore_fn_func_trezor_list_devices(void - + +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_REFRESH_FEATURES +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_REFRESH_FEATURES +uint64_t uniffi_bitkitcore_fn_func_trezor_refresh_features(void + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SCAN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SCAN uint64_t uniffi_bitkitcore_fn_func_trezor_scan(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SET_TRANSPORT_CALLBACK @@ -1236,19 +1242,19 @@ void uniffi_bitkitcore_fn_func_validate_mnemonic(RustBuffer mnemonic_phrase, Rus #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_CLOSED_CHANNELS void uniffi_bitkitcore_fn_func_wipe_all_closed_channels(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_DATABASES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_DATABASES uint64_t uniffi_bitkitcore_fn_func_wipe_all_databases(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_TRANSACTION_DETAILS void uniffi_bitkitcore_fn_func_wipe_all_transaction_details(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_FFI_BITKITCORE_RUSTBUFFER_ALLOC @@ -1534,961 +1540,967 @@ void ffi_bitkitcore_rust_future_complete_void(uint64_t handle, RustCallStatus *_ #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ACTIVITY_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ACTIVITY_WIPE_ALL uint16_t uniffi_bitkitcore_checksum_func_activity_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_add_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_add_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_TAGS uint16_t uniffi_bitkitcore_checksum_func_add_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_APPROVE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_APPROVE_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_approve_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_blocktank_remove_all_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS uint16_t uniffi_bitkitcore_checksum_func_blocktank_remove_all_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_WIPE_ALL uint16_t uniffi_bitkitcore_checksum_func_blocktank_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BROADCAST_SWEEP_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BROADCAST_SWEEP_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_broadcast_sweep_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CALCULATE_CHANNEL_LIQUIDITY_OPTIONS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CALCULATE_CHANNEL_LIQUIDITY_OPTIONS uint16_t uniffi_bitkitcore_checksum_func_calculate_channel_liquidity_options(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CANCEL_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CANCEL_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_cancel_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CHECK_SWEEPABLE_BALANCES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CHECK_SWEEPABLE_BALANCES uint16_t uniffi_bitkitcore_checksum_func_check_sweepable_balances(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_COMPLETE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_COMPLETE_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_complete_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CHANNEL_REQUEST_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CHANNEL_REQUEST_URL uint16_t uniffi_bitkitcore_checksum_func_create_channel_request_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CJIT_ENTRY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CJIT_ENTRY uint16_t uniffi_bitkitcore_checksum_func_create_cjit_entry(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_ORDER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_ORDER uint16_t uniffi_bitkitcore_checksum_func_create_order(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_WITHDRAW_CALLBACK_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_WITHDRAW_CALLBACK_URL uint16_t uniffi_bitkitcore_checksum_func_create_withdraw_callback_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DECODE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DECODE uint16_t uniffi_bitkitcore_checksum_func_decode(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITIES_BY_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITIES_BY_WALLET_ID uint16_t uniffi_bitkitcore_checksum_func_delete_activities_by_wallet_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITY_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITY_BY_ID uint16_t uniffi_bitkitcore_checksum_func_delete_activity_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_delete_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_delete_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_derive_bitcoin_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESSES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESSES uint16_t uniffi_bitkitcore_checksum_func_derive_bitcoin_addresses(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_ONCHAIN_DESCRIPTOR #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_ONCHAIN_DESCRIPTOR uint16_t uniffi_bitkitcore_checksum_func_derive_onchain_descriptor(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PRIVATE_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PRIVATE_KEY uint16_t uniffi_bitkitcore_checksum_func_derive_private_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PUBKY_SECRET_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PUBKY_SECRET_KEY uint16_t uniffi_bitkitcore_checksum_func_derive_pubky_secret_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ENTROPY_TO_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ENTROPY_TO_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_entropy_to_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE uint16_t uniffi_bitkitcore_checksum_func_estimate_order_fee(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE_FULL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE_FULL uint16_t uniffi_bitkitcore_checksum_func_estimate_order_fee_full(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_CONTACTS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_CONTACTS uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_contacts(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_file(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE_STRING #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE_STRING uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_file_string(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_PROFILE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_PROFILE uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_profile(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GENERATE_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GENERATE_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_generate_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_get_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES_BY_TAG #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES_BY_TAG uint16_t uniffi_bitkitcore_checksum_func_get_activities_by_tag(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_ID uint16_t uniffi_bitkitcore_checksum_func_get_activity_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_TX_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_TX_ID uint16_t uniffi_bitkitcore_checksum_func_get_activity_by_tx_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_ACTIVITIES_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_ACTIVITIES_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_all_activities_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_get_all_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_get_all_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_get_all_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_UNIQUE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_UNIQUE_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_all_unique_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_SUGGESTIONS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_SUGGESTIONS uint16_t uniffi_bitkitcore_checksum_func_get_bip39_suggestions(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_WORDLIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_WORDLIST uint16_t uniffi_bitkitcore_checksum_func_get_bip39_wordlist(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_get_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CLOSED_CHANNEL_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CLOSED_CHANNEL_BY_ID uint16_t uniffi_bitkitcore_checksum_func_get_closed_channel_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_LSP_BALANCE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_LSP_BALANCE uint16_t uniffi_bitkitcore_checksum_func_get_default_lsp_balance(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_WALLET_ID uint16_t uniffi_bitkitcore_checksum_func_get_default_wallet_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_GIFT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_GIFT uint16_t uniffi_bitkitcore_checksum_func_get_gift(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_INFO uint16_t uniffi_bitkitcore_checksum_func_get_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_LNURL_INVOICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_LNURL_INVOICE uint16_t uniffi_bitkitcore_checksum_func_get_lnurl_invoice(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_MIN_ZERO_CONF_TX_FEE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_MIN_ZERO_CONF_TX_FEE uint16_t uniffi_bitkitcore_checksum_func_get_min_zero_conf_tx_fee(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ORDERS uint16_t uniffi_bitkitcore_checksum_func_get_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PAYMENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PAYMENT uint16_t uniffi_bitkitcore_checksum_func_get_payment(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_get_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_get_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_ORDER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_ORDER uint16_t uniffi_bitkitcore_checksum_func_gift_order(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_PAY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_PAY uint16_t uniffi_bitkitcore_checksum_func_gift_pay(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INIT_DB #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INIT_DB uint16_t uniffi_bitkitcore_checksum_func_init_db(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INSERT_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INSERT_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_insert_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_ADDRESS_USED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_ADDRESS_USED uint16_t uniffi_bitkitcore_checksum_func_is_address_used(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_VALID_BIP39_WORD #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_VALID_BIP39_WORD uint16_t uniffi_bitkitcore_checksum_func_is_valid_bip39_word(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_LNURL_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_LNURL_AUTH uint16_t uniffi_bitkitcore_checksum_func_lnurl_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MARK_ACTIVITY_AS_SEEN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MARK_ACTIVITY_AS_SEEN uint16_t uniffi_bitkitcore_checksum_func_mark_activity_as_seen(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_ENTROPY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_ENTROPY uint16_t uniffi_bitkitcore_checksum_func_mnemonic_to_entropy(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_SEED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_SEED uint16_t uniffi_bitkitcore_checksum_func_mnemonic_to_seed(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_BROADCAST_RAW_TX #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_BROADCAST_RAW_TX uint16_t uniffi_bitkitcore_checksum_func_onchain_broadcast_raw_tx(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_COMPOSE_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_COMPOSE_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_onchain_compose_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ACCOUNT_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ACCOUNT_INFO uint16_t uniffi_bitkitcore_checksum_func_onchain_get_account_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ADDRESS_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ADDRESS_INFO uint16_t uniffi_bitkitcore_checksum_func_onchain_get_address_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_DETAIL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_DETAIL uint16_t uniffi_bitkitcore_checksum_func_onchain_get_transaction_detail(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_HISTORY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_HISTORY uint16_t uniffi_bitkitcore_checksum_func_onchain_get_transaction_history(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_START_WATCHER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_START_WATCHER uint16_t uniffi_bitkitcore_checksum_func_onchain_start_watcher(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_ALL_WATCHERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_ALL_WATCHERS uint16_t uniffi_bitkitcore_checksum_func_onchain_stop_all_watchers(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_WATCHER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_WATCHER uint16_t uniffi_bitkitcore_checksum_func_onchain_stop_watcher(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_OPEN_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_OPEN_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_open_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PARSE_PUBKY_AUTH_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PARSE_PUBKY_AUTH_URL uint16_t uniffi_bitkitcore_checksum_func_parse_pubky_auth_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_SWEEP #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_SWEEP uint16_t uniffi_bitkitcore_checksum_func_prepare_legacy_rn_native_segwit_recovery_sweep(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_SWEEP_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_SWEEP_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_prepare_sweep_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUBLIC_KEY_FROM_SECRET #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUBLIC_KEY_FROM_SECRET uint16_t uniffi_bitkitcore_checksum_func_pubky_public_key_from_secret(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUT_WITH_SECRET_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUT_WITH_SECRET_KEY uint16_t uniffi_bitkitcore_checksum_func_pubky_put_with_secret_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_DELETE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_DELETE uint16_t uniffi_bitkitcore_checksum_func_pubky_session_delete(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_LIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_LIST uint16_t uniffi_bitkitcore_checksum_func_pubky_session_list(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_PUT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_PUT uint16_t uniffi_bitkitcore_checksum_func_pubky_session_put(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_IN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_IN uint16_t uniffi_bitkitcore_checksum_func_pubky_sign_in(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_UP #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_UP uint16_t uniffi_bitkitcore_checksum_func_pubky_sign_up(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_refresh_active_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_ORDERS uint16_t uniffi_bitkitcore_checksum_func_refresh_active_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGISTER_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGISTER_DEVICE uint16_t uniffi_bitkitcore_checksum_func_register_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_CLOSE_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_CLOSE_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_regtest_close_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_DEPOSIT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_DEPOSIT uint16_t uniffi_bitkitcore_checksum_func_regtest_deposit(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_GET_PAYMENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_GET_PAYMENT uint16_t uniffi_bitkitcore_checksum_func_regtest_get_payment(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_MINE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_MINE uint16_t uniffi_bitkitcore_checksum_func_regtest_mine(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_PAY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_PAY uint16_t uniffi_bitkitcore_checksum_func_regtest_pay(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_CLOSED_CHANNEL_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_CLOSED_CHANNEL_BY_ID uint16_t uniffi_bitkitcore_checksum_func_remove_closed_channel_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_remove_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_TAGS uint16_t uniffi_bitkitcore_checksum_func_remove_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESET_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESET_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_reset_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESOLVE_PUBKY_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESOLVE_PUBKY_URL uint16_t uniffi_bitkitcore_checksum_func_resolve_pubky_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_SCAN_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_FUNDS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_SCAN_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_FUNDS uint16_t uniffi_bitkitcore_checksum_func_scan_legacy_rn_native_segwit_recovery_funds(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_START_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_START_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_start_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TEST_NOTIFICATION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TEST_NOTIFICATION uint16_t uniffi_bitkitcore_checksum_func_test_notification(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_ACCOUNT_TYPE_TO_SCRIPT_TYPE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_ACCOUNT_TYPE_TO_SCRIPT_TYPE uint16_t uniffi_bitkitcore_checksum_func_trezor_account_type_to_script_type(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CLEAR_CREDENTIALS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CLEAR_CREDENTIALS uint16_t uniffi_bitkitcore_checksum_func_trezor_clear_credentials(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CONNECT uint16_t uniffi_bitkitcore_checksum_func_trezor_connect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_DISCONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_DISCONNECT uint16_t uniffi_bitkitcore_checksum_func_trezor_disconnect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_trezor_get_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_CONNECTED_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_CONNECTED_DEVICE uint16_t uniffi_bitkitcore_checksum_func_trezor_get_connected_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_DEVICE_FINGERPRINT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_DEVICE_FINGERPRINT uint16_t uniffi_bitkitcore_checksum_func_trezor_get_device_fingerprint(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_FEATURES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_FEATURES uint16_t uniffi_bitkitcore_checksum_func_trezor_get_features(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_PUBLIC_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_PUBLIC_KEY uint16_t uniffi_bitkitcore_checksum_func_trezor_get_public_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_INITIALIZE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_INITIALIZE uint16_t uniffi_bitkitcore_checksum_func_trezor_initialize(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_BLE_AVAILABLE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_BLE_AVAILABLE uint16_t uniffi_bitkitcore_checksum_func_trezor_is_ble_available(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_CONNECTED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_CONNECTED uint16_t uniffi_bitkitcore_checksum_func_trezor_is_connected(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_INITIALIZED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_INITIALIZED uint16_t uniffi_bitkitcore_checksum_func_trezor_is_initialized(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_LIST_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_LIST_DEVICES uint16_t uniffi_bitkitcore_checksum_func_trezor_list_devices(void - + +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_REFRESH_FEATURES +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_REFRESH_FEATURES +uint16_t uniffi_bitkitcore_checksum_func_trezor_refresh_features(void + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SCAN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SCAN uint16_t uniffi_bitkitcore_checksum_func_trezor_scan(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_TRANSPORT_CALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_TRANSPORT_CALLBACK uint16_t uniffi_bitkitcore_checksum_func_trezor_set_transport_callback(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_UI_CALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_UI_CALLBACK uint16_t uniffi_bitkitcore_checksum_func_trezor_set_ui_callback(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_MESSAGE uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_tx(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX_FROM_PSBT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX_FROM_PSBT uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_tx_from_psbt(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_VERIFY_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_VERIFY_MESSAGE uint16_t uniffi_bitkitcore_checksum_func_trezor_verify_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_update_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_BLOCKTANK_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_BLOCKTANK_URL uint16_t uniffi_bitkitcore_checksum_func_update_blocktank_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_upsert_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_upsert_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_upsert_closed_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_upsert_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_INFO uint16_t uniffi_bitkitcore_checksum_func_upsert_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_LIGHTNING_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_LIGHTNING_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_lightning_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ONCHAIN_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ONCHAIN_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_onchain_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ORDERS uint16_t uniffi_bitkitcore_checksum_func_upsert_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_upsert_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TAGS uint16_t uniffi_bitkitcore_checksum_func_upsert_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_upsert_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_BITCOIN_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_BITCOIN_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_validate_bitcoin_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_validate_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_wipe_all_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_DATABASES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_DATABASES uint16_t uniffi_bitkitcore_checksum_func_wipe_all_databases(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_wipe_all_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_EVENTLISTENER_ON_EVENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_EVENTLISTENER_ON_EVENT uint16_t uniffi_bitkitcore_checksum_method_eventlistener_on_event(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_ENUMERATE_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_ENUMERATE_DEVICES uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_enumerate_devices(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_OPEN_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_OPEN_DEVICE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_open_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CLOSE_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CLOSE_DEVICE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_close_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_READ_CHUNK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_READ_CHUNK uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_read_chunk(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_WRITE_CHUNK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_WRITE_CHUNK uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_write_chunk(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_CHUNK_SIZE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_CHUNK_SIZE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_get_chunk_size(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CALL_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CALL_MESSAGE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_call_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_PAIRING_CODE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_PAIRING_CODE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_get_pairing_code(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_SAVE_THP_CREDENTIAL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_SAVE_THP_CREDENTIAL uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_save_thp_credential(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOAD_THP_CREDENTIAL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOAD_THP_CREDENTIAL uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_load_thp_credential(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOG_DEBUG #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOG_DEBUG uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_log_debug(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PIN_REQUEST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PIN_REQUEST uint16_t uniffi_bitkitcore_checksum_method_trezoruicallback_on_pin_request(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PASSPHRASE_REQUEST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PASSPHRASE_REQUEST uint16_t uniffi_bitkitcore_checksum_method_trezoruicallback_on_passphrase_request(void - + ); #endif #ifndef UNIFFI_FFIDEF_FFI_BITKITCORE_UNIFFI_CONTRACT_VERSION #define UNIFFI_FFIDEF_FFI_BITKITCORE_UNIFFI_CONTRACT_VERSION uint32_t ffi_bitkitcore_uniffi_contract_version(void - + ); #endif diff --git a/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/libbitkitcore.a b/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/libbitkitcore.a index 38be0dc..0b65277 100644 Binary files a/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/libbitkitcore.a and b/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/libbitkitcore.a differ diff --git a/bindings/ios/BitkitCore.xcframework/ios-arm64/Headers/bitkitcoreFFI.h b/bindings/ios/BitkitCore.xcframework/ios-arm64/Headers/bitkitcoreFFI.h index f28c6c6..721530a 100644 --- a/bindings/ios/BitkitCore.xcframework/ios-arm64/Headers/bitkitcoreFFI.h +++ b/bindings/ios/BitkitCore.xcframework/ios-arm64/Headers/bitkitcoreFFI.h @@ -253,98 +253,98 @@ typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStr #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 -typedef void (*UniffiCallbackInterfaceEventListenerMethod0)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, +typedef void (*UniffiCallbackInterfaceEventListenerMethod0)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD0 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD1 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD1 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod1)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod1)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD2 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD2 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD3 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD3 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod3)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod3)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD4 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD4 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD5 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD5 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod5)(uint64_t, RustBuffer, uint32_t* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod5)(uint64_t, RustBuffer, uint32_t* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD6 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD6 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod6)(uint64_t, RustBuffer, uint16_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod6)(uint64_t, RustBuffer, uint16_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD7 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD7 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod7)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod7)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD8 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD8 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod8)(uint64_t, RustBuffer, RustBuffer, int8_t* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod8)(uint64_t, RustBuffer, RustBuffer, int8_t* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD9 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD9 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod9)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod9)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD10 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD10 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod10)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod10)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD0 -typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD1 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD1 -typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod1)(uint64_t, int8_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod1)(uint64_t, int8_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); @@ -502,7 +502,7 @@ RustBuffer uniffi_bitkitcore_fn_method_trezoruicallback_on_passphrase_request(vo #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ACTIVITY_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ACTIVITY_WIPE_ALL void uniffi_bitkitcore_fn_func_activity_wipe_all(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ADD_PRE_ACTIVITY_METADATA @@ -528,19 +528,19 @@ uint64_t uniffi_bitkitcore_fn_func_approve_pubky_auth(RustBuffer auth_url, RustB #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES uint64_t uniffi_bitkitcore_fn_func_blocktank_remove_all_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS uint64_t uniffi_bitkitcore_fn_func_blocktank_remove_all_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_WIPE_ALL uint64_t uniffi_bitkitcore_fn_func_blocktank_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BROADCAST_SWEEP_TRANSACTION @@ -556,7 +556,7 @@ RustBuffer uniffi_bitkitcore_fn_func_calculate_channel_liquidity_options(RustBuf #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CANCEL_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CANCEL_PUBKY_AUTH uint64_t uniffi_bitkitcore_fn_func_cancel_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CHECK_SWEEPABLE_BALANCES @@ -567,7 +567,7 @@ uint64_t uniffi_bitkitcore_fn_func_check_sweepable_balances(RustBuffer mnemonic_ #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_COMPLETE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_COMPLETE_PUBKY_AUTH uint64_t uniffi_bitkitcore_fn_func_complete_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CREATE_CHANNEL_REQUEST_URL @@ -703,7 +703,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_activity_by_tx_id(RustBuffer wallet_id, #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_ACTIVITIES_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_ACTIVITIES_TAGS RustBuffer uniffi_bitkitcore_fn_func_get_all_activities_tags(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_CLOSED_CHANNELS @@ -714,19 +714,19 @@ RustBuffer uniffi_bitkitcore_fn_func_get_all_closed_channels(RustBuffer sort_dir #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_PRE_ACTIVITY_METADATA RustBuffer uniffi_bitkitcore_fn_func_get_all_pre_activity_metadata(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_TRANSACTION_DETAILS RustBuffer uniffi_bitkitcore_fn_func_get_all_transaction_details(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_UNIQUE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_UNIQUE_TAGS RustBuffer uniffi_bitkitcore_fn_func_get_all_unique_tags(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_SUGGESTIONS @@ -737,7 +737,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_bip39_suggestions(RustBuffer partial_wo #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_WORDLIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_WORDLIST RustBuffer uniffi_bitkitcore_fn_func_get_bip39_wordlist(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_CJIT_ENTRIES @@ -758,7 +758,7 @@ uint64_t uniffi_bitkitcore_fn_func_get_default_lsp_balance(RustBuffer params, Ru #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_DEFAULT_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_DEFAULT_WALLET_ID RustBuffer uniffi_bitkitcore_fn_func_get_default_wallet_id(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_GIFT @@ -894,7 +894,7 @@ uint64_t uniffi_bitkitcore_fn_func_onchain_start_watcher(RustBuffer params, void #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_ALL_WATCHERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_ALL_WATCHERS void uniffi_bitkitcore_fn_func_onchain_stop_all_watchers(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_WATCHER @@ -960,13 +960,13 @@ uint64_t uniffi_bitkitcore_fn_func_pubky_sign_up(RustBuffer secret_key_hex, Rust #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES uint64_t uniffi_bitkitcore_fn_func_refresh_active_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_ORDERS uint64_t uniffi_bitkitcore_fn_func_refresh_active_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REGISTER_DEVICE @@ -1057,7 +1057,7 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_connect(RustBuffer device_id, RustBuff #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_DISCONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_DISCONNECT uint64_t uniffi_bitkitcore_fn_func_trezor_disconnect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_ADDRESS @@ -1068,19 +1068,19 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_get_address(RustBuffer params #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_CONNECTED_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_CONNECTED_DEVICE uint64_t uniffi_bitkitcore_fn_func_trezor_get_connected_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_DEVICE_FINGERPRINT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_DEVICE_FINGERPRINT uint64_t uniffi_bitkitcore_fn_func_trezor_get_device_fingerprint(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_FEATURES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_FEATURES uint64_t uniffi_bitkitcore_fn_func_trezor_get_features(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_PUBLIC_KEY @@ -1096,31 +1096,37 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_initialize(RustBuffer credential_path #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_BLE_AVAILABLE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_BLE_AVAILABLE int8_t uniffi_bitkitcore_fn_func_trezor_is_ble_available(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_CONNECTED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_CONNECTED uint64_t uniffi_bitkitcore_fn_func_trezor_is_connected(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_INITIALIZED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_INITIALIZED uint64_t uniffi_bitkitcore_fn_func_trezor_is_initialized(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_LIST_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_LIST_DEVICES uint64_t uniffi_bitkitcore_fn_func_trezor_list_devices(void - + +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_REFRESH_FEATURES +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_REFRESH_FEATURES +uint64_t uniffi_bitkitcore_fn_func_trezor_refresh_features(void + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SCAN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SCAN uint64_t uniffi_bitkitcore_fn_func_trezor_scan(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SET_TRANSPORT_CALLBACK @@ -1236,19 +1242,19 @@ void uniffi_bitkitcore_fn_func_validate_mnemonic(RustBuffer mnemonic_phrase, Rus #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_CLOSED_CHANNELS void uniffi_bitkitcore_fn_func_wipe_all_closed_channels(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_DATABASES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_DATABASES uint64_t uniffi_bitkitcore_fn_func_wipe_all_databases(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_TRANSACTION_DETAILS void uniffi_bitkitcore_fn_func_wipe_all_transaction_details(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_FFI_BITKITCORE_RUSTBUFFER_ALLOC @@ -1534,961 +1540,967 @@ void ffi_bitkitcore_rust_future_complete_void(uint64_t handle, RustCallStatus *_ #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ACTIVITY_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ACTIVITY_WIPE_ALL uint16_t uniffi_bitkitcore_checksum_func_activity_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_add_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_add_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_TAGS uint16_t uniffi_bitkitcore_checksum_func_add_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_APPROVE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_APPROVE_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_approve_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_blocktank_remove_all_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS uint16_t uniffi_bitkitcore_checksum_func_blocktank_remove_all_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_WIPE_ALL uint16_t uniffi_bitkitcore_checksum_func_blocktank_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BROADCAST_SWEEP_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BROADCAST_SWEEP_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_broadcast_sweep_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CALCULATE_CHANNEL_LIQUIDITY_OPTIONS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CALCULATE_CHANNEL_LIQUIDITY_OPTIONS uint16_t uniffi_bitkitcore_checksum_func_calculate_channel_liquidity_options(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CANCEL_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CANCEL_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_cancel_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CHECK_SWEEPABLE_BALANCES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CHECK_SWEEPABLE_BALANCES uint16_t uniffi_bitkitcore_checksum_func_check_sweepable_balances(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_COMPLETE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_COMPLETE_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_complete_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CHANNEL_REQUEST_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CHANNEL_REQUEST_URL uint16_t uniffi_bitkitcore_checksum_func_create_channel_request_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CJIT_ENTRY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CJIT_ENTRY uint16_t uniffi_bitkitcore_checksum_func_create_cjit_entry(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_ORDER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_ORDER uint16_t uniffi_bitkitcore_checksum_func_create_order(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_WITHDRAW_CALLBACK_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_WITHDRAW_CALLBACK_URL uint16_t uniffi_bitkitcore_checksum_func_create_withdraw_callback_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DECODE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DECODE uint16_t uniffi_bitkitcore_checksum_func_decode(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITIES_BY_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITIES_BY_WALLET_ID uint16_t uniffi_bitkitcore_checksum_func_delete_activities_by_wallet_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITY_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITY_BY_ID uint16_t uniffi_bitkitcore_checksum_func_delete_activity_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_delete_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_delete_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_derive_bitcoin_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESSES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESSES uint16_t uniffi_bitkitcore_checksum_func_derive_bitcoin_addresses(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_ONCHAIN_DESCRIPTOR #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_ONCHAIN_DESCRIPTOR uint16_t uniffi_bitkitcore_checksum_func_derive_onchain_descriptor(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PRIVATE_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PRIVATE_KEY uint16_t uniffi_bitkitcore_checksum_func_derive_private_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PUBKY_SECRET_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PUBKY_SECRET_KEY uint16_t uniffi_bitkitcore_checksum_func_derive_pubky_secret_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ENTROPY_TO_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ENTROPY_TO_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_entropy_to_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE uint16_t uniffi_bitkitcore_checksum_func_estimate_order_fee(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE_FULL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE_FULL uint16_t uniffi_bitkitcore_checksum_func_estimate_order_fee_full(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_CONTACTS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_CONTACTS uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_contacts(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_file(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE_STRING #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE_STRING uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_file_string(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_PROFILE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_PROFILE uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_profile(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GENERATE_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GENERATE_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_generate_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_get_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES_BY_TAG #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES_BY_TAG uint16_t uniffi_bitkitcore_checksum_func_get_activities_by_tag(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_ID uint16_t uniffi_bitkitcore_checksum_func_get_activity_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_TX_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_TX_ID uint16_t uniffi_bitkitcore_checksum_func_get_activity_by_tx_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_ACTIVITIES_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_ACTIVITIES_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_all_activities_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_get_all_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_get_all_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_get_all_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_UNIQUE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_UNIQUE_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_all_unique_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_SUGGESTIONS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_SUGGESTIONS uint16_t uniffi_bitkitcore_checksum_func_get_bip39_suggestions(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_WORDLIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_WORDLIST uint16_t uniffi_bitkitcore_checksum_func_get_bip39_wordlist(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_get_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CLOSED_CHANNEL_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CLOSED_CHANNEL_BY_ID uint16_t uniffi_bitkitcore_checksum_func_get_closed_channel_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_LSP_BALANCE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_LSP_BALANCE uint16_t uniffi_bitkitcore_checksum_func_get_default_lsp_balance(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_WALLET_ID uint16_t uniffi_bitkitcore_checksum_func_get_default_wallet_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_GIFT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_GIFT uint16_t uniffi_bitkitcore_checksum_func_get_gift(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_INFO uint16_t uniffi_bitkitcore_checksum_func_get_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_LNURL_INVOICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_LNURL_INVOICE uint16_t uniffi_bitkitcore_checksum_func_get_lnurl_invoice(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_MIN_ZERO_CONF_TX_FEE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_MIN_ZERO_CONF_TX_FEE uint16_t uniffi_bitkitcore_checksum_func_get_min_zero_conf_tx_fee(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ORDERS uint16_t uniffi_bitkitcore_checksum_func_get_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PAYMENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PAYMENT uint16_t uniffi_bitkitcore_checksum_func_get_payment(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_get_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_get_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_ORDER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_ORDER uint16_t uniffi_bitkitcore_checksum_func_gift_order(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_PAY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_PAY uint16_t uniffi_bitkitcore_checksum_func_gift_pay(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INIT_DB #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INIT_DB uint16_t uniffi_bitkitcore_checksum_func_init_db(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INSERT_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INSERT_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_insert_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_ADDRESS_USED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_ADDRESS_USED uint16_t uniffi_bitkitcore_checksum_func_is_address_used(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_VALID_BIP39_WORD #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_VALID_BIP39_WORD uint16_t uniffi_bitkitcore_checksum_func_is_valid_bip39_word(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_LNURL_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_LNURL_AUTH uint16_t uniffi_bitkitcore_checksum_func_lnurl_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MARK_ACTIVITY_AS_SEEN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MARK_ACTIVITY_AS_SEEN uint16_t uniffi_bitkitcore_checksum_func_mark_activity_as_seen(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_ENTROPY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_ENTROPY uint16_t uniffi_bitkitcore_checksum_func_mnemonic_to_entropy(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_SEED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_SEED uint16_t uniffi_bitkitcore_checksum_func_mnemonic_to_seed(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_BROADCAST_RAW_TX #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_BROADCAST_RAW_TX uint16_t uniffi_bitkitcore_checksum_func_onchain_broadcast_raw_tx(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_COMPOSE_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_COMPOSE_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_onchain_compose_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ACCOUNT_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ACCOUNT_INFO uint16_t uniffi_bitkitcore_checksum_func_onchain_get_account_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ADDRESS_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ADDRESS_INFO uint16_t uniffi_bitkitcore_checksum_func_onchain_get_address_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_DETAIL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_DETAIL uint16_t uniffi_bitkitcore_checksum_func_onchain_get_transaction_detail(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_HISTORY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_HISTORY uint16_t uniffi_bitkitcore_checksum_func_onchain_get_transaction_history(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_START_WATCHER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_START_WATCHER uint16_t uniffi_bitkitcore_checksum_func_onchain_start_watcher(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_ALL_WATCHERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_ALL_WATCHERS uint16_t uniffi_bitkitcore_checksum_func_onchain_stop_all_watchers(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_WATCHER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_WATCHER uint16_t uniffi_bitkitcore_checksum_func_onchain_stop_watcher(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_OPEN_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_OPEN_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_open_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PARSE_PUBKY_AUTH_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PARSE_PUBKY_AUTH_URL uint16_t uniffi_bitkitcore_checksum_func_parse_pubky_auth_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_SWEEP #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_SWEEP uint16_t uniffi_bitkitcore_checksum_func_prepare_legacy_rn_native_segwit_recovery_sweep(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_SWEEP_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_SWEEP_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_prepare_sweep_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUBLIC_KEY_FROM_SECRET #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUBLIC_KEY_FROM_SECRET uint16_t uniffi_bitkitcore_checksum_func_pubky_public_key_from_secret(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUT_WITH_SECRET_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUT_WITH_SECRET_KEY uint16_t uniffi_bitkitcore_checksum_func_pubky_put_with_secret_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_DELETE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_DELETE uint16_t uniffi_bitkitcore_checksum_func_pubky_session_delete(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_LIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_LIST uint16_t uniffi_bitkitcore_checksum_func_pubky_session_list(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_PUT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_PUT uint16_t uniffi_bitkitcore_checksum_func_pubky_session_put(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_IN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_IN uint16_t uniffi_bitkitcore_checksum_func_pubky_sign_in(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_UP #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_UP uint16_t uniffi_bitkitcore_checksum_func_pubky_sign_up(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_refresh_active_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_ORDERS uint16_t uniffi_bitkitcore_checksum_func_refresh_active_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGISTER_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGISTER_DEVICE uint16_t uniffi_bitkitcore_checksum_func_register_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_CLOSE_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_CLOSE_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_regtest_close_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_DEPOSIT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_DEPOSIT uint16_t uniffi_bitkitcore_checksum_func_regtest_deposit(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_GET_PAYMENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_GET_PAYMENT uint16_t uniffi_bitkitcore_checksum_func_regtest_get_payment(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_MINE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_MINE uint16_t uniffi_bitkitcore_checksum_func_regtest_mine(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_PAY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_PAY uint16_t uniffi_bitkitcore_checksum_func_regtest_pay(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_CLOSED_CHANNEL_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_CLOSED_CHANNEL_BY_ID uint16_t uniffi_bitkitcore_checksum_func_remove_closed_channel_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_remove_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_TAGS uint16_t uniffi_bitkitcore_checksum_func_remove_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESET_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESET_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_reset_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESOLVE_PUBKY_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESOLVE_PUBKY_URL uint16_t uniffi_bitkitcore_checksum_func_resolve_pubky_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_SCAN_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_FUNDS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_SCAN_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_FUNDS uint16_t uniffi_bitkitcore_checksum_func_scan_legacy_rn_native_segwit_recovery_funds(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_START_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_START_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_start_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TEST_NOTIFICATION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TEST_NOTIFICATION uint16_t uniffi_bitkitcore_checksum_func_test_notification(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_ACCOUNT_TYPE_TO_SCRIPT_TYPE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_ACCOUNT_TYPE_TO_SCRIPT_TYPE uint16_t uniffi_bitkitcore_checksum_func_trezor_account_type_to_script_type(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CLEAR_CREDENTIALS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CLEAR_CREDENTIALS uint16_t uniffi_bitkitcore_checksum_func_trezor_clear_credentials(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CONNECT uint16_t uniffi_bitkitcore_checksum_func_trezor_connect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_DISCONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_DISCONNECT uint16_t uniffi_bitkitcore_checksum_func_trezor_disconnect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_trezor_get_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_CONNECTED_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_CONNECTED_DEVICE uint16_t uniffi_bitkitcore_checksum_func_trezor_get_connected_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_DEVICE_FINGERPRINT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_DEVICE_FINGERPRINT uint16_t uniffi_bitkitcore_checksum_func_trezor_get_device_fingerprint(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_FEATURES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_FEATURES uint16_t uniffi_bitkitcore_checksum_func_trezor_get_features(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_PUBLIC_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_PUBLIC_KEY uint16_t uniffi_bitkitcore_checksum_func_trezor_get_public_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_INITIALIZE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_INITIALIZE uint16_t uniffi_bitkitcore_checksum_func_trezor_initialize(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_BLE_AVAILABLE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_BLE_AVAILABLE uint16_t uniffi_bitkitcore_checksum_func_trezor_is_ble_available(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_CONNECTED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_CONNECTED uint16_t uniffi_bitkitcore_checksum_func_trezor_is_connected(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_INITIALIZED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_INITIALIZED uint16_t uniffi_bitkitcore_checksum_func_trezor_is_initialized(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_LIST_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_LIST_DEVICES uint16_t uniffi_bitkitcore_checksum_func_trezor_list_devices(void - + +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_REFRESH_FEATURES +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_REFRESH_FEATURES +uint16_t uniffi_bitkitcore_checksum_func_trezor_refresh_features(void + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SCAN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SCAN uint16_t uniffi_bitkitcore_checksum_func_trezor_scan(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_TRANSPORT_CALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_TRANSPORT_CALLBACK uint16_t uniffi_bitkitcore_checksum_func_trezor_set_transport_callback(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_UI_CALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_UI_CALLBACK uint16_t uniffi_bitkitcore_checksum_func_trezor_set_ui_callback(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_MESSAGE uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_tx(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX_FROM_PSBT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX_FROM_PSBT uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_tx_from_psbt(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_VERIFY_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_VERIFY_MESSAGE uint16_t uniffi_bitkitcore_checksum_func_trezor_verify_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_update_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_BLOCKTANK_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_BLOCKTANK_URL uint16_t uniffi_bitkitcore_checksum_func_update_blocktank_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_upsert_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_upsert_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_upsert_closed_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_upsert_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_INFO uint16_t uniffi_bitkitcore_checksum_func_upsert_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_LIGHTNING_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_LIGHTNING_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_lightning_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ONCHAIN_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ONCHAIN_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_onchain_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ORDERS uint16_t uniffi_bitkitcore_checksum_func_upsert_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_upsert_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TAGS uint16_t uniffi_bitkitcore_checksum_func_upsert_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_upsert_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_BITCOIN_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_BITCOIN_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_validate_bitcoin_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_validate_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_wipe_all_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_DATABASES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_DATABASES uint16_t uniffi_bitkitcore_checksum_func_wipe_all_databases(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_wipe_all_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_EVENTLISTENER_ON_EVENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_EVENTLISTENER_ON_EVENT uint16_t uniffi_bitkitcore_checksum_method_eventlistener_on_event(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_ENUMERATE_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_ENUMERATE_DEVICES uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_enumerate_devices(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_OPEN_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_OPEN_DEVICE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_open_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CLOSE_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CLOSE_DEVICE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_close_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_READ_CHUNK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_READ_CHUNK uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_read_chunk(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_WRITE_CHUNK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_WRITE_CHUNK uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_write_chunk(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_CHUNK_SIZE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_CHUNK_SIZE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_get_chunk_size(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CALL_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CALL_MESSAGE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_call_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_PAIRING_CODE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_PAIRING_CODE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_get_pairing_code(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_SAVE_THP_CREDENTIAL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_SAVE_THP_CREDENTIAL uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_save_thp_credential(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOAD_THP_CREDENTIAL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOAD_THP_CREDENTIAL uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_load_thp_credential(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOG_DEBUG #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOG_DEBUG uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_log_debug(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PIN_REQUEST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PIN_REQUEST uint16_t uniffi_bitkitcore_checksum_method_trezoruicallback_on_pin_request(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PASSPHRASE_REQUEST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PASSPHRASE_REQUEST uint16_t uniffi_bitkitcore_checksum_method_trezoruicallback_on_passphrase_request(void - + ); #endif #ifndef UNIFFI_FFIDEF_FFI_BITKITCORE_UNIFFI_CONTRACT_VERSION #define UNIFFI_FFIDEF_FFI_BITKITCORE_UNIFFI_CONTRACT_VERSION uint32_t ffi_bitkitcore_uniffi_contract_version(void - + ); #endif diff --git a/bindings/ios/BitkitCore.xcframework/ios-arm64/libbitkitcore.a b/bindings/ios/BitkitCore.xcframework/ios-arm64/libbitkitcore.a index 83364cb..a90389c 100644 Binary files a/bindings/ios/BitkitCore.xcframework/ios-arm64/libbitkitcore.a and b/bindings/ios/BitkitCore.xcframework/ios-arm64/libbitkitcore.a differ diff --git a/bindings/ios/bitkitcore.swift b/bindings/ios/bitkitcore.swift index 1381385..007195e 100644 --- a/bindings/ios/bitkitcore.swift +++ b/bindings/ios/bitkitcore.swift @@ -592,15 +592,15 @@ fileprivate struct FfiConverterData: FfiConverterRustBuffer { * from xpub watchers. */ public protocol EventListener: AnyObject, Sendable { - + /** * Called when a watcher event occurs. * * `watcher_id` identifies which watcher produced the event. * `event` is a typed enum — no JSON parsing needed. */ - func onEvent(watcherId: String, event: WatcherEvent) - + func onEvent(watcherId: String, event: WatcherEvent) + } /** * Callback interface for receiving watcher events. @@ -657,9 +657,9 @@ open class EventListenerImpl: EventListener, @unchecked Sendable { try! rustCall { uniffi_bitkitcore_fn_free_eventlistener(pointer, $0) } } + - - + /** * Called when a watcher event occurs. * @@ -673,7 +673,7 @@ open func onEvent(watcherId: String, event: WatcherEvent) {try! rustCall() { ) } } - + } @@ -705,7 +705,7 @@ fileprivate struct UniffiCallbackInterfaceEventListener { ) } - + let writeReturn = { () } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -808,37 +808,37 @@ public func FfiConverterTypeEventListener_lower(_ value: EventListener) -> Unsaf * Use IOKit/CoreBluetooth with same service/characteristic UUIDs. */ public protocol TrezorTransportCallback: AnyObject, Sendable { - + /** * Enumerate all connected Trezor devices */ func enumerateDevices() -> [NativeDeviceInfo] - + /** * Open a connection to a device */ func openDevice(path: String) -> TrezorTransportWriteResult - + /** * Close the connection to a device */ func closeDevice(path: String) -> TrezorTransportWriteResult - + /** * Read a chunk of data from the device */ func readChunk(path: String) -> TrezorTransportReadResult - + /** * Write a chunk of data to the device */ func writeChunk(path: String, data: Data) -> TrezorTransportWriteResult - + /** * Get the chunk size for a device (64 for USB, 244 for Bluetooth) */ func getChunkSize(path: String) -> UInt32 - + /** * High-level message call for BLE/THP devices. * @@ -855,7 +855,7 @@ public protocol TrezorTransportCallback: AnyObject, Sendable { * * `data` - Serialized protobuf message data */ func callMessage(path: String, messageType: UInt16, data: Data) -> TrezorCallMessageResult? - + /** * Get pairing code from user during BLE THP pairing. * @@ -868,7 +868,7 @@ public protocol TrezorTransportCallback: AnyObject, Sendable { * Returns the 6-digit code as a string, or empty string to cancel. */ func getPairingCode() -> String - + /** * Save THP pairing credentials for a device. * @@ -882,7 +882,7 @@ public protocol TrezorTransportCallback: AnyObject, Sendable { * Returns true if credentials were saved successfully. */ func saveThpCredential(deviceId: String, credentialJson: String) -> Bool - + /** * Load THP pairing credentials for a device. * @@ -895,7 +895,7 @@ public protocol TrezorTransportCallback: AnyObject, Sendable { * Returns the JSON string containing ThpCredentials, or None if not found. */ func loadThpCredential(deviceId: String) -> String? - + /** * Log a debug message from the Rust THP handshake layer. * @@ -907,8 +907,8 @@ public protocol TrezorTransportCallback: AnyObject, Sendable { * * `tag` - Short tag identifying the subsystem (e.g., "HANDSHAKE", "THP") * * `message` - Human-readable debug message */ - func logDebug(tag: String, message: String) - + func logDebug(tag: String, message: String) + } /** * Callback interface for native Trezor transport operations @@ -981,9 +981,9 @@ open class TrezorTransportCallbackImpl: TrezorTransportCallback, @unchecked Send try! rustCall { uniffi_bitkitcore_fn_free_trezortransportcallback(pointer, $0) } } + - - + /** * Enumerate all connected Trezor devices */ @@ -993,7 +993,7 @@ open func enumerateDevices() -> [NativeDeviceInfo] { ) }) } - + /** * Open a connection to a device */ @@ -1004,7 +1004,7 @@ open func openDevice(path: String) -> TrezorTransportWriteResult { ) }) } - + /** * Close the connection to a device */ @@ -1015,7 +1015,7 @@ open func closeDevice(path: String) -> TrezorTransportWriteResult { ) }) } - + /** * Read a chunk of data from the device */ @@ -1026,7 +1026,7 @@ open func readChunk(path: String) -> TrezorTransportReadResult { ) }) } - + /** * Write a chunk of data to the device */ @@ -1038,7 +1038,7 @@ open func writeChunk(path: String, data: Data) -> TrezorTransportWriteResult { ) }) } - + /** * Get the chunk size for a device (64 for USB, 244 for Bluetooth) */ @@ -1049,7 +1049,7 @@ open func getChunkSize(path: String) -> UInt32 { ) }) } - + /** * High-level message call for BLE/THP devices. * @@ -1074,7 +1074,7 @@ open func callMessage(path: String, messageType: UInt16, data: Data) -> TrezorCa ) }) } - + /** * Get pairing code from user during BLE THP pairing. * @@ -1092,7 +1092,7 @@ open func getPairingCode() -> String { ) }) } - + /** * Save THP pairing credentials for a device. * @@ -1113,7 +1113,7 @@ open func saveThpCredential(deviceId: String, credentialJson: String) -> Bool { ) }) } - + /** * Load THP pairing credentials for a device. * @@ -1132,7 +1132,7 @@ open func loadThpCredential(deviceId: String) -> String? { ) }) } - + /** * Log a debug message from the Rust THP handshake layer. * @@ -1151,7 +1151,7 @@ open func logDebug(tag: String, message: String) {try! rustCall() { ) } } - + } @@ -1179,7 +1179,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterSequenceTypeNativeDeviceInfo.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1203,7 +1203,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterTypeTrezorTransportWriteResult_lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1227,7 +1227,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterTypeTrezorTransportWriteResult_lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1251,7 +1251,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterTypeTrezorTransportReadResult_lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1277,7 +1277,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterTypeTrezorTransportWriteResult_lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1301,7 +1301,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterUInt32.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1329,7 +1329,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterOptionTypeTrezorCallMessageResult.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1351,7 +1351,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1377,7 +1377,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterBool.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1401,7 +1401,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterOptionString.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1427,7 +1427,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorTransportCallback { ) } - + let writeReturn = { () } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1514,7 +1514,7 @@ public func FfiConverterTypeTrezorTransportCallback_lower(_ value: TrezorTranspo * input UI when the device requests it during operations like signing. */ public protocol TrezorUiCallback: AnyObject, Sendable { - + /** * Called when the device requests a PIN. * @@ -1522,7 +1522,7 @@ public protocol TrezorUiCallback: AnyObject, Sendable { * Return empty string to cancel. */ func onPinRequest() -> String - + /** * Called when the device requests a passphrase. * @@ -1534,7 +1534,7 @@ public protocol TrezorUiCallback: AnyObject, Sendable { * `OnDevice` (defer entry to the Trezor), or `Cancel`. */ func onPassphraseRequest(onDevice: Bool) -> PassphraseResponse - + } /** * Callback interface for handling PIN and passphrase requests from the Trezor device. @@ -1591,9 +1591,9 @@ open class TrezorUiCallbackImpl: TrezorUiCallback, @unchecked Sendable { try! rustCall { uniffi_bitkitcore_fn_free_trezoruicallback(pointer, $0) } } + - - + /** * Called when the device requests a PIN. * @@ -1606,7 +1606,7 @@ open func onPinRequest() -> String { ) }) } - + /** * Called when the device requests a passphrase. * @@ -1624,7 +1624,7 @@ open func onPassphraseRequest(onDevice: Bool) -> PassphraseResponse { ) }) } - + } @@ -1652,7 +1652,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorUiCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterString.lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1676,7 +1676,7 @@ fileprivate struct UniffiCallbackInterfaceTrezorUiCallback { ) } - + let writeReturn = { uniffiOutReturn.pointee = FfiConverterTypePassphraseResponse_lower($0) } uniffiTraitInterfaceCall( callStatus: uniffiCallStatus, @@ -1776,10 +1776,10 @@ public struct AccountAddresses { public init( /** * Used receive addresses (have at least one transaction) - */used: [AddressInfo], + */used: [AddressInfo], /** * Unused receive addresses (no transactions yet) - */unused: [AddressInfo], + */unused: [AddressInfo], /** * Change addresses */change: [AddressInfo]) { @@ -1826,8 +1826,8 @@ public struct FfiConverterTypeAccountAddresses: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AccountAddresses { return try AccountAddresses( - used: FfiConverterSequenceTypeAddressInfo.read(from: &buf), - unused: FfiConverterSequenceTypeAddressInfo.read(from: &buf), + used: FfiConverterSequenceTypeAddressInfo.read(from: &buf), + unused: FfiConverterSequenceTypeAddressInfo.read(from: &buf), change: FfiConverterSequenceTypeAddressInfo.read(from: &buf) ) } @@ -1885,16 +1885,16 @@ public struct AccountInfoResult { public init( /** * The account structure with addresses and UTXOs - */account: ComposeAccount, + */account: ComposeAccount, /** * Total confirmed balance in satoshis - */balance: UInt64, + */balance: UInt64, /** * Number of UTXOs - */utxoCount: UInt32, + */utxoCount: UInt32, /** * The detected or specified account type - */accountType: AccountType, + */accountType: AccountType, /** * The current blockchain tip height */blockHeight: UInt32) { @@ -1951,10 +1951,10 @@ public struct FfiConverterTypeAccountInfoResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AccountInfoResult { return try AccountInfoResult( - account: FfiConverterTypeComposeAccount.read(from: &buf), - balance: FfiConverterUInt64.read(from: &buf), - utxoCount: FfiConverterUInt32.read(from: &buf), - accountType: FfiConverterTypeAccountType.read(from: &buf), + account: FfiConverterTypeComposeAccount.read(from: &buf), + balance: FfiConverterUInt64.read(from: &buf), + utxoCount: FfiConverterUInt32.read(from: &buf), + accountType: FfiConverterTypeAccountType.read(from: &buf), blockHeight: FfiConverterUInt32.read(from: &buf) ) } @@ -2034,31 +2034,31 @@ public struct AccountUtxo { public init( /** * Transaction ID (hex) - */txid: String, + */txid: String, /** * Output index - */vout: UInt32, + */vout: UInt32, /** * Amount in satoshis - */amount: UInt64, + */amount: UInt64, /** * Block height where the UTXO was confirmed (0 if unconfirmed) - */blockHeight: UInt32, + */blockHeight: UInt32, /** * Address holding this UTXO - */address: String, + */address: String, /** * BIP32 derivation path (e.g., "m/84'/0'/0'/0/0") - */path: String, + */path: String, /** * Number of confirmations (0 if unconfirmed) - */confirmations: UInt32, + */confirmations: UInt32, /** * Whether this is a coinbase output - */coinbase: Bool, + */coinbase: Bool, /** * Whether this UTXO is owned by the account - */own: Bool, + */own: Bool, /** * Whether this UTXO must be included in the transaction */required: Bool?) { @@ -2140,15 +2140,15 @@ public struct FfiConverterTypeAccountUtxo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AccountUtxo { return try AccountUtxo( - txid: FfiConverterString.read(from: &buf), - vout: FfiConverterUInt32.read(from: &buf), - amount: FfiConverterUInt64.read(from: &buf), - blockHeight: FfiConverterUInt32.read(from: &buf), - address: FfiConverterString.read(from: &buf), - path: FfiConverterString.read(from: &buf), - confirmations: FfiConverterUInt32.read(from: &buf), - coinbase: FfiConverterBool.read(from: &buf), - own: FfiConverterBool.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + vout: FfiConverterUInt32.read(from: &buf), + amount: FfiConverterUInt64.read(from: &buf), + blockHeight: FfiConverterUInt32.read(from: &buf), + address: FfiConverterString.read(from: &buf), + path: FfiConverterString.read(from: &buf), + confirmations: FfiConverterUInt32.read(from: &buf), + coinbase: FfiConverterBool.read(from: &buf), + own: FfiConverterBool.read(from: &buf), required: FfiConverterOptionBool.read(from: &buf) ) } @@ -2234,8 +2234,8 @@ public struct FfiConverterTypeActivityTags: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ActivityTags { return try ActivityTags( - walletId: FfiConverterString.read(from: &buf), - activityId: FfiConverterString.read(from: &buf), + walletId: FfiConverterString.read(from: &buf), + activityId: FfiConverterString.read(from: &buf), tags: FfiConverterSequenceString.read(from: &buf) ) } @@ -2285,10 +2285,10 @@ public struct AddressInfo { public init( /** * The Bitcoin address - */address: String, + */address: String, /** * BIP32 derivation path - */path: String, + */path: String, /** * Number of transfers (real count in `get_address_info`, 1/0 presence flag in `get_account_info`) */transfers: UInt32) { @@ -2335,8 +2335,8 @@ public struct FfiConverterTypeAddressInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddressInfo { return try AddressInfo( - address: FfiConverterString.read(from: &buf), - path: FfiConverterString.read(from: &buf), + address: FfiConverterString.read(from: &buf), + path: FfiConverterString.read(from: &buf), transfers: FfiConverterUInt32.read(from: &buf) ) } @@ -2421,9 +2421,9 @@ public struct FfiConverterTypeChannelLiquidityOptions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ChannelLiquidityOptions { return try ChannelLiquidityOptions( - defaultLspBalanceSat: FfiConverterUInt64.read(from: &buf), - minLspBalanceSat: FfiConverterUInt64.read(from: &buf), - maxLspBalanceSat: FfiConverterUInt64.read(from: &buf), + defaultLspBalanceSat: FfiConverterUInt64.read(from: &buf), + minLspBalanceSat: FfiConverterUInt64.read(from: &buf), + maxLspBalanceSat: FfiConverterUInt64.read(from: &buf), maxClientBalanceSat: FfiConverterUInt64.read(from: &buf) ) } @@ -2515,10 +2515,10 @@ public struct FfiConverterTypeChannelLiquidityParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ChannelLiquidityParams { return try ChannelLiquidityParams( - clientBalanceSat: FfiConverterUInt64.read(from: &buf), - existingChannelsTotalSat: FfiConverterUInt64.read(from: &buf), - minChannelSizeSat: FfiConverterUInt64.read(from: &buf), - maxChannelSizeSat: FfiConverterUInt64.read(from: &buf), + clientBalanceSat: FfiConverterUInt64.read(from: &buf), + existingChannelsTotalSat: FfiConverterUInt64.read(from: &buf), + minChannelSizeSat: FfiConverterUInt64.read(from: &buf), + maxChannelSizeSat: FfiConverterUInt64.read(from: &buf), satsPerEur: FfiConverterUInt64.read(from: &buf) ) } @@ -2665,19 +2665,19 @@ public struct FfiConverterTypeClosedChannelDetails: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ClosedChannelDetails { return try ClosedChannelDetails( - channelId: FfiConverterString.read(from: &buf), - counterpartyNodeId: FfiConverterString.read(from: &buf), - fundingTxoTxid: FfiConverterString.read(from: &buf), - fundingTxoIndex: FfiConverterUInt32.read(from: &buf), - channelValueSats: FfiConverterUInt64.read(from: &buf), - closedAt: FfiConverterUInt64.read(from: &buf), - outboundCapacityMsat: FfiConverterUInt64.read(from: &buf), - inboundCapacityMsat: FfiConverterUInt64.read(from: &buf), - counterpartyUnspendablePunishmentReserve: FfiConverterUInt64.read(from: &buf), - unspendablePunishmentReserve: FfiConverterUInt64.read(from: &buf), - forwardingFeeProportionalMillionths: FfiConverterUInt32.read(from: &buf), - forwardingFeeBaseMsat: FfiConverterUInt32.read(from: &buf), - channelName: FfiConverterString.read(from: &buf), + channelId: FfiConverterString.read(from: &buf), + counterpartyNodeId: FfiConverterString.read(from: &buf), + fundingTxoTxid: FfiConverterString.read(from: &buf), + fundingTxoIndex: FfiConverterUInt32.read(from: &buf), + channelValueSats: FfiConverterUInt64.read(from: &buf), + closedAt: FfiConverterUInt64.read(from: &buf), + outboundCapacityMsat: FfiConverterUInt64.read(from: &buf), + inboundCapacityMsat: FfiConverterUInt64.read(from: &buf), + counterpartyUnspendablePunishmentReserve: FfiConverterUInt64.read(from: &buf), + unspendablePunishmentReserve: FfiConverterUInt64.read(from: &buf), + forwardingFeeProportionalMillionths: FfiConverterUInt32.read(from: &buf), + forwardingFeeBaseMsat: FfiConverterUInt32.read(from: &buf), + channelName: FfiConverterString.read(from: &buf), channelClosureReason: FfiConverterString.read(from: &buf) ) } @@ -2738,10 +2738,10 @@ public struct ComposeAccount { public init( /** * Account derivation path (e.g., "m/84'/0'/0'") - */path: String, + */path: String, /** * Categorized addresses - */addresses: AccountAddresses, + */addresses: AccountAddresses, /** * Unspent transaction outputs */utxo: [AccountUtxo]) { @@ -2788,8 +2788,8 @@ public struct FfiConverterTypeComposeAccount: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ComposeAccount { return try ComposeAccount( - path: FfiConverterString.read(from: &buf), - addresses: FfiConverterTypeAccountAddresses.read(from: &buf), + path: FfiConverterString.read(from: &buf), + addresses: FfiConverterTypeAccountAddresses.read(from: &buf), utxo: FfiConverterSequenceTypeAccountUtxo.read(from: &buf) ) } @@ -2843,13 +2843,13 @@ public struct ComposeParams { public init( /** * Wallet configuration (key, server, network) - */wallet: WalletParams, + */wallet: WalletParams, /** * Desired transaction outputs - */outputs: [ComposeOutput], + */outputs: [ComposeOutput], /** * Fee rates to evaluate (sat/vB), one PSBT per rate - */feeRates: [Float], + */feeRates: [Float], /** * UTXO selection strategy (defaults to BranchAndBound) */coinSelection: CoinSelection?) { @@ -2901,9 +2901,9 @@ public struct FfiConverterTypeComposeParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ComposeParams { return try ComposeParams( - wallet: FfiConverterTypeWalletParams.read(from: &buf), - outputs: FfiConverterSequenceTypeComposeOutput.read(from: &buf), - feeRates: FfiConverterSequenceFloat.read(from: &buf), + wallet: FfiConverterTypeWalletParams.read(from: &buf), + outputs: FfiConverterSequenceTypeComposeOutput.read(from: &buf), + feeRates: FfiConverterSequenceFloat.read(from: &buf), coinSelection: FfiConverterOptionTypeCoinSelection.read(from: &buf) ) } @@ -2977,7 +2977,7 @@ public struct FfiConverterTypeCreateCjitOptions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> CreateCjitOptions { return try CreateCjitOptions( - source: FfiConverterOptionString.read(from: &buf), + source: FfiConverterOptionString.read(from: &buf), discountCode: FfiConverterOptionString.read(from: &buf) ) } @@ -3115,18 +3115,18 @@ public struct FfiConverterTypeCreateOrderOptions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> CreateOrderOptions { return try CreateOrderOptions( - clientBalanceSat: FfiConverterUInt64.read(from: &buf), - lspNodeId: FfiConverterOptionString.read(from: &buf), - couponCode: FfiConverterString.read(from: &buf), - source: FfiConverterOptionString.read(from: &buf), - discountCode: FfiConverterOptionString.read(from: &buf), - zeroConf: FfiConverterBool.read(from: &buf), - zeroConfPayment: FfiConverterOptionBool.read(from: &buf), - zeroReserve: FfiConverterBool.read(from: &buf), - clientNodeId: FfiConverterOptionString.read(from: &buf), - signature: FfiConverterOptionString.read(from: &buf), - timestamp: FfiConverterOptionString.read(from: &buf), - refundOnchainAddress: FfiConverterOptionString.read(from: &buf), + clientBalanceSat: FfiConverterUInt64.read(from: &buf), + lspNodeId: FfiConverterOptionString.read(from: &buf), + couponCode: FfiConverterString.read(from: &buf), + source: FfiConverterOptionString.read(from: &buf), + discountCode: FfiConverterOptionString.read(from: &buf), + zeroConf: FfiConverterBool.read(from: &buf), + zeroConfPayment: FfiConverterOptionBool.read(from: &buf), + zeroReserve: FfiConverterBool.read(from: &buf), + clientNodeId: FfiConverterOptionString.read(from: &buf), + signature: FfiConverterOptionString.read(from: &buf), + timestamp: FfiConverterOptionString.read(from: &buf), + refundOnchainAddress: FfiConverterOptionString.read(from: &buf), announceChannel: FfiConverterBool.read(from: &buf) ) } @@ -3215,8 +3215,8 @@ public struct FfiConverterTypeDefaultLspBalanceParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DefaultLspBalanceParams { return try DefaultLspBalanceParams( - clientBalanceSat: FfiConverterUInt64.read(from: &buf), - maxChannelSizeSat: FfiConverterUInt64.read(from: &buf), + clientBalanceSat: FfiConverterUInt64.read(from: &buf), + maxChannelSizeSat: FfiConverterUInt64.read(from: &buf), satsPerEur: FfiConverterUInt64.read(from: &buf) ) } @@ -3359,8 +3359,8 @@ public struct FfiConverterTypeFeeRates: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FeeRates { return try FeeRates( - fast: FfiConverterUInt32.read(from: &buf), - mid: FfiConverterUInt32.read(from: &buf), + fast: FfiConverterUInt32.read(from: &buf), + mid: FfiConverterUInt32.read(from: &buf), slow: FfiConverterUInt32.read(from: &buf) ) } @@ -3433,7 +3433,7 @@ public struct FfiConverterTypeFundingTx: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FundingTx { return try FundingTx( - id: FfiConverterString.read(from: &buf), + id: FfiConverterString.read(from: &buf), vout: FfiConverterUInt64.read(from: &buf) ) } @@ -3479,10 +3479,10 @@ public struct GetAddressResponse { public init( /** * The generated Bitcoin address as a string - */address: String, + */address: String, /** * The derivation path used to generate the address - */path: String, + */path: String, /** * The hexadecimal representation of the public key */publicKey: String) { @@ -3529,8 +3529,8 @@ public struct FfiConverterTypeGetAddressResponse: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> GetAddressResponse { return try GetAddressResponse( - address: FfiConverterString.read(from: &buf), - path: FfiConverterString.read(from: &buf), + address: FfiConverterString.read(from: &buf), + path: FfiConverterString.read(from: &buf), publicKey: FfiConverterString.read(from: &buf) ) } @@ -3681,34 +3681,34 @@ public struct HistoryTransaction { public init( /** * Transaction ID (hex) - */txid: String, + */txid: String, /** * Amount received by the wallet (sats) - */received: UInt64, + */received: UInt64, /** * Amount sent by the wallet (sats) — includes change sent back to self - */sent: UInt64, + */sent: UInt64, /** * Net value from wallet's perspective: received - sent (positive = inflow, negative = outflow) - */net: Int64, + */net: Int64, /** * Transaction fee in sats (None if not available, e.g. for received-only txs) - */fee: UInt64?, + */fee: UInt64?, /** * Display amount in sats: * - Received: the received value * - Sent: amount that left the wallet (sent - received - fee) * - SelfTransfer: the fee paid - */amount: UInt64, + */amount: UInt64, /** * Transaction direction - */direction: TxDirection, + */direction: TxDirection, /** * Block height (None if unconfirmed/mempool) - */blockHeight: UInt32?, + */blockHeight: UInt32?, /** * Block timestamp as unix epoch seconds (None if unconfirmed) - */timestamp: UInt64?, + */timestamp: UInt64?, /** * Number of confirmations (0 if unconfirmed) */confirmations: UInt32) { @@ -3790,15 +3790,15 @@ public struct FfiConverterTypeHistoryTransaction: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> HistoryTransaction { return try HistoryTransaction( - txid: FfiConverterString.read(from: &buf), - received: FfiConverterUInt64.read(from: &buf), - sent: FfiConverterUInt64.read(from: &buf), - net: FfiConverterInt64.read(from: &buf), - fee: FfiConverterOptionUInt64.read(from: &buf), - amount: FfiConverterUInt64.read(from: &buf), - direction: FfiConverterTypeTxDirection.read(from: &buf), - blockHeight: FfiConverterOptionUInt32.read(from: &buf), - timestamp: FfiConverterOptionUInt64.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + received: FfiConverterUInt64.read(from: &buf), + sent: FfiConverterUInt64.read(from: &buf), + net: FfiConverterInt64.read(from: &buf), + fee: FfiConverterOptionUInt64.read(from: &buf), + amount: FfiConverterUInt64.read(from: &buf), + direction: FfiConverterTypeTxDirection.read(from: &buf), + blockHeight: FfiConverterOptionUInt32.read(from: &buf), + timestamp: FfiConverterOptionUInt64.read(from: &buf), confirmations: FfiConverterUInt32.read(from: &buf) ) } @@ -3878,7 +3878,7 @@ public struct FfiConverterTypeIBt0ConfMinTxFeeWindow: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBt0ConfMinTxFeeWindow { return try IBt0ConfMinTxFeeWindow( - satPerVbyte: FfiConverterDouble.read(from: &buf), + satPerVbyte: FfiConverterDouble.read(from: &buf), validityEndsAt: FfiConverterString.read(from: &buf) ) } @@ -3962,9 +3962,9 @@ public struct FfiConverterTypeIBtBolt11Invoice: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtBolt11Invoice { return try IBtBolt11Invoice( - request: FfiConverterString.read(from: &buf), - state: FfiConverterTypeBtBolt11InvoiceState.read(from: &buf), - expiresAt: FfiConverterString.read(from: &buf), + request: FfiConverterString.read(from: &buf), + state: FfiConverterTypeBtBolt11InvoiceState.read(from: &buf), + expiresAt: FfiConverterString.read(from: &buf), updatedAt: FfiConverterString.read(from: &buf) ) } @@ -4074,13 +4074,13 @@ public struct FfiConverterTypeIBtChannel: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtChannel { return try IBtChannel( - state: FfiConverterTypeBtOpenChannelState.read(from: &buf), - lspNodePubkey: FfiConverterString.read(from: &buf), - clientNodePubkey: FfiConverterString.read(from: &buf), - announceChannel: FfiConverterBool.read(from: &buf), - fundingTx: FfiConverterTypeFundingTx.read(from: &buf), - closingTxId: FfiConverterOptionString.read(from: &buf), - close: FfiConverterOptionTypeIBtChannelClose.read(from: &buf), + state: FfiConverterTypeBtOpenChannelState.read(from: &buf), + lspNodePubkey: FfiConverterString.read(from: &buf), + clientNodePubkey: FfiConverterString.read(from: &buf), + announceChannel: FfiConverterBool.read(from: &buf), + fundingTx: FfiConverterTypeFundingTx.read(from: &buf), + closingTxId: FfiConverterOptionString.read(from: &buf), + close: FfiConverterOptionTypeIBtChannelClose.read(from: &buf), shortChannelId: FfiConverterOptionString.read(from: &buf) ) } @@ -4170,9 +4170,9 @@ public struct FfiConverterTypeIBtChannelClose: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtChannelClose { return try IBtChannelClose( - txId: FfiConverterString.read(from: &buf), - closeType: FfiConverterString.read(from: &buf), - initiator: FfiConverterString.read(from: &buf), + txId: FfiConverterString.read(from: &buf), + closeType: FfiConverterString.read(from: &buf), + initiator: FfiConverterString.read(from: &buf), registeredAt: FfiConverterString.read(from: &buf) ) } @@ -4246,7 +4246,7 @@ public struct FfiConverterTypeIBtEstimateFeeResponse: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtEstimateFeeResponse { return try IBtEstimateFeeResponse( - feeSat: FfiConverterUInt64.read(from: &buf), + feeSat: FfiConverterUInt64.read(from: &buf), min0ConfTxFee: FfiConverterTypeIBt0ConfMinTxFeeWindow.read(from: &buf) ) } @@ -4330,9 +4330,9 @@ public struct FfiConverterTypeIBtEstimateFeeResponse2: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtEstimateFeeResponse2 { return try IBtEstimateFeeResponse2( - feeSat: FfiConverterUInt64.read(from: &buf), - networkFeeSat: FfiConverterUInt64.read(from: &buf), - serviceFeeSat: FfiConverterUInt64.read(from: &buf), + feeSat: FfiConverterUInt64.read(from: &buf), + networkFeeSat: FfiConverterUInt64.read(from: &buf), + serviceFeeSat: FfiConverterUInt64.read(from: &buf), min0ConfTxFee: FfiConverterTypeIBt0ConfMinTxFeeWindow.read(from: &buf) ) } @@ -4424,10 +4424,10 @@ public struct FfiConverterTypeIBtInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtInfo { return try IBtInfo( - version: FfiConverterUInt32.read(from: &buf), - nodes: FfiConverterSequenceTypeILspNode.read(from: &buf), - options: FfiConverterTypeIBtInfoOptions.read(from: &buf), - versions: FfiConverterTypeIBtInfoVersions.read(from: &buf), + version: FfiConverterUInt32.read(from: &buf), + nodes: FfiConverterSequenceTypeILspNode.read(from: &buf), + options: FfiConverterTypeIBtInfoOptions.read(from: &buf), + versions: FfiConverterTypeIBtInfoVersions.read(from: &buf), onchain: FfiConverterTypeIBtInfoOnchain.read(from: &buf) ) } @@ -4502,7 +4502,7 @@ public struct FfiConverterTypeIBtInfoOnchain: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtInfoOnchain { return try IBtInfoOnchain( - network: FfiConverterTypeBitcoinNetworkEnum.read(from: &buf), + network: FfiConverterTypeBitcoinNetworkEnum.read(from: &buf), feeRates: FfiConverterTypeFeeRates.read(from: &buf) ) } @@ -4610,13 +4610,13 @@ public struct FfiConverterTypeIBtInfoOptions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtInfoOptions { return try IBtInfoOptions( - minChannelSizeSat: FfiConverterUInt64.read(from: &buf), - maxChannelSizeSat: FfiConverterUInt64.read(from: &buf), - minExpiryWeeks: FfiConverterUInt32.read(from: &buf), - maxExpiryWeeks: FfiConverterUInt32.read(from: &buf), - minPaymentConfirmations: FfiConverterUInt32.read(from: &buf), - minHighRiskPaymentConfirmations: FfiConverterUInt32.read(from: &buf), - max0ConfClientBalanceSat: FfiConverterUInt64.read(from: &buf), + minChannelSizeSat: FfiConverterUInt64.read(from: &buf), + maxChannelSizeSat: FfiConverterUInt64.read(from: &buf), + minExpiryWeeks: FfiConverterUInt32.read(from: &buf), + maxExpiryWeeks: FfiConverterUInt32.read(from: &buf), + minPaymentConfirmations: FfiConverterUInt32.read(from: &buf), + minHighRiskPaymentConfirmations: FfiConverterUInt32.read(from: &buf), + max0ConfClientBalanceSat: FfiConverterUInt64.read(from: &buf), maxClientBalanceSat: FfiConverterUInt64.read(from: &buf) ) } @@ -4700,8 +4700,8 @@ public struct FfiConverterTypeIBtInfoVersions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtInfoVersions { return try IBtInfoVersions( - http: FfiConverterString.read(from: &buf), - btc: FfiConverterString.read(from: &buf), + http: FfiConverterString.read(from: &buf), + btc: FfiConverterString.read(from: &buf), ln2: FfiConverterString.read(from: &buf) ) } @@ -4810,13 +4810,13 @@ public struct FfiConverterTypeIBtOnchainTransaction: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtOnchainTransaction { return try IBtOnchainTransaction( - amountSat: FfiConverterUInt64.read(from: &buf), - txId: FfiConverterString.read(from: &buf), - vout: FfiConverterUInt32.read(from: &buf), - blockHeight: FfiConverterOptionUInt32.read(from: &buf), - blockConfirmationCount: FfiConverterUInt32.read(from: &buf), - feeRateSatPerVbyte: FfiConverterDouble.read(from: &buf), - confirmed: FfiConverterBool.read(from: &buf), + amountSat: FfiConverterUInt64.read(from: &buf), + txId: FfiConverterString.read(from: &buf), + vout: FfiConverterUInt32.read(from: &buf), + blockHeight: FfiConverterOptionUInt32.read(from: &buf), + blockConfirmationCount: FfiConverterUInt32.read(from: &buf), + feeRateSatPerVbyte: FfiConverterDouble.read(from: &buf), + confirmed: FfiConverterBool.read(from: &buf), suspicious0ConfReason: FfiConverterString.read(from: &buf) ) } @@ -4906,9 +4906,9 @@ public struct FfiConverterTypeIBtOnchainTransactions: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtOnchainTransactions { return try IBtOnchainTransactions( - address: FfiConverterString.read(from: &buf), - confirmedSat: FfiConverterUInt64.read(from: &buf), - requiredConfirmations: FfiConverterUInt32.read(from: &buf), + address: FfiConverterString.read(from: &buf), + confirmedSat: FfiConverterUInt64.read(from: &buf), + requiredConfirmations: FfiConverterUInt32.read(from: &buf), transactions: FfiConverterSequenceTypeIBtOnchainTransaction.read(from: &buf) ) } @@ -5108,28 +5108,28 @@ public struct FfiConverterTypeIBtOrder: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtOrder { return try IBtOrder( - id: FfiConverterString.read(from: &buf), - state: FfiConverterTypeBtOrderState.read(from: &buf), - state2: FfiConverterOptionTypeBtOrderState2.read(from: &buf), - feeSat: FfiConverterUInt64.read(from: &buf), - networkFeeSat: FfiConverterUInt64.read(from: &buf), - serviceFeeSat: FfiConverterUInt64.read(from: &buf), - lspBalanceSat: FfiConverterUInt64.read(from: &buf), - clientBalanceSat: FfiConverterUInt64.read(from: &buf), - zeroConf: FfiConverterBool.read(from: &buf), - zeroReserve: FfiConverterBool.read(from: &buf), - clientNodeId: FfiConverterOptionString.read(from: &buf), - channelExpiryWeeks: FfiConverterUInt32.read(from: &buf), - channelExpiresAt: FfiConverterString.read(from: &buf), - orderExpiresAt: FfiConverterString.read(from: &buf), - channel: FfiConverterOptionTypeIBtChannel.read(from: &buf), - lspNode: FfiConverterOptionTypeILspNode.read(from: &buf), - lnurl: FfiConverterOptionString.read(from: &buf), - payment: FfiConverterOptionTypeIBtPayment.read(from: &buf), - couponCode: FfiConverterOptionString.read(from: &buf), - source: FfiConverterOptionString.read(from: &buf), - discount: FfiConverterOptionTypeIDiscount.read(from: &buf), - updatedAt: FfiConverterString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + state: FfiConverterTypeBtOrderState.read(from: &buf), + state2: FfiConverterOptionTypeBtOrderState2.read(from: &buf), + feeSat: FfiConverterUInt64.read(from: &buf), + networkFeeSat: FfiConverterUInt64.read(from: &buf), + serviceFeeSat: FfiConverterUInt64.read(from: &buf), + lspBalanceSat: FfiConverterUInt64.read(from: &buf), + clientBalanceSat: FfiConverterUInt64.read(from: &buf), + zeroConf: FfiConverterBool.read(from: &buf), + zeroReserve: FfiConverterBool.read(from: &buf), + clientNodeId: FfiConverterOptionString.read(from: &buf), + channelExpiryWeeks: FfiConverterUInt32.read(from: &buf), + channelExpiresAt: FfiConverterString.read(from: &buf), + orderExpiresAt: FfiConverterString.read(from: &buf), + channel: FfiConverterOptionTypeIBtChannel.read(from: &buf), + lspNode: FfiConverterOptionTypeILspNode.read(from: &buf), + lnurl: FfiConverterOptionString.read(from: &buf), + payment: FfiConverterOptionTypeIBtPayment.read(from: &buf), + couponCode: FfiConverterOptionString.read(from: &buf), + source: FfiConverterOptionString.read(from: &buf), + discount: FfiConverterOptionTypeIDiscount.read(from: &buf), + updatedAt: FfiConverterString.read(from: &buf), createdAt: FfiConverterString.read(from: &buf) ) } @@ -5252,12 +5252,12 @@ public struct FfiConverterTypeIBtPayment: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IBtPayment { return try IBtPayment( - state: FfiConverterTypeBtPaymentState.read(from: &buf), - state2: FfiConverterOptionTypeBtPaymentState2.read(from: &buf), - paidSat: FfiConverterUInt64.read(from: &buf), - bolt11Invoice: FfiConverterOptionTypeIBtBolt11Invoice.read(from: &buf), - onchain: FfiConverterOptionTypeIBtOnchainTransactions.read(from: &buf), - isManuallyPaid: FfiConverterOptionBool.read(from: &buf), + state: FfiConverterTypeBtPaymentState.read(from: &buf), + state2: FfiConverterOptionTypeBtPaymentState2.read(from: &buf), + paidSat: FfiConverterUInt64.read(from: &buf), + bolt11Invoice: FfiConverterOptionTypeIBtBolt11Invoice.read(from: &buf), + onchain: FfiConverterOptionTypeIBtOnchainTransactions.read(from: &buf), + isManuallyPaid: FfiConverterOptionBool.read(from: &buf), manualRefunds: FfiConverterOptionSequenceTypeIManualRefund.read(from: &buf) ) } @@ -5430,23 +5430,23 @@ public struct FfiConverterTypeICJitEntry: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IcJitEntry { return try IcJitEntry( - id: FfiConverterString.read(from: &buf), - state: FfiConverterTypeCJitStateEnum.read(from: &buf), - feeSat: FfiConverterUInt64.read(from: &buf), - networkFeeSat: FfiConverterUInt64.read(from: &buf), - serviceFeeSat: FfiConverterUInt64.read(from: &buf), - channelSizeSat: FfiConverterUInt64.read(from: &buf), - channelExpiryWeeks: FfiConverterUInt32.read(from: &buf), - channelOpenError: FfiConverterOptionString.read(from: &buf), - nodeId: FfiConverterString.read(from: &buf), - invoice: FfiConverterTypeIBtBolt11Invoice.read(from: &buf), - channel: FfiConverterOptionTypeIBtChannel.read(from: &buf), - lspNode: FfiConverterTypeILspNode.read(from: &buf), - couponCode: FfiConverterString.read(from: &buf), - source: FfiConverterOptionString.read(from: &buf), - discount: FfiConverterOptionTypeIDiscount.read(from: &buf), - expiresAt: FfiConverterString.read(from: &buf), - updatedAt: FfiConverterString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + state: FfiConverterTypeCJitStateEnum.read(from: &buf), + feeSat: FfiConverterUInt64.read(from: &buf), + networkFeeSat: FfiConverterUInt64.read(from: &buf), + serviceFeeSat: FfiConverterUInt64.read(from: &buf), + channelSizeSat: FfiConverterUInt64.read(from: &buf), + channelExpiryWeeks: FfiConverterUInt32.read(from: &buf), + channelOpenError: FfiConverterOptionString.read(from: &buf), + nodeId: FfiConverterString.read(from: &buf), + invoice: FfiConverterTypeIBtBolt11Invoice.read(from: &buf), + channel: FfiConverterOptionTypeIBtChannel.read(from: &buf), + lspNode: FfiConverterTypeILspNode.read(from: &buf), + couponCode: FfiConverterString.read(from: &buf), + source: FfiConverterOptionString.read(from: &buf), + discount: FfiConverterOptionTypeIDiscount.read(from: &buf), + expiresAt: FfiConverterString.read(from: &buf), + updatedAt: FfiConverterString.read(from: &buf), createdAt: FfiConverterString.read(from: &buf) ) } @@ -5546,9 +5546,9 @@ public struct FfiConverterTypeIDiscount: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IDiscount { return try IDiscount( - code: FfiConverterString.read(from: &buf), - absoluteSat: FfiConverterUInt64.read(from: &buf), - relative: FfiConverterDouble.read(from: &buf), + code: FfiConverterString.read(from: &buf), + absoluteSat: FfiConverterUInt64.read(from: &buf), + relative: FfiConverterDouble.read(from: &buf), overallSat: FfiConverterUInt64.read(from: &buf) ) } @@ -5670,15 +5670,15 @@ public struct FfiConverterTypeIGift: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGift { return try IGift( - id: FfiConverterString.read(from: &buf), - nodeId: FfiConverterString.read(from: &buf), - orderId: FfiConverterOptionString.read(from: &buf), - order: FfiConverterOptionTypeIGiftOrder.read(from: &buf), - bolt11PaymentId: FfiConverterOptionString.read(from: &buf), - bolt11Payment: FfiConverterOptionTypeIGiftPayment.read(from: &buf), - appliedGiftCodeId: FfiConverterOptionString.read(from: &buf), - appliedGiftCode: FfiConverterOptionTypeIGiftCode.read(from: &buf), - createdAt: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + nodeId: FfiConverterString.read(from: &buf), + orderId: FfiConverterOptionString.read(from: &buf), + order: FfiConverterOptionTypeIGiftOrder.read(from: &buf), + bolt11PaymentId: FfiConverterOptionString.read(from: &buf), + bolt11Payment: FfiConverterOptionTypeIGiftPayment.read(from: &buf), + appliedGiftCodeId: FfiConverterOptionString.read(from: &buf), + appliedGiftCode: FfiConverterOptionTypeIGiftCode.read(from: &buf), + createdAt: FfiConverterOptionString.read(from: &buf), updatedAt: FfiConverterOptionString.read(from: &buf) ) } @@ -5812,16 +5812,16 @@ public struct FfiConverterTypeIGiftBolt11Invoice: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGiftBolt11Invoice { return try IGiftBolt11Invoice( - id: FfiConverterString.read(from: &buf), - request: FfiConverterString.read(from: &buf), - state: FfiConverterString.read(from: &buf), - isHodlInvoice: FfiConverterOptionBool.read(from: &buf), - paymentHash: FfiConverterOptionString.read(from: &buf), - amountSat: FfiConverterOptionUInt64.read(from: &buf), - amountMsat: FfiConverterOptionString.read(from: &buf), - internalNodePubkey: FfiConverterOptionString.read(from: &buf), - updatedAt: FfiConverterOptionString.read(from: &buf), - createdAt: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + request: FfiConverterString.read(from: &buf), + state: FfiConverterString.read(from: &buf), + isHodlInvoice: FfiConverterOptionBool.read(from: &buf), + paymentHash: FfiConverterOptionString.read(from: &buf), + amountSat: FfiConverterOptionUInt64.read(from: &buf), + amountMsat: FfiConverterOptionString.read(from: &buf), + internalNodePubkey: FfiConverterOptionString.read(from: &buf), + updatedAt: FfiConverterOptionString.read(from: &buf), + createdAt: FfiConverterOptionString.read(from: &buf), expiresAt: FfiConverterOptionString.read(from: &buf) ) } @@ -5944,14 +5944,14 @@ public struct FfiConverterTypeIGiftBtcAddress: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGiftBtcAddress { return try IGiftBtcAddress( - id: FfiConverterString.read(from: &buf), - address: FfiConverterString.read(from: &buf), - transactions: FfiConverterSequenceString.read(from: &buf), - allTransactions: FfiConverterSequenceString.read(from: &buf), - isBlacklisted: FfiConverterOptionBool.read(from: &buf), - watchUntil: FfiConverterOptionString.read(from: &buf), - watchForBlockConfirmations: FfiConverterOptionUInt32.read(from: &buf), - updatedAt: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + address: FfiConverterString.read(from: &buf), + transactions: FfiConverterSequenceString.read(from: &buf), + allTransactions: FfiConverterSequenceString.read(from: &buf), + isBlacklisted: FfiConverterOptionBool.read(from: &buf), + watchUntil: FfiConverterOptionString.read(from: &buf), + watchForBlockConfirmations: FfiConverterOptionUInt32.read(from: &buf), + updatedAt: FfiConverterOptionString.read(from: &buf), createdAt: FfiConverterOptionString.read(from: &buf) ) } @@ -6066,13 +6066,13 @@ public struct FfiConverterTypeIGiftCode: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGiftCode { return try IGiftCode( - id: FfiConverterString.read(from: &buf), - code: FfiConverterString.read(from: &buf), - createdAt: FfiConverterString.read(from: &buf), - updatedAt: FfiConverterString.read(from: &buf), - expiresAt: FfiConverterString.read(from: &buf), - giftSat: FfiConverterOptionUInt64.read(from: &buf), - scope: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + code: FfiConverterString.read(from: &buf), + createdAt: FfiConverterString.read(from: &buf), + updatedAt: FfiConverterString.read(from: &buf), + expiresAt: FfiConverterString.read(from: &buf), + giftSat: FfiConverterOptionUInt64.read(from: &buf), + scope: FfiConverterOptionString.read(from: &buf), maxCount: FfiConverterOptionUInt32.read(from: &buf) ) } @@ -6156,8 +6156,8 @@ public struct FfiConverterTypeIGiftLspNode: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGiftLspNode { return try IGiftLspNode( - alias: FfiConverterString.read(from: &buf), - pubkey: FfiConverterString.read(from: &buf), + alias: FfiConverterString.read(from: &buf), + pubkey: FfiConverterString.read(from: &buf), connectionStrings: FfiConverterSequenceString.read(from: &buf) ) } @@ -6350,27 +6350,27 @@ public struct FfiConverterTypeIGiftOrder: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGiftOrder { return try IGiftOrder( - id: FfiConverterString.read(from: &buf), - state: FfiConverterString.read(from: &buf), - oldState: FfiConverterOptionString.read(from: &buf), - isChannelExpired: FfiConverterOptionBool.read(from: &buf), - isOrderExpired: FfiConverterOptionBool.read(from: &buf), - lspBalanceSat: FfiConverterOptionUInt64.read(from: &buf), - clientBalanceSat: FfiConverterOptionUInt64.read(from: &buf), - channelExpiryWeeks: FfiConverterOptionUInt32.read(from: &buf), - zeroConf: FfiConverterOptionBool.read(from: &buf), - zeroReserve: FfiConverterOptionBool.read(from: &buf), - announced: FfiConverterOptionBool.read(from: &buf), - clientNodeId: FfiConverterOptionString.read(from: &buf), - channelExpiresAt: FfiConverterOptionString.read(from: &buf), - orderExpiresAt: FfiConverterOptionString.read(from: &buf), - feeSat: FfiConverterOptionUInt64.read(from: &buf), - networkFeeSat: FfiConverterOptionUInt64.read(from: &buf), - serviceFeeSat: FfiConverterOptionUInt64.read(from: &buf), - payment: FfiConverterOptionTypeIGiftPayment.read(from: &buf), - lspNode: FfiConverterOptionTypeIGiftLspNode.read(from: &buf), - updatedAt: FfiConverterOptionString.read(from: &buf), - createdAt: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + state: FfiConverterString.read(from: &buf), + oldState: FfiConverterOptionString.read(from: &buf), + isChannelExpired: FfiConverterOptionBool.read(from: &buf), + isOrderExpired: FfiConverterOptionBool.read(from: &buf), + lspBalanceSat: FfiConverterOptionUInt64.read(from: &buf), + clientBalanceSat: FfiConverterOptionUInt64.read(from: &buf), + channelExpiryWeeks: FfiConverterOptionUInt32.read(from: &buf), + zeroConf: FfiConverterOptionBool.read(from: &buf), + zeroReserve: FfiConverterOptionBool.read(from: &buf), + announced: FfiConverterOptionBool.read(from: &buf), + clientNodeId: FfiConverterOptionString.read(from: &buf), + channelExpiresAt: FfiConverterOptionString.read(from: &buf), + orderExpiresAt: FfiConverterOptionString.read(from: &buf), + feeSat: FfiConverterOptionUInt64.read(from: &buf), + networkFeeSat: FfiConverterOptionUInt64.read(from: &buf), + serviceFeeSat: FfiConverterOptionUInt64.read(from: &buf), + payment: FfiConverterOptionTypeIGiftPayment.read(from: &buf), + lspNode: FfiConverterOptionTypeIGiftLspNode.read(from: &buf), + updatedAt: FfiConverterOptionString.read(from: &buf), + createdAt: FfiConverterOptionString.read(from: &buf), nodeIdVerified: FfiConverterOptionBool.read(from: &buf) ) } @@ -6570,25 +6570,25 @@ public struct FfiConverterTypeIGiftPayment: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IGiftPayment { return try IGiftPayment( - id: FfiConverterString.read(from: &buf), - state: FfiConverterString.read(from: &buf), - oldState: FfiConverterOptionString.read(from: &buf), - onchainState: FfiConverterOptionString.read(from: &buf), - lnState: FfiConverterOptionString.read(from: &buf), - paidOnchainSat: FfiConverterOptionUInt64.read(from: &buf), - paidLnSat: FfiConverterOptionUInt64.read(from: &buf), - paidSat: FfiConverterOptionUInt64.read(from: &buf), - isOverpaid: FfiConverterOptionBool.read(from: &buf), - isRefunded: FfiConverterOptionBool.read(from: &buf), - overpaidAmountSat: FfiConverterOptionUInt64.read(from: &buf), - requiredOnchainConfirmations: FfiConverterOptionUInt32.read(from: &buf), - settlementState: FfiConverterOptionString.read(from: &buf), - expectedAmountSat: FfiConverterOptionUInt64.read(from: &buf), - isManuallyPaid: FfiConverterOptionBool.read(from: &buf), - btcAddress: FfiConverterOptionTypeIGiftBtcAddress.read(from: &buf), - btcAddressId: FfiConverterOptionString.read(from: &buf), - bolt11Invoice: FfiConverterOptionTypeIGiftBolt11Invoice.read(from: &buf), - bolt11InvoiceId: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + state: FfiConverterString.read(from: &buf), + oldState: FfiConverterOptionString.read(from: &buf), + onchainState: FfiConverterOptionString.read(from: &buf), + lnState: FfiConverterOptionString.read(from: &buf), + paidOnchainSat: FfiConverterOptionUInt64.read(from: &buf), + paidLnSat: FfiConverterOptionUInt64.read(from: &buf), + paidSat: FfiConverterOptionUInt64.read(from: &buf), + isOverpaid: FfiConverterOptionBool.read(from: &buf), + isRefunded: FfiConverterOptionBool.read(from: &buf), + overpaidAmountSat: FfiConverterOptionUInt64.read(from: &buf), + requiredOnchainConfirmations: FfiConverterOptionUInt32.read(from: &buf), + settlementState: FfiConverterOptionString.read(from: &buf), + expectedAmountSat: FfiConverterOptionUInt64.read(from: &buf), + isManuallyPaid: FfiConverterOptionBool.read(from: &buf), + btcAddress: FfiConverterOptionTypeIGiftBtcAddress.read(from: &buf), + btcAddressId: FfiConverterOptionString.read(from: &buf), + bolt11Invoice: FfiConverterOptionTypeIGiftBolt11Invoice.read(from: &buf), + bolt11InvoiceId: FfiConverterOptionString.read(from: &buf), manualRefunds: FfiConverterSequenceString.read(from: &buf) ) } @@ -6690,9 +6690,9 @@ public struct FfiConverterTypeILspNode: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ILspNode { return try ILspNode( - alias: FfiConverterString.read(from: &buf), - pubkey: FfiConverterString.read(from: &buf), - connectionStrings: FfiConverterSequenceString.read(from: &buf), + alias: FfiConverterString.read(from: &buf), + pubkey: FfiConverterString.read(from: &buf), + connectionStrings: FfiConverterSequenceString.read(from: &buf), readonly: FfiConverterOptionBool.read(from: &buf) ) } @@ -6796,12 +6796,12 @@ public struct FfiConverterTypeIManualRefund: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> IManualRefund { return try IManualRefund( - amountSat: FfiConverterUInt64.read(from: &buf), - target: FfiConverterString.read(from: &buf), - state: FfiConverterTypeManualRefundStateEnum.read(from: &buf), - createdByName: FfiConverterString.read(from: &buf), - votedByName: FfiConverterOptionString.read(from: &buf), - reason: FfiConverterOptionString.read(from: &buf), + amountSat: FfiConverterUInt64.read(from: &buf), + target: FfiConverterString.read(from: &buf), + state: FfiConverterTypeManualRefundStateEnum.read(from: &buf), + createdByName: FfiConverterString.read(from: &buf), + votedByName: FfiConverterOptionString.read(from: &buf), + reason: FfiConverterOptionString.read(from: &buf), targetType: FfiConverterString.read(from: &buf) ) } @@ -6848,7 +6848,7 @@ public struct LegacyRnCloseRecoveryScanResult { public init( /** * Total balance found in legacy RN P2WPKH close outputs (in satoshis). - */totalAmount: UInt64, + */totalAmount: UInt64, /** * Number of P2WPKH outputs found. */outputsCount: UInt32) { @@ -6890,7 +6890,7 @@ public struct FfiConverterTypeLegacyRnCloseRecoveryScanResult: FfiConverterRustB public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LegacyRnCloseRecoveryScanResult { return try LegacyRnCloseRecoveryScanResult( - totalAmount: FfiConverterUInt64.read(from: &buf), + totalAmount: FfiConverterUInt64.read(from: &buf), outputsCount: FfiConverterUInt32.read(from: &buf) ) } @@ -6956,25 +6956,25 @@ public struct LegacyRnCloseRecoverySweepPreview { public init( /** * Fully signed raw sweep transaction hex. Broadcast only after user confirmation. - */txHex: String, + */txHex: String, /** * Transaction id of the sweep transaction. - */txid: String, + */txid: String, /** * Total input amount in satoshis. - */totalAmount: UInt64, + */totalAmount: UInt64, /** * Fee in satoshis. - */estimatedFee: UInt64, + */estimatedFee: UInt64, /** * Transaction virtual size in vbytes. - */estimatedVsize: UInt64, + */estimatedVsize: UInt64, /** * Number of recovered outputs swept. - */outputsCount: UInt32, + */outputsCount: UInt32, /** * Destination address receiving the sweep. - */destinationAddress: String, + */destinationAddress: String, /** * Amount sent to destination after fees. */amountAfterFees: UInt64) { @@ -7046,13 +7046,13 @@ public struct FfiConverterTypeLegacyRnCloseRecoverySweepPreview: FfiConverterRus public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LegacyRnCloseRecoverySweepPreview { return try LegacyRnCloseRecoverySweepPreview( - txHex: FfiConverterString.read(from: &buf), - txid: FfiConverterString.read(from: &buf), - totalAmount: FfiConverterUInt64.read(from: &buf), - estimatedFee: FfiConverterUInt64.read(from: &buf), - estimatedVsize: FfiConverterUInt64.read(from: &buf), - outputsCount: FfiConverterUInt32.read(from: &buf), - destinationAddress: FfiConverterString.read(from: &buf), + txHex: FfiConverterString.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + totalAmount: FfiConverterUInt64.read(from: &buf), + estimatedFee: FfiConverterUInt64.read(from: &buf), + estimatedVsize: FfiConverterUInt64.read(from: &buf), + outputsCount: FfiConverterUInt32.read(from: &buf), + destinationAddress: FfiConverterString.read(from: &buf), amountAfterFees: FfiConverterUInt64.read(from: &buf) ) } @@ -7202,19 +7202,19 @@ public struct FfiConverterTypeLightningActivity: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LightningActivity { return try LightningActivity( - walletId: FfiConverterString.read(from: &buf), - id: FfiConverterString.read(from: &buf), - txType: FfiConverterTypePaymentType.read(from: &buf), - status: FfiConverterTypePaymentState.read(from: &buf), - value: FfiConverterUInt64.read(from: &buf), - fee: FfiConverterOptionUInt64.read(from: &buf), - invoice: FfiConverterString.read(from: &buf), - message: FfiConverterString.read(from: &buf), - timestamp: FfiConverterUInt64.read(from: &buf), - preimage: FfiConverterOptionString.read(from: &buf), - contact: FfiConverterOptionString.read(from: &buf), - createdAt: FfiConverterOptionUInt64.read(from: &buf), - updatedAt: FfiConverterOptionUInt64.read(from: &buf), + walletId: FfiConverterString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + txType: FfiConverterTypePaymentType.read(from: &buf), + status: FfiConverterTypePaymentState.read(from: &buf), + value: FfiConverterUInt64.read(from: &buf), + fee: FfiConverterOptionUInt64.read(from: &buf), + invoice: FfiConverterString.read(from: &buf), + message: FfiConverterString.read(from: &buf), + timestamp: FfiConverterUInt64.read(from: &buf), + preimage: FfiConverterOptionString.read(from: &buf), + contact: FfiConverterOptionString.read(from: &buf), + createdAt: FfiConverterOptionUInt64.read(from: &buf), + updatedAt: FfiConverterOptionUInt64.read(from: &buf), seenAt: FfiConverterOptionUInt64.read(from: &buf) ) } @@ -7340,14 +7340,14 @@ public struct FfiConverterTypeLightningInvoice: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LightningInvoice { return try LightningInvoice( - bolt11: FfiConverterString.read(from: &buf), - paymentHash: FfiConverterData.read(from: &buf), - amountSatoshis: FfiConverterUInt64.read(from: &buf), - timestampSeconds: FfiConverterUInt64.read(from: &buf), - expirySeconds: FfiConverterUInt64.read(from: &buf), - isExpired: FfiConverterBool.read(from: &buf), - description: FfiConverterOptionString.read(from: &buf), - networkType: FfiConverterTypeNetworkType.read(from: &buf), + bolt11: FfiConverterString.read(from: &buf), + paymentHash: FfiConverterData.read(from: &buf), + amountSatoshis: FfiConverterUInt64.read(from: &buf), + timestampSeconds: FfiConverterUInt64.read(from: &buf), + expirySeconds: FfiConverterUInt64.read(from: &buf), + isExpired: FfiConverterBool.read(from: &buf), + description: FfiConverterOptionString.read(from: &buf), + networkType: FfiConverterTypeNetworkType.read(from: &buf), payeeNodeId: FfiConverterOptionData.read(from: &buf) ) } @@ -7432,8 +7432,8 @@ public struct FfiConverterTypeLnurlAddressData: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LnurlAddressData { return try LnurlAddressData( - uri: FfiConverterString.read(from: &buf), - domain: FfiConverterString.read(from: &buf), + uri: FfiConverterString.read(from: &buf), + domain: FfiConverterString.read(from: &buf), username: FfiConverterString.read(from: &buf) ) } @@ -7518,9 +7518,9 @@ public struct FfiConverterTypeLnurlAuthData: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LnurlAuthData { return try LnurlAuthData( - uri: FfiConverterString.read(from: &buf), - tag: FfiConverterString.read(from: &buf), - k1: FfiConverterString.read(from: &buf), + uri: FfiConverterString.read(from: &buf), + tag: FfiConverterString.read(from: &buf), + k1: FfiConverterString.read(from: &buf), domain: FfiConverterString.read(from: &buf) ) } @@ -7606,9 +7606,9 @@ public struct FfiConverterTypeLnurlChannelData: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LnurlChannelData { return try LnurlChannelData( - uri: FfiConverterString.read(from: &buf), - callback: FfiConverterString.read(from: &buf), - k1: FfiConverterString.read(from: &buf), + uri: FfiConverterString.read(from: &buf), + callback: FfiConverterString.read(from: &buf), + k1: FfiConverterString.read(from: &buf), tag: FfiConverterString.read(from: &buf) ) } @@ -7718,13 +7718,13 @@ public struct FfiConverterTypeLnurlPayData: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LnurlPayData { return try LnurlPayData( - uri: FfiConverterString.read(from: &buf), - callback: FfiConverterString.read(from: &buf), - minSendable: FfiConverterUInt64.read(from: &buf), - maxSendable: FfiConverterUInt64.read(from: &buf), - metadataStr: FfiConverterString.read(from: &buf), - commentAllowed: FfiConverterOptionUInt32.read(from: &buf), - allowsNostr: FfiConverterBool.read(from: &buf), + uri: FfiConverterString.read(from: &buf), + callback: FfiConverterString.read(from: &buf), + minSendable: FfiConverterUInt64.read(from: &buf), + maxSendable: FfiConverterUInt64.read(from: &buf), + metadataStr: FfiConverterString.read(from: &buf), + commentAllowed: FfiConverterOptionUInt32.read(from: &buf), + allowsNostr: FfiConverterBool.read(from: &buf), nostrPubkey: FfiConverterOptionData.read(from: &buf) ) } @@ -7832,12 +7832,12 @@ public struct FfiConverterTypeLnurlWithdrawData: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LnurlWithdrawData { return try LnurlWithdrawData( - uri: FfiConverterString.read(from: &buf), - callback: FfiConverterString.read(from: &buf), - k1: FfiConverterString.read(from: &buf), - defaultDescription: FfiConverterString.read(from: &buf), - minWithdrawable: FfiConverterOptionUInt64.read(from: &buf), - maxWithdrawable: FfiConverterUInt64.read(from: &buf), + uri: FfiConverterString.read(from: &buf), + callback: FfiConverterString.read(from: &buf), + k1: FfiConverterString.read(from: &buf), + defaultDescription: FfiConverterString.read(from: &buf), + minWithdrawable: FfiConverterOptionUInt64.read(from: &buf), + maxWithdrawable: FfiConverterUInt64.read(from: &buf), tag: FfiConverterString.read(from: &buf) ) } @@ -7899,16 +7899,16 @@ public struct NativeDeviceInfo { public init( /** * Unique path/identifier for this device - */path: String, + */path: String, /** * Transport type: "usb" or "bluetooth" - */transportType: String, + */transportType: String, /** * Optional device name (from BLE advertisement or USB descriptor) - */name: String?, + */name: String?, /** * USB Vendor ID (for USB devices) - */vendorId: UInt16?, + */vendorId: UInt16?, /** * USB Product ID (for USB devices) */productId: UInt16?) { @@ -7965,10 +7965,10 @@ public struct FfiConverterTypeNativeDeviceInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> NativeDeviceInfo { return try NativeDeviceInfo( - path: FfiConverterString.read(from: &buf), - transportType: FfiConverterString.read(from: &buf), - name: FfiConverterOptionString.read(from: &buf), - vendorId: FfiConverterOptionUInt16.read(from: &buf), + path: FfiConverterString.read(from: &buf), + transportType: FfiConverterString.read(from: &buf), + name: FfiConverterOptionString.read(from: &buf), + vendorId: FfiConverterOptionUInt16.read(from: &buf), productId: FfiConverterOptionUInt16.read(from: &buf) ) } @@ -8061,10 +8061,10 @@ public struct FfiConverterTypeOnChainInvoice: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> OnChainInvoice { return try OnChainInvoice( - address: FfiConverterString.read(from: &buf), - amountSatoshis: FfiConverterUInt64.read(from: &buf), - label: FfiConverterOptionString.read(from: &buf), - message: FfiConverterOptionString.read(from: &buf), + address: FfiConverterString.read(from: &buf), + amountSatoshis: FfiConverterUInt64.read(from: &buf), + label: FfiConverterOptionString.read(from: &buf), + message: FfiConverterOptionString.read(from: &buf), params: FfiConverterOptionDictionaryStringString.read(from: &buf) ) } @@ -8253,26 +8253,26 @@ public struct FfiConverterTypeOnchainActivity: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> OnchainActivity { return try OnchainActivity( - walletId: FfiConverterString.read(from: &buf), - id: FfiConverterString.read(from: &buf), - txType: FfiConverterTypePaymentType.read(from: &buf), - txId: FfiConverterString.read(from: &buf), - value: FfiConverterUInt64.read(from: &buf), - fee: FfiConverterUInt64.read(from: &buf), - feeRate: FfiConverterUInt64.read(from: &buf), - address: FfiConverterString.read(from: &buf), - confirmed: FfiConverterBool.read(from: &buf), - timestamp: FfiConverterUInt64.read(from: &buf), - isBoosted: FfiConverterBool.read(from: &buf), - boostTxIds: FfiConverterSequenceString.read(from: &buf), - isTransfer: FfiConverterBool.read(from: &buf), - doesExist: FfiConverterBool.read(from: &buf), - confirmTimestamp: FfiConverterOptionUInt64.read(from: &buf), - channelId: FfiConverterOptionString.read(from: &buf), - transferTxId: FfiConverterOptionString.read(from: &buf), - contact: FfiConverterOptionString.read(from: &buf), - createdAt: FfiConverterOptionUInt64.read(from: &buf), - updatedAt: FfiConverterOptionUInt64.read(from: &buf), + walletId: FfiConverterString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + txType: FfiConverterTypePaymentType.read(from: &buf), + txId: FfiConverterString.read(from: &buf), + value: FfiConverterUInt64.read(from: &buf), + fee: FfiConverterUInt64.read(from: &buf), + feeRate: FfiConverterUInt64.read(from: &buf), + address: FfiConverterString.read(from: &buf), + confirmed: FfiConverterBool.read(from: &buf), + timestamp: FfiConverterUInt64.read(from: &buf), + isBoosted: FfiConverterBool.read(from: &buf), + boostTxIds: FfiConverterSequenceString.read(from: &buf), + isTransfer: FfiConverterBool.read(from: &buf), + doesExist: FfiConverterBool.read(from: &buf), + confirmTimestamp: FfiConverterOptionUInt64.read(from: &buf), + channelId: FfiConverterOptionString.read(from: &buf), + transferTxId: FfiConverterOptionString.read(from: &buf), + contact: FfiConverterOptionString.read(from: &buf), + createdAt: FfiConverterOptionUInt64.read(from: &buf), + updatedAt: FfiConverterOptionUInt64.read(from: &buf), seenAt: FfiConverterOptionUInt64.read(from: &buf) ) } @@ -8417,16 +8417,16 @@ public struct FfiConverterTypePreActivityMetadata: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PreActivityMetadata { return try PreActivityMetadata( - walletId: FfiConverterString.read(from: &buf), - paymentId: FfiConverterString.read(from: &buf), - tags: FfiConverterSequenceString.read(from: &buf), - paymentHash: FfiConverterOptionString.read(from: &buf), - txId: FfiConverterOptionString.read(from: &buf), - address: FfiConverterOptionString.read(from: &buf), - isReceive: FfiConverterBool.read(from: &buf), - feeRate: FfiConverterUInt64.read(from: &buf), - isTransfer: FfiConverterBool.read(from: &buf), - channelId: FfiConverterOptionString.read(from: &buf), + walletId: FfiConverterString.read(from: &buf), + paymentId: FfiConverterString.read(from: &buf), + tags: FfiConverterSequenceString.read(from: &buf), + paymentHash: FfiConverterOptionString.read(from: &buf), + txId: FfiConverterOptionString.read(from: &buf), + address: FfiConverterOptionString.read(from: &buf), + isReceive: FfiConverterBool.read(from: &buf), + feeRate: FfiConverterUInt64.read(from: &buf), + isTransfer: FfiConverterBool.read(from: &buf), + channelId: FfiConverterOptionString.read(from: &buf), createdAt: FfiConverterUInt64.read(from: &buf) ) } @@ -8556,16 +8556,16 @@ public struct PubkyAuthDetails { public init( /** * Whether this is a signin or signup flow. - */kind: PubkyAuthKind, + */kind: PubkyAuthKind, /** * Requested capabilities (e.g. `"/pub/pubky.app/:rw"`). - */capabilities: String, + */capabilities: String, /** * Relay URL used for the auth exchange. - */relay: String, + */relay: String, /** * Homeserver public key (z32-encoded). Present only for signup flows. - */homeserver: String?, + */homeserver: String?, /** * Signup token. Present only for signup flows. */signupToken: String?) { @@ -8622,10 +8622,10 @@ public struct FfiConverterTypePubkyAuthDetails: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PubkyAuthDetails { return try PubkyAuthDetails( - kind: FfiConverterTypePubkyAuthKind.read(from: &buf), - capabilities: FfiConverterString.read(from: &buf), - relay: FfiConverterString.read(from: &buf), - homeserver: FfiConverterOptionString.read(from: &buf), + kind: FfiConverterTypePubkyAuthKind.read(from: &buf), + capabilities: FfiConverterString.read(from: &buf), + relay: FfiConverterString.read(from: &buf), + homeserver: FfiConverterOptionString.read(from: &buf), signupToken: FfiConverterOptionString.read(from: &buf) ) } @@ -8718,10 +8718,10 @@ public struct FfiConverterTypePubkyProfile: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PubkyProfile { return try PubkyProfile( - name: FfiConverterString.read(from: &buf), - bio: FfiConverterOptionString.read(from: &buf), - image: FfiConverterOptionString.read(from: &buf), - links: FfiConverterOptionSequenceTypePubkyProfileLink.read(from: &buf), + name: FfiConverterString.read(from: &buf), + bio: FfiConverterOptionString.read(from: &buf), + image: FfiConverterOptionString.read(from: &buf), + links: FfiConverterOptionSequenceTypePubkyProfileLink.read(from: &buf), status: FfiConverterOptionString.read(from: &buf) ) } @@ -8796,7 +8796,7 @@ public struct FfiConverterTypePubkyProfileLink: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PubkyProfileLink { return try PubkyProfileLink( - title: FfiConverterString.read(from: &buf), + title: FfiConverterString.read(from: &buf), url: FfiConverterString.read(from: &buf) ) } @@ -8853,16 +8853,16 @@ public struct SingleAddressInfoResult { public init( /** * The queried address - */address: String, + */address: String, /** * Total confirmed balance in satoshis - */balance: UInt64, + */balance: UInt64, /** * UTXOs for this address - */utxos: [AccountUtxo], + */utxos: [AccountUtxo], /** * Number of transactions involving this address - */transfers: UInt32, + */transfers: UInt32, /** * Current blockchain tip height */blockHeight: UInt32) { @@ -8919,10 +8919,10 @@ public struct FfiConverterTypeSingleAddressInfoResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SingleAddressInfoResult { return try SingleAddressInfoResult( - address: FfiConverterString.read(from: &buf), - balance: FfiConverterUInt64.read(from: &buf), - utxos: FfiConverterSequenceTypeAccountUtxo.read(from: &buf), - transfers: FfiConverterUInt32.read(from: &buf), + address: FfiConverterString.read(from: &buf), + balance: FfiConverterUInt64.read(from: &buf), + utxos: FfiConverterSequenceTypeAccountUtxo.read(from: &buf), + transfers: FfiConverterUInt32.read(from: &buf), blockHeight: FfiConverterUInt32.read(from: &buf) ) } @@ -8975,13 +8975,13 @@ public struct SweepResult { public init( /** * The transaction ID of the sweep transaction - */txid: String, + */txid: String, /** * The total amount swept (in satoshis) - */amountSwept: UInt64, + */amountSwept: UInt64, /** * The fee paid (in satoshis) - */feePaid: UInt64, + */feePaid: UInt64, /** * The number of UTXOs swept */utxosSwept: UInt32) { @@ -9033,9 +9033,9 @@ public struct FfiConverterTypeSweepResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SweepResult { return try SweepResult( - txid: FfiConverterString.read(from: &buf), - amountSwept: FfiConverterUInt64.read(from: &buf), - feePaid: FfiConverterUInt64.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + amountSwept: FfiConverterUInt64.read(from: &buf), + feePaid: FfiConverterUInt64.read(from: &buf), utxosSwept: FfiConverterUInt32.read(from: &buf) ) } @@ -9099,22 +9099,22 @@ public struct SweepTransactionPreview { public init( /** * The PSBT (Partially Signed Bitcoin Transaction) in base64 format - */psbt: String, + */psbt: String, /** * The total amount available to sweep (in satoshis) - */totalAmount: UInt64, + */totalAmount: UInt64, /** * The estimated fee for the transaction (in satoshis) - */estimatedFee: UInt64, + */estimatedFee: UInt64, /** * The estimated virtual size of the transaction (in vbytes) - */estimatedVsize: UInt64, + */estimatedVsize: UInt64, /** * The number of UTXOs that will be swept - */utxosCount: UInt32, + */utxosCount: UInt32, /** * The destination address - */destinationAddress: String, + */destinationAddress: String, /** * The amount that will be sent to destination after fees (in satoshis) */amountAfterFees: UInt64) { @@ -9181,12 +9181,12 @@ public struct FfiConverterTypeSweepTransactionPreview: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SweepTransactionPreview { return try SweepTransactionPreview( - psbt: FfiConverterString.read(from: &buf), - totalAmount: FfiConverterUInt64.read(from: &buf), - estimatedFee: FfiConverterUInt64.read(from: &buf), - estimatedVsize: FfiConverterUInt64.read(from: &buf), - utxosCount: FfiConverterUInt32.read(from: &buf), - destinationAddress: FfiConverterString.read(from: &buf), + psbt: FfiConverterString.read(from: &buf), + totalAmount: FfiConverterUInt64.read(from: &buf), + estimatedFee: FfiConverterUInt64.read(from: &buf), + estimatedVsize: FfiConverterUInt64.read(from: &buf), + utxosCount: FfiConverterUInt32.read(from: &buf), + destinationAddress: FfiConverterString.read(from: &buf), amountAfterFees: FfiConverterUInt64.read(from: &buf) ) } @@ -9257,25 +9257,25 @@ public struct SweepableBalances { public init( /** * Balance in legacy (P2PKH) addresses (in satoshis) - */legacyBalance: UInt64, + */legacyBalance: UInt64, /** * Balance in P2SH-SegWit (P2SH-P2WPKH) addresses (in satoshis) - */p2shBalance: UInt64, + */p2shBalance: UInt64, /** * Balance in Taproot (P2TR) addresses (in satoshis) - */taprootBalance: UInt64, + */taprootBalance: UInt64, /** * Total balance across all wallet types (in satoshis) - */totalBalance: UInt64, + */totalBalance: UInt64, /** * Number of UTXOs in legacy wallet - */legacyUtxosCount: UInt32, + */legacyUtxosCount: UInt32, /** * Number of UTXOs in P2SH-SegWit wallet - */p2shUtxosCount: UInt32, + */p2shUtxosCount: UInt32, /** * Number of UTXOs in Taproot wallet - */taprootUtxosCount: UInt32, + */taprootUtxosCount: UInt32, /** * Total number of UTXOs across all wallet types */totalUtxosCount: UInt32) { @@ -9347,13 +9347,13 @@ public struct FfiConverterTypeSweepableBalances: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SweepableBalances { return try SweepableBalances( - legacyBalance: FfiConverterUInt64.read(from: &buf), - p2shBalance: FfiConverterUInt64.read(from: &buf), - taprootBalance: FfiConverterUInt64.read(from: &buf), - totalBalance: FfiConverterUInt64.read(from: &buf), - legacyUtxosCount: FfiConverterUInt32.read(from: &buf), - p2shUtxosCount: FfiConverterUInt32.read(from: &buf), - taprootUtxosCount: FfiConverterUInt32.read(from: &buf), + legacyBalance: FfiConverterUInt64.read(from: &buf), + p2shBalance: FfiConverterUInt64.read(from: &buf), + taprootBalance: FfiConverterUInt64.read(from: &buf), + totalBalance: FfiConverterUInt64.read(from: &buf), + legacyUtxosCount: FfiConverterUInt32.read(from: &buf), + p2shUtxosCount: FfiConverterUInt32.read(from: &buf), + taprootUtxosCount: FfiConverterUInt32.read(from: &buf), totalUtxosCount: FfiConverterUInt32.read(from: &buf) ) } @@ -9460,49 +9460,49 @@ public struct TransactionDetail { public init( /** * Transaction ID (hex) - */txid: String, + */txid: String, /** * Amount received by the wallet (sats) - */received: UInt64, + */received: UInt64, /** * Amount sent by the wallet (sats) — includes change sent back to self - */sent: UInt64, + */sent: UInt64, /** * Net value from wallet's perspective: received - sent (positive = inflow, negative = outflow) - */net: Int64, + */net: Int64, /** * Display amount in sats (same semantics as HistoryTransaction.amount) - */amount: UInt64, + */amount: UInt64, /** * Transaction fee in sats (None if not available) - */fee: UInt64?, + */fee: UInt64?, /** * Transaction direction - */direction: TxDirection, + */direction: TxDirection, /** * Block height (None if unconfirmed/mempool) - */blockHeight: UInt32?, + */blockHeight: UInt32?, /** * Block timestamp as unix epoch seconds (None if unconfirmed) - */timestamp: UInt64?, + */timestamp: UInt64?, /** * Number of confirmations (0 if unconfirmed) - */confirmations: UInt32, + */confirmations: UInt32, /** * Transaction inputs - */inputs: [TxDetailInput], + */inputs: [TxDetailInput], /** * Transaction outputs - */outputs: [TxDetailOutput], + */outputs: [TxDetailOutput], /** * Serialized transaction size in bytes - */size: UInt32, + */size: UInt32, /** * Virtual size in vbytes (ceil(weight / 4)) - */vsize: UInt32, + */vsize: UInt32, /** * Transaction weight in weight units - */weight: UInt32, + */weight: UInt32, /** * Fee rate in sat/vB (fee / vsize), None if fee is unavailable or vsize is zero */feeRate: Double?) { @@ -9614,21 +9614,21 @@ public struct FfiConverterTypeTransactionDetail: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransactionDetail { return try TransactionDetail( - txid: FfiConverterString.read(from: &buf), - received: FfiConverterUInt64.read(from: &buf), - sent: FfiConverterUInt64.read(from: &buf), - net: FfiConverterInt64.read(from: &buf), - amount: FfiConverterUInt64.read(from: &buf), - fee: FfiConverterOptionUInt64.read(from: &buf), - direction: FfiConverterTypeTxDirection.read(from: &buf), - blockHeight: FfiConverterOptionUInt32.read(from: &buf), - timestamp: FfiConverterOptionUInt64.read(from: &buf), - confirmations: FfiConverterUInt32.read(from: &buf), - inputs: FfiConverterSequenceTypeTxDetailInput.read(from: &buf), - outputs: FfiConverterSequenceTypeTxDetailOutput.read(from: &buf), - size: FfiConverterUInt32.read(from: &buf), - vsize: FfiConverterUInt32.read(from: &buf), - weight: FfiConverterUInt32.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + received: FfiConverterUInt64.read(from: &buf), + sent: FfiConverterUInt64.read(from: &buf), + net: FfiConverterInt64.read(from: &buf), + amount: FfiConverterUInt64.read(from: &buf), + fee: FfiConverterOptionUInt64.read(from: &buf), + direction: FfiConverterTypeTxDirection.read(from: &buf), + blockHeight: FfiConverterOptionUInt32.read(from: &buf), + timestamp: FfiConverterOptionUInt64.read(from: &buf), + confirmations: FfiConverterUInt32.read(from: &buf), + inputs: FfiConverterSequenceTypeTxDetailInput.read(from: &buf), + outputs: FfiConverterSequenceTypeTxDetailOutput.read(from: &buf), + size: FfiConverterUInt32.read(from: &buf), + vsize: FfiConverterUInt32.read(from: &buf), + weight: FfiConverterUInt32.read(from: &buf), feeRate: FfiConverterOptionDouble.read(from: &buf) ) } @@ -9698,10 +9698,10 @@ public struct TransactionDetails { // Default memberwise initializers are never public by default, so we // declare one manually. - public init(walletId: String, + public init(walletId: String, /** * The transaction ID. - */txId: String, + */txId: String, /** * The net amount in this transaction (in satoshis). * @@ -9709,10 +9709,10 @@ public struct TransactionDetails { * this will be positive. For outgoing payments, this will be negative. * * Note: This amount does NOT include transaction fees. - */amountSats: Int64, + */amountSats: Int64, /** * The transaction inputs with full details. - */inputs: [TxInput], + */inputs: [TxInput], /** * The transaction outputs with full details. */outputs: [TxOutput]) { @@ -9769,10 +9769,10 @@ public struct FfiConverterTypeTransactionDetails: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransactionDetails { return try TransactionDetails( - walletId: FfiConverterString.read(from: &buf), - txId: FfiConverterString.read(from: &buf), - amountSats: FfiConverterInt64.read(from: &buf), - inputs: FfiConverterSequenceTypeTxInput.read(from: &buf), + walletId: FfiConverterString.read(from: &buf), + txId: FfiConverterString.read(from: &buf), + amountSats: FfiConverterInt64.read(from: &buf), + inputs: FfiConverterSequenceTypeTxInput.read(from: &buf), outputs: FfiConverterSequenceTypeTxOutput.read(from: &buf) ) } @@ -9832,16 +9832,16 @@ public struct TransactionHistoryResult { public init( /** * All transactions, sorted: unconfirmed first, then by timestamp descending - */transactions: [HistoryTransaction], + */transactions: [HistoryTransaction], /** * Balance breakdown - */balance: WalletBalance, + */balance: WalletBalance, /** * Total number of transactions - */txCount: UInt32, + */txCount: UInt32, /** * Current blockchain tip height - */blockHeight: UInt32, + */blockHeight: UInt32, /** * The detected or specified account type */accountType: AccountType) { @@ -9898,10 +9898,10 @@ public struct FfiConverterTypeTransactionHistoryResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TransactionHistoryResult { return try TransactionHistoryResult( - transactions: FfiConverterSequenceTypeHistoryTransaction.read(from: &buf), - balance: FfiConverterTypeWalletBalance.read(from: &buf), - txCount: FfiConverterUInt32.read(from: &buf), - blockHeight: FfiConverterUInt32.read(from: &buf), + transactions: FfiConverterSequenceTypeHistoryTransaction.read(from: &buf), + balance: FfiConverterTypeWalletBalance.read(from: &buf), + txCount: FfiConverterUInt32.read(from: &buf), + blockHeight: FfiConverterUInt32.read(from: &buf), accountType: FfiConverterTypeAccountType.read(from: &buf) ) } @@ -9949,7 +9949,7 @@ public struct TrezorAddressResponse { public init( /** * The Bitcoin address - */address: String, + */address: String, /** * The serialized path (e.g., "m/84'/0'/0'/0/0") */path: String) { @@ -9991,7 +9991,7 @@ public struct FfiConverterTypeTrezorAddressResponse: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorAddressResponse { return try TrezorAddressResponse( - address: FfiConverterString.read(from: &buf), + address: FfiConverterString.read(from: &buf), path: FfiConverterString.read(from: &buf) ) } @@ -10044,13 +10044,13 @@ public struct TrezorCallMessageResult { public init( /** * Whether the call succeeded - */success: Bool, + */success: Bool, /** * Response message type - */messageType: UInt16, + */messageType: UInt16, /** * Response protobuf data - */data: Data, + */data: Data, /** * Error message (empty on success) */error: String) { @@ -10102,9 +10102,9 @@ public struct FfiConverterTypeTrezorCallMessageResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorCallMessageResult { return try TrezorCallMessageResult( - success: FfiConverterBool.read(from: &buf), - messageType: FfiConverterUInt16.read(from: &buf), - data: FfiConverterData.read(from: &buf), + success: FfiConverterBool.read(from: &buf), + messageType: FfiConverterUInt16.read(from: &buf), + data: FfiConverterData.read(from: &buf), error: FfiConverterString.read(from: &buf) ) } @@ -10171,22 +10171,22 @@ public struct TrezorDeviceInfo { public init( /** * Unique identifier for the device - */id: String, + */id: String, /** * Transport type (USB or Bluetooth) - */transportType: TrezorTransportType, + */transportType: TrezorTransportType, /** * Device name (from BLE advertisement or USB descriptor) - */name: String?, + */name: String?, /** * Transport-specific path (used internally for connection) - */path: String, + */path: String, /** * Device label (set by user during device setup) - */label: String?, + */label: String?, /** * Device model (e.g., "T2", "Safe 5", "Safe 7") - */model: String?, + */model: String?, /** * Whether the device is in bootloader mode */isBootloader: Bool) { @@ -10253,12 +10253,12 @@ public struct FfiConverterTypeTrezorDeviceInfo: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorDeviceInfo { return try TrezorDeviceInfo( - id: FfiConverterString.read(from: &buf), - transportType: FfiConverterTypeTrezorTransportType.read(from: &buf), - name: FfiConverterOptionString.read(from: &buf), - path: FfiConverterString.read(from: &buf), - label: FfiConverterOptionString.read(from: &buf), - model: FfiConverterOptionString.read(from: &buf), + id: FfiConverterString.read(from: &buf), + transportType: FfiConverterTypeTrezorTransportType.read(from: &buf), + name: FfiConverterOptionString.read(from: &buf), + path: FfiConverterString.read(from: &buf), + label: FfiConverterOptionString.read(from: &buf), + model: FfiConverterOptionString.read(from: &buf), isBootloader: FfiConverterBool.read(from: &buf) ) } @@ -10326,6 +10326,12 @@ public struct TrezorFeatures { * Whether PIN protection is enabled */ public var pinProtection: Bool? + /** + * Whether the device is currently unlocked. When PIN protection is enabled + * and this is `Some(false)`, mobile callers should back off and ask the + * user to unlock the Trezor instead of repeatedly reconnecting. + */ + public var unlocked: Bool? /** * Whether passphrase protection is enabled */ @@ -10349,37 +10355,42 @@ public struct TrezorFeatures { public init( /** * Vendor string - */vendor: String?, + */vendor: String?, /** * Device model - */model: String?, + */model: String?, /** * Device label (set by user during device setup) - */label: String?, + */label: String?, /** * Device ID (unique per device) - */deviceId: String?, + */deviceId: String?, /** * Major firmware version - */majorVersion: UInt32?, + */majorVersion: UInt32?, /** * Minor firmware version - */minorVersion: UInt32?, + */minorVersion: UInt32?, /** * Patch firmware version - */patchVersion: UInt32?, + */patchVersion: UInt32?, /** * Whether PIN protection is enabled - */pinProtection: Bool?, + */pinProtection: Bool?, + /** + * Whether the device is currently unlocked. When PIN protection is enabled + * and this is `Some(false)`, mobile callers should back off and ask the + * user to unlock the Trezor instead of repeatedly reconnecting. + */unlocked: Bool?, /** * Whether passphrase protection is enabled - */passphraseProtection: Bool?, + */passphraseProtection: Bool?, /** * Whether the device is initialized with a seed - */initialized: Bool?, + */initialized: Bool?, /** * Whether the device needs backup - */needsBackup: Bool?, + */needsBackup: Bool?, /** * Whether the device can accept passphrase entry on the device itself * (`Capability_PassphraseEntry`). When false/None, use host entry only. @@ -10392,6 +10403,7 @@ public struct TrezorFeatures { self.minorVersion = minorVersion self.patchVersion = patchVersion self.pinProtection = pinProtection + self.unlocked = unlocked self.passphraseProtection = passphraseProtection self.initialized = initialized self.needsBackup = needsBackup @@ -10430,6 +10442,9 @@ extension TrezorFeatures: Equatable, Hashable { if lhs.pinProtection != rhs.pinProtection { return false } + if lhs.unlocked != rhs.unlocked { + return false + } if lhs.passphraseProtection != rhs.passphraseProtection { return false } @@ -10454,6 +10469,7 @@ extension TrezorFeatures: Equatable, Hashable { hasher.combine(minorVersion) hasher.combine(patchVersion) hasher.combine(pinProtection) + hasher.combine(unlocked) hasher.combine(passphraseProtection) hasher.combine(initialized) hasher.combine(needsBackup) @@ -10472,17 +10488,18 @@ public struct FfiConverterTypeTrezorFeatures: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorFeatures { return try TrezorFeatures( - vendor: FfiConverterOptionString.read(from: &buf), - model: FfiConverterOptionString.read(from: &buf), - label: FfiConverterOptionString.read(from: &buf), - deviceId: FfiConverterOptionString.read(from: &buf), - majorVersion: FfiConverterOptionUInt32.read(from: &buf), - minorVersion: FfiConverterOptionUInt32.read(from: &buf), - patchVersion: FfiConverterOptionUInt32.read(from: &buf), - pinProtection: FfiConverterOptionBool.read(from: &buf), - passphraseProtection: FfiConverterOptionBool.read(from: &buf), - initialized: FfiConverterOptionBool.read(from: &buf), - needsBackup: FfiConverterOptionBool.read(from: &buf), + vendor: FfiConverterOptionString.read(from: &buf), + model: FfiConverterOptionString.read(from: &buf), + label: FfiConverterOptionString.read(from: &buf), + deviceId: FfiConverterOptionString.read(from: &buf), + majorVersion: FfiConverterOptionUInt32.read(from: &buf), + minorVersion: FfiConverterOptionUInt32.read(from: &buf), + patchVersion: FfiConverterOptionUInt32.read(from: &buf), + pinProtection: FfiConverterOptionBool.read(from: &buf), + unlocked: FfiConverterOptionBool.read(from: &buf), + passphraseProtection: FfiConverterOptionBool.read(from: &buf), + initialized: FfiConverterOptionBool.read(from: &buf), + needsBackup: FfiConverterOptionBool.read(from: &buf), passphraseEntryCapable: FfiConverterOptionBool.read(from: &buf) ) } @@ -10496,6 +10513,7 @@ public struct FfiConverterTypeTrezorFeatures: FfiConverterRustBuffer { FfiConverterOptionUInt32.write(value.minorVersion, into: &buf) FfiConverterOptionUInt32.write(value.patchVersion, into: &buf) FfiConverterOptionBool.write(value.pinProtection, into: &buf) + FfiConverterOptionBool.write(value.unlocked, into: &buf) FfiConverterOptionBool.write(value.passphraseProtection, into: &buf) FfiConverterOptionBool.write(value.initialized, into: &buf) FfiConverterOptionBool.write(value.needsBackup, into: &buf) @@ -10545,13 +10563,13 @@ public struct TrezorGetAddressParams { public init( /** * BIP32 path (e.g., "m/84'/0'/0'/0/0") - */path: String, + */path: String, /** * Coin network (default: Bitcoin) - */coin: TrezorCoinType?, + */coin: TrezorCoinType?, /** * Whether to display the address on the device for confirmation - */showOnTrezor: Bool, + */showOnTrezor: Bool, /** * Script type (auto-detected from path if not specified) */scriptType: TrezorScriptType?) { @@ -10603,9 +10621,9 @@ public struct FfiConverterTypeTrezorGetAddressParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorGetAddressParams { return try TrezorGetAddressParams( - path: FfiConverterString.read(from: &buf), - coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf), - showOnTrezor: FfiConverterBool.read(from: &buf), + path: FfiConverterString.read(from: &buf), + coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf), + showOnTrezor: FfiConverterBool.read(from: &buf), scriptType: FfiConverterOptionTypeTrezorScriptType.read(from: &buf) ) } @@ -10656,10 +10674,10 @@ public struct TrezorGetPublicKeyParams { public init( /** * BIP32 path (e.g., "m/84'/0'/0'") - */path: String, + */path: String, /** * Coin network (default: Bitcoin) - */coin: TrezorCoinType?, + */coin: TrezorCoinType?, /** * Whether to display on device for confirmation */showOnTrezor: Bool) { @@ -10706,8 +10724,8 @@ public struct FfiConverterTypeTrezorGetPublicKeyParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorGetPublicKeyParams { return try TrezorGetPublicKeyParams( - path: FfiConverterString.read(from: &buf), - coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf), + path: FfiConverterString.read(from: &buf), + coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf), showOnTrezor: FfiConverterBool.read(from: &buf) ) } @@ -10765,16 +10783,16 @@ public struct TrezorPrevTx { public init( /** * Transaction hash (hex encoded) - */hash: String, + */hash: String, /** * Transaction version - */version: UInt32, + */version: UInt32, /** * Lock time - */lockTime: UInt32, + */lockTime: UInt32, /** * Transaction inputs - */inputs: [TrezorPrevTxInput], + */inputs: [TrezorPrevTxInput], /** * Transaction outputs */outputs: [TrezorPrevTxOutput]) { @@ -10831,10 +10849,10 @@ public struct FfiConverterTypeTrezorPrevTx: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorPrevTx { return try TrezorPrevTx( - hash: FfiConverterString.read(from: &buf), - version: FfiConverterUInt32.read(from: &buf), - lockTime: FfiConverterUInt32.read(from: &buf), - inputs: FfiConverterSequenceTypeTrezorPrevTxInput.read(from: &buf), + hash: FfiConverterString.read(from: &buf), + version: FfiConverterUInt32.read(from: &buf), + lockTime: FfiConverterUInt32.read(from: &buf), + inputs: FfiConverterSequenceTypeTrezorPrevTxInput.read(from: &buf), outputs: FfiConverterSequenceTypeTrezorPrevTxOutput.read(from: &buf) ) } @@ -10890,13 +10908,13 @@ public struct TrezorPrevTxInput { public init( /** * Previous transaction hash (hex encoded) - */prevHash: String, + */prevHash: String, /** * Previous output index - */prevIndex: UInt32, + */prevIndex: UInt32, /** * Script signature (hex encoded) - */scriptSig: String, + */scriptSig: String, /** * Sequence number */sequence: UInt32) { @@ -10948,9 +10966,9 @@ public struct FfiConverterTypeTrezorPrevTxInput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorPrevTxInput { return try TrezorPrevTxInput( - prevHash: FfiConverterString.read(from: &buf), - prevIndex: FfiConverterUInt32.read(from: &buf), - scriptSig: FfiConverterString.read(from: &buf), + prevHash: FfiConverterString.read(from: &buf), + prevIndex: FfiConverterUInt32.read(from: &buf), + scriptSig: FfiConverterString.read(from: &buf), sequence: FfiConverterUInt32.read(from: &buf) ) } @@ -10997,7 +11015,7 @@ public struct TrezorPrevTxOutput { public init( /** * Amount in satoshis - */amount: UInt64, + */amount: UInt64, /** * Script pubkey (hex encoded) */scriptPubkey: String) { @@ -11039,7 +11057,7 @@ public struct FfiConverterTypeTrezorPrevTxOutput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorPrevTxOutput { return try TrezorPrevTxOutput( - amount: FfiConverterUInt64.read(from: &buf), + amount: FfiConverterUInt64.read(from: &buf), scriptPubkey: FfiConverterString.read(from: &buf) ) } @@ -11104,22 +11122,22 @@ public struct TrezorPublicKeyResponse { public init( /** * Extended public key (xpub) - */xpub: String, + */xpub: String, /** * The serialized path (e.g., "m/84'/0'/0'") - */path: String, + */path: String, /** * Compressed public key (hex encoded) - */publicKey: String, + */publicKey: String, /** * Chain code (hex encoded) - */chainCode: String, + */chainCode: String, /** * Parent key fingerprint - */fingerprint: UInt32, + */fingerprint: UInt32, /** * Derivation depth - */depth: UInt32, + */depth: UInt32, /** * Master root fingerprint (from the device's master seed) */rootFingerprint: UInt32?) { @@ -11186,12 +11204,12 @@ public struct FfiConverterTypeTrezorPublicKeyResponse: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorPublicKeyResponse { return try TrezorPublicKeyResponse( - xpub: FfiConverterString.read(from: &buf), - path: FfiConverterString.read(from: &buf), - publicKey: FfiConverterString.read(from: &buf), - chainCode: FfiConverterString.read(from: &buf), - fingerprint: FfiConverterUInt32.read(from: &buf), - depth: FfiConverterUInt32.read(from: &buf), + xpub: FfiConverterString.read(from: &buf), + path: FfiConverterString.read(from: &buf), + publicKey: FfiConverterString.read(from: &buf), + chainCode: FfiConverterString.read(from: &buf), + fingerprint: FfiConverterUInt32.read(from: &buf), + depth: FfiConverterUInt32.read(from: &buf), rootFingerprint: FfiConverterOptionUInt32.read(from: &buf) ) } @@ -11245,10 +11263,10 @@ public struct TrezorSignMessageParams { public init( /** * BIP32 path for the signing key (e.g., "m/84'/0'/0'/0/0") - */path: String, + */path: String, /** * Message to sign - */message: String, + */message: String, /** * Coin network (default: Bitcoin) */coin: TrezorCoinType?) { @@ -11295,8 +11313,8 @@ public struct FfiConverterTypeTrezorSignMessageParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorSignMessageParams { return try TrezorSignMessageParams( - path: FfiConverterString.read(from: &buf), - message: FfiConverterString.read(from: &buf), + path: FfiConverterString.read(from: &buf), + message: FfiConverterString.read(from: &buf), coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf) ) } @@ -11358,19 +11376,19 @@ public struct TrezorSignTxParams { public init( /** * Transaction inputs - */inputs: [TrezorTxInput], + */inputs: [TrezorTxInput], /** * Transaction outputs - */outputs: [TrezorTxOutput], + */outputs: [TrezorTxOutput], /** * Coin network (default: Bitcoin) - */coin: TrezorCoinType?, + */coin: TrezorCoinType?, /** * Lock time (default: 0) - */lockTime: UInt32?, + */lockTime: UInt32?, /** * Version (default: 2) - */version: UInt32?, + */version: UInt32?, /** * Previous transactions (for non-SegWit input verification) */prevTxs: [TrezorPrevTx]) { @@ -11432,11 +11450,11 @@ public struct FfiConverterTypeTrezorSignTxParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorSignTxParams { return try TrezorSignTxParams( - inputs: FfiConverterSequenceTypeTrezorTxInput.read(from: &buf), - outputs: FfiConverterSequenceTypeTrezorTxOutput.read(from: &buf), - coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf), - lockTime: FfiConverterOptionUInt32.read(from: &buf), - version: FfiConverterOptionUInt32.read(from: &buf), + inputs: FfiConverterSequenceTypeTrezorTxInput.read(from: &buf), + outputs: FfiConverterSequenceTypeTrezorTxOutput.read(from: &buf), + coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf), + lockTime: FfiConverterOptionUInt32.read(from: &buf), + version: FfiConverterOptionUInt32.read(from: &buf), prevTxs: FfiConverterSequenceTypeTrezorPrevTx.read(from: &buf) ) } @@ -11485,7 +11503,7 @@ public struct TrezorSignedMessageResponse { public init( /** * Bitcoin address that signed the message - */address: String, + */address: String, /** * Signature (base64 encoded) */signature: String) { @@ -11527,7 +11545,7 @@ public struct FfiConverterTypeTrezorSignedMessageResponse: FfiConverterRustBuffe public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorSignedMessageResponse { return try TrezorSignedMessageResponse( - address: FfiConverterString.read(from: &buf), + address: FfiConverterString.read(from: &buf), signature: FfiConverterString.read(from: &buf) ) } @@ -11576,10 +11594,10 @@ public struct TrezorSignedTx { public init( /** * Signatures for each input (hex encoded) - */signatures: [String], + */signatures: [String], /** * Serialized transaction (hex) - */serializedTx: String, + */serializedTx: String, /** * Broadcast transaction ID (populated when push=true) */txid: String?) { @@ -11626,8 +11644,8 @@ public struct FfiConverterTypeTrezorSignedTx: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorSignedTx { return try TrezorSignedTx( - signatures: FfiConverterSequenceString.read(from: &buf), - serializedTx: FfiConverterString.read(from: &buf), + signatures: FfiConverterSequenceString.read(from: &buf), + serializedTx: FfiConverterString.read(from: &buf), txid: FfiConverterOptionString.read(from: &buf) ) } @@ -11677,10 +11695,10 @@ public struct TrezorTransportReadResult { public init( /** * Whether the read succeeded - */success: Bool, + */success: Bool, /** * Data read (empty on failure) - */data: Data, + */data: Data, /** * Error message (empty on success) */error: String) { @@ -11727,8 +11745,8 @@ public struct FfiConverterTypeTrezorTransportReadResult: FfiConverterRustBuffer public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorTransportReadResult { return try TrezorTransportReadResult( - success: FfiConverterBool.read(from: &buf), - data: FfiConverterData.read(from: &buf), + success: FfiConverterBool.read(from: &buf), + data: FfiConverterData.read(from: &buf), error: FfiConverterString.read(from: &buf) ) } @@ -11774,7 +11792,7 @@ public struct TrezorTransportWriteResult { public init( /** * Whether the operation succeeded - */success: Bool, + */success: Bool, /** * Error message (empty on success) */error: String) { @@ -11816,7 +11834,7 @@ public struct FfiConverterTypeTrezorTransportWriteResult: FfiConverterRustBuffer public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorTransportWriteResult { return try TrezorTransportWriteResult( - success: FfiConverterBool.read(from: &buf), + success: FfiConverterBool.read(from: &buf), error: FfiConverterString.read(from: &buf) ) } @@ -11885,25 +11903,25 @@ public struct TrezorTxInput { public init( /** * Previous transaction hash (hex, 32 bytes) - */prevHash: String, + */prevHash: String, /** * Previous output index - */prevIndex: UInt32, + */prevIndex: UInt32, /** * BIP32 derivation path (e.g., "m/84'/0'/0'/0/0") - */path: String, + */path: String, /** * Amount in satoshis - */amount: UInt64, + */amount: UInt64, /** * Script type - */scriptType: TrezorScriptType, + */scriptType: TrezorScriptType, /** * Sequence number (default: 0xFFFFFFFD for RBF) - */sequence: UInt32?, + */sequence: UInt32?, /** * Original transaction hash for RBF replacement (hex encoded) - */origHash: String?, + */origHash: String?, /** * Original input index for RBF replacement */origIndex: UInt32?) { @@ -11975,13 +11993,13 @@ public struct FfiConverterTypeTrezorTxInput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorTxInput { return try TrezorTxInput( - prevHash: FfiConverterString.read(from: &buf), - prevIndex: FfiConverterUInt32.read(from: &buf), - path: FfiConverterString.read(from: &buf), - amount: FfiConverterUInt64.read(from: &buf), - scriptType: FfiConverterTypeTrezorScriptType.read(from: &buf), - sequence: FfiConverterOptionUInt32.read(from: &buf), - origHash: FfiConverterOptionString.read(from: &buf), + prevHash: FfiConverterString.read(from: &buf), + prevIndex: FfiConverterUInt32.read(from: &buf), + path: FfiConverterString.read(from: &buf), + amount: FfiConverterUInt64.read(from: &buf), + scriptType: FfiConverterTypeTrezorScriptType.read(from: &buf), + sequence: FfiConverterOptionUInt32.read(from: &buf), + origHash: FfiConverterOptionString.read(from: &buf), origIndex: FfiConverterOptionUInt32.read(from: &buf) ) } @@ -12052,22 +12070,22 @@ public struct TrezorTxOutput { public init( /** * Destination address (for external outputs) - */address: String?, + */address: String?, /** * BIP32 path (for change outputs) - */path: String?, + */path: String?, /** * Amount in satoshis - */amount: UInt64, + */amount: UInt64, /** * Script type (for change outputs) - */scriptType: TrezorScriptType?, + */scriptType: TrezorScriptType?, /** * OP_RETURN data (hex encoded, for data outputs) - */opReturnData: String?, + */opReturnData: String?, /** * Original transaction hash for RBF replacement (hex encoded) - */origHash: String?, + */origHash: String?, /** * Original output index for RBF replacement */origIndex: UInt32?) { @@ -12134,12 +12152,12 @@ public struct FfiConverterTypeTrezorTxOutput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorTxOutput { return try TrezorTxOutput( - address: FfiConverterOptionString.read(from: &buf), - path: FfiConverterOptionString.read(from: &buf), - amount: FfiConverterUInt64.read(from: &buf), - scriptType: FfiConverterOptionTypeTrezorScriptType.read(from: &buf), - opReturnData: FfiConverterOptionString.read(from: &buf), - origHash: FfiConverterOptionString.read(from: &buf), + address: FfiConverterOptionString.read(from: &buf), + path: FfiConverterOptionString.read(from: &buf), + amount: FfiConverterUInt64.read(from: &buf), + scriptType: FfiConverterOptionTypeTrezorScriptType.read(from: &buf), + opReturnData: FfiConverterOptionString.read(from: &buf), + origHash: FfiConverterOptionString.read(from: &buf), origIndex: FfiConverterOptionUInt32.read(from: &buf) ) } @@ -12197,13 +12215,13 @@ public struct TrezorVerifyMessageParams { public init( /** * Bitcoin address that signed the message - */address: String, + */address: String, /** * Signature (base64 encoded) - */signature: String, + */signature: String, /** * Original message - */message: String, + */message: String, /** * Coin network (default: Bitcoin) */coin: TrezorCoinType?) { @@ -12255,9 +12273,9 @@ public struct FfiConverterTypeTrezorVerifyMessageParams: FfiConverterRustBuffer public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorVerifyMessageParams { return try TrezorVerifyMessageParams( - address: FfiConverterString.read(from: &buf), - signature: FfiConverterString.read(from: &buf), - message: FfiConverterString.read(from: &buf), + address: FfiConverterString.read(from: &buf), + signature: FfiConverterString.read(from: &buf), + message: FfiConverterString.read(from: &buf), coin: FfiConverterOptionTypeTrezorCoinType.read(from: &buf) ) } @@ -12316,16 +12334,16 @@ public struct TxDetailInput { public init( /** * Previous output transaction ID (hex) - */txid: String, + */txid: String, /** * Previous output index - */vout: UInt32, + */vout: UInt32, /** * Sequence number - */sequence: UInt32, + */sequence: UInt32, /** * Script signature (hex-encoded) - */scriptSig: String, + */scriptSig: String, /** * Witness stack (each element hex-encoded) */witness: [String]) { @@ -12382,10 +12400,10 @@ public struct FfiConverterTypeTxDetailInput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TxDetailInput { return try TxDetailInput( - txid: FfiConverterString.read(from: &buf), - vout: FfiConverterUInt32.read(from: &buf), - sequence: FfiConverterUInt32.read(from: &buf), - scriptSig: FfiConverterString.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + vout: FfiConverterUInt32.read(from: &buf), + sequence: FfiConverterUInt32.read(from: &buf), + scriptSig: FfiConverterString.read(from: &buf), witness: FfiConverterSequenceString.read(from: &buf) ) } @@ -12441,13 +12459,13 @@ public struct TxDetailOutput { public init( /** * Output value in sats - */value: UInt64, + */value: UInt64, /** * Script public key (hex-encoded) - */scriptPubkey: String, + */scriptPubkey: String, /** * Decoded address (None if script is not decodable to an address) - */address: String?, + */address: String?, /** * Whether this output belongs to the queried wallet */isMine: Bool) { @@ -12499,9 +12517,9 @@ public struct FfiConverterTypeTxDetailOutput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TxDetailOutput { return try TxDetailOutput( - value: FfiConverterUInt64.read(from: &buf), - scriptPubkey: FfiConverterString.read(from: &buf), - address: FfiConverterOptionString.read(from: &buf), + value: FfiConverterUInt64.read(from: &buf), + scriptPubkey: FfiConverterString.read(from: &buf), + address: FfiConverterOptionString.read(from: &buf), isMine: FfiConverterBool.read(from: &buf) ) } @@ -12560,16 +12578,16 @@ public struct TxInput { public init( /** * The transaction ID of the previous output being spent. - */txid: String, + */txid: String, /** * The output index of the previous output being spent. - */vout: UInt32, + */vout: UInt32, /** * The script signature (hex-encoded). - */scriptsig: String, + */scriptsig: String, /** * The witness stack (hex-encoded strings). - */witness: [String], + */witness: [String], /** * The sequence number. */sequence: UInt32) { @@ -12626,10 +12644,10 @@ public struct FfiConverterTypeTxInput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TxInput { return try TxInput( - txid: FfiConverterString.read(from: &buf), - vout: FfiConverterUInt32.read(from: &buf), - scriptsig: FfiConverterString.read(from: &buf), - witness: FfiConverterSequenceString.read(from: &buf), + txid: FfiConverterString.read(from: &buf), + vout: FfiConverterUInt32.read(from: &buf), + scriptsig: FfiConverterString.read(from: &buf), + witness: FfiConverterSequenceString.read(from: &buf), sequence: FfiConverterUInt32.read(from: &buf) ) } @@ -12689,16 +12707,16 @@ public struct TxOutput { public init( /** * The script public key (hex-encoded). - */scriptpubkey: String, + */scriptpubkey: String, /** * The script public key type (e.g., "p2pkh", "p2sh", "p2wpkh", "p2wsh", "p2tr"). - */scriptpubkeyType: String?, + */scriptpubkeyType: String?, /** * The address corresponding to this script (if decodable). - */scriptpubkeyAddress: String?, + */scriptpubkeyAddress: String?, /** * The value in satoshis. - */value: Int64, + */value: Int64, /** * The output index in the transaction. */n: UInt32) { @@ -12755,10 +12773,10 @@ public struct FfiConverterTypeTxOutput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TxOutput { return try TxOutput( - scriptpubkey: FfiConverterString.read(from: &buf), - scriptpubkeyType: FfiConverterOptionString.read(from: &buf), - scriptpubkeyAddress: FfiConverterOptionString.read(from: &buf), - value: FfiConverterInt64.read(from: &buf), + scriptpubkey: FfiConverterString.read(from: &buf), + scriptpubkeyType: FfiConverterOptionString.read(from: &buf), + scriptpubkeyAddress: FfiConverterOptionString.read(from: &buf), + value: FfiConverterInt64.read(from: &buf), n: FfiConverterUInt32.read(from: &buf) ) } @@ -12839,8 +12857,8 @@ public struct FfiConverterTypeValidationResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ValidationResult { return try ValidationResult( - address: FfiConverterString.read(from: &buf), - network: FfiConverterTypeNetworkType.read(from: &buf), + address: FfiConverterString.read(from: &buf), + network: FfiConverterTypeNetworkType.read(from: &buf), addressType: FfiConverterTypeAddressType.read(from: &buf) ) } @@ -12902,19 +12920,19 @@ public struct WalletBalance { public init( /** * Confirmed and spendable balance (sats) - */confirmed: UInt64, + */confirmed: UInt64, /** * Immature coinbase outputs (sats) - */immature: UInt64, + */immature: UInt64, /** * Unconfirmed UTXOs from trusted sources (own change) (sats) - */trustedPending: UInt64, + */trustedPending: UInt64, /** * Unconfirmed UTXOs from external sources (sats) - */untrustedPending: UInt64, + */untrustedPending: UInt64, /** * Total spendable: confirmed + trusted_pending (sats) - */spendable: UInt64, + */spendable: UInt64, /** * Grand total: all categories (sats) */total: UInt64) { @@ -12976,11 +12994,11 @@ public struct FfiConverterTypeWalletBalance: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> WalletBalance { return try WalletBalance( - confirmed: FfiConverterUInt64.read(from: &buf), - immature: FfiConverterUInt64.read(from: &buf), - trustedPending: FfiConverterUInt64.read(from: &buf), - untrustedPending: FfiConverterUInt64.read(from: &buf), - spendable: FfiConverterUInt64.read(from: &buf), + confirmed: FfiConverterUInt64.read(from: &buf), + immature: FfiConverterUInt64.read(from: &buf), + trustedPending: FfiConverterUInt64.read(from: &buf), + untrustedPending: FfiConverterUInt64.read(from: &buf), + spendable: FfiConverterUInt64.read(from: &buf), total: FfiConverterUInt64.read(from: &buf) ) } @@ -13041,16 +13059,16 @@ public struct WalletParams { public init( /** * Extended public key (xpub/ypub/zpub/tpub/upub/vpub) - */extendedKey: String, + */extendedKey: String, /** * Electrum server URL for wallet sync - */electrumUrl: String, + */electrumUrl: String, /** * Root fingerprint hex (e.g. "73c5da0a"). Required for hardware wallet signing. - */fingerprint: String?, + */fingerprint: String?, /** * Bitcoin network (auto-detected from key prefix if not specified) - */network: Network?, + */network: Network?, /** * Override account type for ambiguous key prefixes (xpub/tpub) */accountType: AccountType?) { @@ -13107,10 +13125,10 @@ public struct FfiConverterTypeWalletParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> WalletParams { return try WalletParams( - extendedKey: FfiConverterString.read(from: &buf), - electrumUrl: FfiConverterString.read(from: &buf), - fingerprint: FfiConverterOptionString.read(from: &buf), - network: FfiConverterOptionTypeNetwork.read(from: &buf), + extendedKey: FfiConverterString.read(from: &buf), + electrumUrl: FfiConverterString.read(from: &buf), + fingerprint: FfiConverterOptionString.read(from: &buf), + network: FfiConverterOptionTypeNetwork.read(from: &buf), accountType: FfiConverterOptionTypeAccountType.read(from: &buf) ) } @@ -13174,19 +13192,19 @@ public struct WatcherParams { public init( /** * Caller-supplied identifier for this watcher. - */watcherId: String, + */watcherId: String, /** * Extended public key (xpub/ypub/zpub/tpub/upub/vpub). - */extendedKey: String, + */extendedKey: String, /** * Electrum server URL (e.g. "ssl://electrum.example.com:50002"). - */electrumUrl: String, + */electrumUrl: String, /** * Bitcoin network override (auto-detected from key prefix if None). - */network: Network?, + */network: Network?, /** * Account type override (auto-detected from key prefix if None). - */accountType: AccountType?, + */accountType: AccountType?, /** * Number of unused addresses to monitor beyond the last used (default 20). */gapLimit: UInt32?) { @@ -13248,11 +13266,11 @@ public struct FfiConverterTypeWatcherParams: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> WatcherParams { return try WatcherParams( - watcherId: FfiConverterString.read(from: &buf), - extendedKey: FfiConverterString.read(from: &buf), - electrumUrl: FfiConverterString.read(from: &buf), - network: FfiConverterOptionTypeNetwork.read(from: &buf), - accountType: FfiConverterOptionTypeAccountType.read(from: &buf), + watcherId: FfiConverterString.read(from: &buf), + extendedKey: FfiConverterString.read(from: &buf), + electrumUrl: FfiConverterString.read(from: &buf), + network: FfiConverterOptionTypeNetwork.read(from: &buf), + accountType: FfiConverterOptionTypeAccountType.read(from: &buf), gapLimit: FfiConverterOptionUInt32.read(from: &buf) ) } @@ -13288,8 +13306,8 @@ public func FfiConverterTypeWatcherParams_lower(_ value: WatcherParams) -> RustB */ public enum AccountInfoError: Swift.Error { - - + + /** * The provided extended public key is invalid or cannot be parsed */ @@ -13353,9 +13371,9 @@ public struct FfiConverterTypeAccountInfoError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidExtendedKey( errorDetails: try FfiConverterString.read(from: &buf) ) @@ -13394,59 +13412,59 @@ public struct FfiConverterTypeAccountInfoError: FfiConverterRustBuffer { public static func write(_ value: AccountInfoError, into buf: inout [UInt8]) { switch value { + - - - + + case let .InvalidExtendedKey(errorDetails): writeInt(&buf, Int32(1)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InvalidAddress(errorDetails): writeInt(&buf, Int32(2)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .ElectrumError(errorDetails): writeInt(&buf, Int32(3)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .WalletError(errorDetails): writeInt(&buf, Int32(4)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .SyncError(errorDetails): writeInt(&buf, Int32(5)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .UnsupportedKeyType(errorDetails): writeInt(&buf, Int32(6)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .NetworkMismatch(errorDetails): writeInt(&buf, Int32(7)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InvalidTxid(errorDetails): writeInt(&buf, Int32(8)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .TransactionNotFound(errorDetails): writeInt(&buf, Int32(9)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .WatcherError(errorDetails): writeInt(&buf, Int32(10)) FfiConverterString.write(errorDetails, into: &buf) - + } } } @@ -13492,7 +13510,7 @@ extension AccountInfoError: Foundation.LocalizedError { */ public enum AccountType { - + /** * BIP44 legacy (P2PKH) — xpub/tpub prefix */ @@ -13525,38 +13543,38 @@ public struct FfiConverterTypeAccountType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AccountType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .legacy - + case 2: return .wrappedSegwit - + case 3: return .nativeSegwit - + case 4: return .taproot - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: AccountType, into buf: inout [UInt8]) { switch value { - - + + case .legacy: writeInt(&buf, Int32(1)) - - + + case .wrappedSegwit: writeInt(&buf, Int32(2)) - - + + case .nativeSegwit: writeInt(&buf, Int32(3)) - - + + case .taproot: writeInt(&buf, Int32(4)) - + } } } @@ -13590,7 +13608,7 @@ extension AccountType: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum Activity { - + case onchain(OnchainActivity ) case lightning(LightningActivity @@ -13611,30 +13629,30 @@ public struct FfiConverterTypeActivity: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Activity { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .onchain(try FfiConverterTypeOnchainActivity.read(from: &buf) ) - + case 2: return .lightning(try FfiConverterTypeLightningActivity.read(from: &buf) ) - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: Activity, into buf: inout [UInt8]) { switch value { - - + + case let .onchain(v1): writeInt(&buf, Int32(1)) FfiConverterTypeOnchainActivity.write(v1, into: &buf) - - + + case let .lightning(v1): writeInt(&buf, Int32(2)) FfiConverterTypeLightningActivity.write(v1, into: &buf) - + } } } @@ -13667,8 +13685,8 @@ extension Activity: Codable {} public enum ActivityError: Swift.Error { - - + + case InvalidActivity(errorDetails: String ) case InitializationError(errorDetails: String @@ -13696,9 +13714,9 @@ public struct FfiConverterTypeActivityError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidActivity( errorDetails: try FfiConverterString.read(from: &buf) ) @@ -13728,44 +13746,44 @@ public struct FfiConverterTypeActivityError: FfiConverterRustBuffer { public static func write(_ value: ActivityError, into buf: inout [UInt8]) { switch value { + - - - + + case let .InvalidActivity(errorDetails): writeInt(&buf, Int32(1)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InitializationError(errorDetails): writeInt(&buf, Int32(2)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InsertError(errorDetails): writeInt(&buf, Int32(3)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .RetrievalError(errorDetails): writeInt(&buf, Int32(4)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .DataError(errorDetails): writeInt(&buf, Int32(5)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .ConnectionError(errorDetails): writeInt(&buf, Int32(6)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .SerializationError(errorDetails): writeInt(&buf, Int32(7)) FfiConverterString.write(errorDetails, into: &buf) - + } } } @@ -13806,7 +13824,7 @@ extension ActivityError: Foundation.LocalizedError { // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum ActivityFilter { - + case all case lightning case onchain @@ -13826,32 +13844,32 @@ public struct FfiConverterTypeActivityFilter: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ActivityFilter { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .all - + case 2: return .lightning - + case 3: return .onchain - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: ActivityFilter, into buf: inout [UInt8]) { switch value { - - + + case .all: writeInt(&buf, Int32(1)) - - + + case .lightning: writeInt(&buf, Int32(2)) - - + + case .onchain: writeInt(&buf, Int32(3)) - + } } } @@ -13885,7 +13903,7 @@ extension ActivityFilter: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum ActivityType { - + case onchain case lightning } @@ -13904,26 +13922,26 @@ public struct FfiConverterTypeActivityType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ActivityType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .onchain - + case 2: return .lightning - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: ActivityType, into buf: inout [UInt8]) { switch value { - - + + case .onchain: writeInt(&buf, Int32(1)) - - + + case .lightning: writeInt(&buf, Int32(2)) - + } } } @@ -13956,8 +13974,8 @@ extension ActivityType: Codable {} public enum AddressError: Swift.Error { - - + + case InvalidAddress case InvalidNetwork case MnemonicGenerationFailed @@ -13977,9 +13995,9 @@ public struct FfiConverterTypeAddressError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidAddress case 2: return .InvalidNetwork case 3: return .MnemonicGenerationFailed @@ -13994,33 +14012,33 @@ public struct FfiConverterTypeAddressError: FfiConverterRustBuffer { public static func write(_ value: AddressError, into buf: inout [UInt8]) { switch value { + - - - + + case .InvalidAddress: writeInt(&buf, Int32(1)) - - + + case .InvalidNetwork: writeInt(&buf, Int32(2)) - - + + case .MnemonicGenerationFailed: writeInt(&buf, Int32(3)) - - + + case .InvalidMnemonic: writeInt(&buf, Int32(4)) - - + + case .InvalidEntropy: writeInt(&buf, Int32(5)) - - + + case .AddressDerivationFailed: writeInt(&buf, Int32(6)) - + } } } @@ -14061,7 +14079,7 @@ extension AddressError: Foundation.LocalizedError { // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum AddressType { - + case p2pkh case p2sh case p2wpkh @@ -14084,50 +14102,50 @@ public struct FfiConverterTypeAddressType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AddressType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .p2pkh - + case 2: return .p2sh - + case 3: return .p2wpkh - + case 4: return .p2wsh - + case 5: return .p2tr - + case 6: return .unknown - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: AddressType, into buf: inout [UInt8]) { switch value { - - + + case .p2pkh: writeInt(&buf, Int32(1)) - - + + case .p2sh: writeInt(&buf, Int32(2)) - - + + case .p2wpkh: writeInt(&buf, Int32(3)) - - + + case .p2wsh: writeInt(&buf, Int32(4)) - - + + case .p2tr: writeInt(&buf, Int32(5)) - - + + case .unknown: writeInt(&buf, Int32(6)) - + } } } @@ -14161,7 +14179,7 @@ extension AddressType: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BitcoinNetworkEnum { - + case mainnet case testnet case signet @@ -14182,38 +14200,38 @@ public struct FfiConverterTypeBitcoinNetworkEnum: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BitcoinNetworkEnum { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .mainnet - + case 2: return .testnet - + case 3: return .signet - + case 4: return .regtest - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BitcoinNetworkEnum, into buf: inout [UInt8]) { switch value { - - + + case .mainnet: writeInt(&buf, Int32(1)) - - + + case .testnet: writeInt(&buf, Int32(2)) - - + + case .signet: writeInt(&buf, Int32(3)) - - + + case .regtest: writeInt(&buf, Int32(4)) - + } } } @@ -14246,8 +14264,8 @@ extension BitcoinNetworkEnum: Codable {} public enum BlocktankError: Swift.Error { - - + + case HttpClient(errorDetails: String ) case BlocktankClient(errorDetails: String @@ -14287,9 +14305,9 @@ public struct FfiConverterTypeBlocktankError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .HttpClient( errorDetails: try FfiConverterString.read(from: &buf) ) @@ -14318,7 +14336,7 @@ public struct FfiConverterTypeBlocktankError: FfiConverterRustBuffer { errorDetails: try FfiConverterString.read(from: &buf) ) case 10: return .ChannelOpen( - errorType: try FfiConverterTypeBtChannelOrderErrorType.read(from: &buf), + errorType: try FfiConverterTypeBtChannelOrderErrorType.read(from: &buf), errorDetails: try FfiConverterString.read(from: &buf) ) case 11: return .OrderState( @@ -14338,75 +14356,75 @@ public struct FfiConverterTypeBlocktankError: FfiConverterRustBuffer { public static func write(_ value: BlocktankError, into buf: inout [UInt8]) { switch value { + - - - + + case let .HttpClient(errorDetails): writeInt(&buf, Int32(1)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .BlocktankClient(errorDetails): writeInt(&buf, Int32(2)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InvalidBlocktank(errorDetails): writeInt(&buf, Int32(3)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InitializationError(errorDetails): writeInt(&buf, Int32(4)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InsertError(errorDetails): writeInt(&buf, Int32(5)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .RetrievalError(errorDetails): writeInt(&buf, Int32(6)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .DataError(errorDetails): writeInt(&buf, Int32(7)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .ConnectionError(errorDetails): writeInt(&buf, Int32(8)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .SerializationError(errorDetails): writeInt(&buf, Int32(9)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .ChannelOpen(errorType,errorDetails): writeInt(&buf, Int32(10)) FfiConverterTypeBtChannelOrderErrorType.write(errorType, into: &buf) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .OrderState(errorDetails): writeInt(&buf, Int32(11)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InvalidParameter(errorDetails): writeInt(&buf, Int32(12)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .DatabaseError(errorDetails): writeInt(&buf, Int32(13)) FfiConverterString.write(errorDetails, into: &buf) - + } } } @@ -14446,8 +14464,8 @@ extension BlocktankError: Foundation.LocalizedError { public enum BroadcastError: Swift.Error { - - + + case InvalidHex(errorDetails: String ) case InvalidTransaction(errorDetails: String @@ -14469,9 +14487,9 @@ public struct FfiConverterTypeBroadcastError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidHex( errorDetails: try FfiConverterString.read(from: &buf) ) @@ -14492,29 +14510,29 @@ public struct FfiConverterTypeBroadcastError: FfiConverterRustBuffer { public static func write(_ value: BroadcastError, into buf: inout [UInt8]) { switch value { + - - - + + case let .InvalidHex(errorDetails): writeInt(&buf, Int32(1)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .InvalidTransaction(errorDetails): writeInt(&buf, Int32(2)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .ElectrumError(errorDetails): writeInt(&buf, Int32(3)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .TaskError(errorDetails): writeInt(&buf, Int32(4)) FfiConverterString.write(errorDetails, into: &buf) - + } } } @@ -14555,7 +14573,7 @@ extension BroadcastError: Foundation.LocalizedError { // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtBolt11InvoiceState { - + case pending case holding case paid @@ -14576,38 +14594,38 @@ public struct FfiConverterTypeBtBolt11InvoiceState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtBolt11InvoiceState { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .pending - + case 2: return .holding - + case 3: return .paid - + case 4: return .canceled - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtBolt11InvoiceState, into buf: inout [UInt8]) { switch value { - - + + case .pending: writeInt(&buf, Int32(1)) - - + + case .holding: writeInt(&buf, Int32(2)) - - + + case .paid: writeInt(&buf, Int32(3)) - - + + case .canceled: writeInt(&buf, Int32(4)) - + } } } @@ -14641,7 +14659,7 @@ extension BtBolt11InvoiceState: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtChannelOrderErrorType { - + case wrongOrderState case peerNotReachable case channelRejectedByDestination @@ -14663,44 +14681,44 @@ public struct FfiConverterTypeBtChannelOrderErrorType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtChannelOrderErrorType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .wrongOrderState - + case 2: return .peerNotReachable - + case 3: return .channelRejectedByDestination - + case 4: return .channelRejectedByLsp - + case 5: return .blocktankNotReady - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtChannelOrderErrorType, into buf: inout [UInt8]) { switch value { - - + + case .wrongOrderState: writeInt(&buf, Int32(1)) - - + + case .peerNotReachable: writeInt(&buf, Int32(2)) - - + + case .channelRejectedByDestination: writeInt(&buf, Int32(3)) - - + + case .channelRejectedByLsp: writeInt(&buf, Int32(4)) - - + + case .blocktankNotReady: writeInt(&buf, Int32(5)) - + } } } @@ -14734,7 +14752,7 @@ extension BtChannelOrderErrorType: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtOpenChannelState { - + case opening case `open` case closed @@ -14754,32 +14772,32 @@ public struct FfiConverterTypeBtOpenChannelState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtOpenChannelState { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .opening - + case 2: return .`open` - + case 3: return .closed - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtOpenChannelState, into buf: inout [UInt8]) { switch value { - - + + case .opening: writeInt(&buf, Int32(1)) - - + + case .`open`: writeInt(&buf, Int32(2)) - - + + case .closed: writeInt(&buf, Int32(3)) - + } } } @@ -14813,7 +14831,7 @@ extension BtOpenChannelState: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtOrderState { - + case created case expired case `open` @@ -14834,38 +14852,38 @@ public struct FfiConverterTypeBtOrderState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtOrderState { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .created - + case 2: return .expired - + case 3: return .`open` - + case 4: return .closed - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtOrderState, into buf: inout [UInt8]) { switch value { - - + + case .created: writeInt(&buf, Int32(1)) - - + + case .expired: writeInt(&buf, Int32(2)) - - + + case .`open`: writeInt(&buf, Int32(3)) - - + + case .closed: writeInt(&buf, Int32(4)) - + } } } @@ -14899,7 +14917,7 @@ extension BtOrderState: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtOrderState2 { - + case created case expired case executed @@ -14920,38 +14938,38 @@ public struct FfiConverterTypeBtOrderState2: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtOrderState2 { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .created - + case 2: return .expired - + case 3: return .executed - + case 4: return .paid - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtOrderState2, into buf: inout [UInt8]) { switch value { - - + + case .created: writeInt(&buf, Int32(1)) - - + + case .expired: writeInt(&buf, Int32(2)) - - + + case .executed: writeInt(&buf, Int32(3)) - - + + case .paid: writeInt(&buf, Int32(4)) - + } } } @@ -14985,7 +15003,7 @@ extension BtOrderState2: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtPaymentState { - + case created case partiallyPaid case paid @@ -15007,44 +15025,44 @@ public struct FfiConverterTypeBtPaymentState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtPaymentState { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .created - + case 2: return .partiallyPaid - + case 3: return .paid - + case 4: return .refunded - + case 5: return .refundAvailable - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtPaymentState, into buf: inout [UInt8]) { switch value { - - + + case .created: writeInt(&buf, Int32(1)) - - + + case .partiallyPaid: writeInt(&buf, Int32(2)) - - + + case .paid: writeInt(&buf, Int32(3)) - - + + case .refunded: writeInt(&buf, Int32(4)) - - + + case .refundAvailable: writeInt(&buf, Int32(5)) - + } } } @@ -15078,7 +15096,7 @@ extension BtPaymentState: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum BtPaymentState2 { - + case created case paid case refunded @@ -15100,44 +15118,44 @@ public struct FfiConverterTypeBtPaymentState2: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> BtPaymentState2 { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .created - + case 2: return .paid - + case 3: return .refunded - + case 4: return .refundAvailable - + case 5: return .canceled - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: BtPaymentState2, into buf: inout [UInt8]) { switch value { - - + + case .created: writeInt(&buf, Int32(1)) - - + + case .paid: writeInt(&buf, Int32(2)) - - + + case .refunded: writeInt(&buf, Int32(3)) - - + + case .refundAvailable: writeInt(&buf, Int32(4)) - - + + case .canceled: writeInt(&buf, Int32(5)) - + } } } @@ -15171,7 +15189,7 @@ extension BtPaymentState2: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum CJitStateEnum { - + case created case completed case expired @@ -15192,38 +15210,38 @@ public struct FfiConverterTypeCJitStateEnum: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> CJitStateEnum { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .created - + case 2: return .completed - + case 3: return .expired - + case 4: return .failed - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: CJitStateEnum, into buf: inout [UInt8]) { switch value { - - + + case .created: writeInt(&buf, Int32(1)) - - + + case .completed: writeInt(&buf, Int32(2)) - - + + case .expired: writeInt(&buf, Int32(3)) - - + + case .failed: writeInt(&buf, Int32(4)) - + } } } @@ -15260,7 +15278,7 @@ extension CJitStateEnum: Codable {} */ public enum CoinSelection { - + /** * Branch-and-bound (default). Minimizes change by searching for exact matches. */ @@ -15289,32 +15307,32 @@ public struct FfiConverterTypeCoinSelection: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> CoinSelection { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .branchAndBound - + case 2: return .largestFirst - + case 3: return .oldestFirst - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: CoinSelection, into buf: inout [UInt8]) { switch value { - - + + case .branchAndBound: writeInt(&buf, Int32(1)) - - + + case .largestFirst: writeInt(&buf, Int32(2)) - - + + case .oldestFirst: writeInt(&buf, Int32(3)) - + } } } @@ -15351,7 +15369,7 @@ extension CoinSelection: Codable {} */ public enum ComposeOutput { - + /** * Payment to a specific address with a fixed amount (satoshis) */ @@ -15383,39 +15401,39 @@ public struct FfiConverterTypeComposeOutput: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ComposeOutput { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .payment(address: try FfiConverterString.read(from: &buf), amountSats: try FfiConverterUInt64.read(from: &buf) ) - + case 2: return .sendMax(address: try FfiConverterString.read(from: &buf) ) - + case 3: return .opReturn(dataHex: try FfiConverterString.read(from: &buf) ) - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: ComposeOutput, into buf: inout [UInt8]) { switch value { - - + + case let .payment(address,amountSats): writeInt(&buf, Int32(1)) FfiConverterString.write(address, into: &buf) FfiConverterUInt64.write(amountSats, into: &buf) - - + + case let .sendMax(address): writeInt(&buf, Int32(2)) FfiConverterString.write(address, into: &buf) - - + + case let .opReturn(dataHex): writeInt(&buf, Int32(3)) FfiConverterString.write(dataHex, into: &buf) - + } } } @@ -15452,20 +15470,20 @@ extension ComposeOutput: Codable {} */ public enum ComposeResult { - + /** * Successfully built a signable PSBT */ case success( /** * Base64-encoded PSBT ready for signing - */psbt: String, + */psbt: String, /** * Total fee in satoshis - */fee: UInt64, + */fee: UInt64, /** * Target fee rate in sat/vB (actual may differ slightly due to rounding) - */feeRate: Float, + */feeRate: Float, /** * Total value spent (payments + fee, excluding change). * Uses BDK's `sent - received` semantics, which may undercount for @@ -15493,33 +15511,33 @@ public struct FfiConverterTypeComposeResult: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ComposeResult { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .success(psbt: try FfiConverterString.read(from: &buf), fee: try FfiConverterUInt64.read(from: &buf), feeRate: try FfiConverterFloat.read(from: &buf), totalSpent: try FfiConverterUInt64.read(from: &buf) ) - + case 2: return .error(error: try FfiConverterString.read(from: &buf) ) - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: ComposeResult, into buf: inout [UInt8]) { switch value { - - + + case let .success(psbt,fee,feeRate,totalSpent): writeInt(&buf, Int32(1)) FfiConverterString.write(psbt, into: &buf) FfiConverterUInt64.write(fee, into: &buf) FfiConverterFloat.write(feeRate, into: &buf) FfiConverterUInt64.write(totalSpent, into: &buf) - - + + case let .error(error): writeInt(&buf, Int32(2)) FfiConverterString.write(error, into: &buf) - + } } } @@ -15552,8 +15570,8 @@ extension ComposeResult: Codable {} public enum DbError: Swift.Error { - - + + case DbActivityError(errorDetails: ActivityError ) case DbBlocktankError(errorDetails: BlocktankError @@ -15573,9 +15591,9 @@ public struct FfiConverterTypeDbError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .DbActivityError( errorDetails: try FfiConverterTypeActivityError.read(from: &buf) ) @@ -15593,24 +15611,24 @@ public struct FfiConverterTypeDbError: FfiConverterRustBuffer { public static func write(_ value: DbError, into buf: inout [UInt8]) { switch value { + - - - + + case let .DbActivityError(errorDetails): writeInt(&buf, Int32(1)) FfiConverterTypeActivityError.write(errorDetails, into: &buf) - - + + case let .DbBlocktankError(errorDetails): writeInt(&buf, Int32(2)) FfiConverterTypeBlocktankError.write(errorDetails, into: &buf) - - + + case let .InitializationError(errorDetails): writeInt(&buf, Int32(3)) FfiConverterString.write(errorDetails, into: &buf) - + } } } @@ -15650,8 +15668,8 @@ extension DbError: Foundation.LocalizedError { public enum DecodingError: Swift.Error { - - + + case InvalidFormat case InvalidNetwork case InvalidAmount @@ -15679,15 +15697,15 @@ public struct FfiConverterTypeDecodingError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidFormat case 2: return .InvalidNetwork case 3: return .InvalidAmount case 4: return .InvalidLnurlPayAmount( - amountSatoshis: try FfiConverterUInt64.read(from: &buf), - min: try FfiConverterUInt64.read(from: &buf), + amountSatoshis: try FfiConverterUInt64.read(from: &buf), + min: try FfiConverterUInt64.read(from: &buf), max: try FfiConverterUInt64.read(from: &buf) ) case 5: return .InvalidTimestamp @@ -15708,61 +15726,61 @@ public struct FfiConverterTypeDecodingError: FfiConverterRustBuffer { public static func write(_ value: DecodingError, into buf: inout [UInt8]) { switch value { + - - - + + case .InvalidFormat: writeInt(&buf, Int32(1)) - - + + case .InvalidNetwork: writeInt(&buf, Int32(2)) - - + + case .InvalidAmount: writeInt(&buf, Int32(3)) - - + + case let .InvalidLnurlPayAmount(amountSatoshis,min,max): writeInt(&buf, Int32(4)) FfiConverterUInt64.write(amountSatoshis, into: &buf) FfiConverterUInt64.write(min, into: &buf) FfiConverterUInt64.write(max, into: &buf) - - + + case .InvalidTimestamp: writeInt(&buf, Int32(5)) - - + + case .InvalidChecksum: writeInt(&buf, Int32(6)) - - + + case .InvalidResponse: writeInt(&buf, Int32(7)) - - + + case .UnsupportedType: writeInt(&buf, Int32(8)) - - + + case .InvalidAddress: writeInt(&buf, Int32(9)) - - + + case .RequestFailed: writeInt(&buf, Int32(10)) - - + + case .ClientCreationFailed: writeInt(&buf, Int32(11)) - - + + case let .InvoiceCreationFailed(errorMessage): writeInt(&buf, Int32(12)) FfiConverterString.write(errorMessage, into: &buf) - + } } } @@ -15802,8 +15820,8 @@ extension DecodingError: Foundation.LocalizedError { public enum LnurlError: Swift.Error { - - + + case InvalidAddress case ClientCreationFailed case RequestFailed @@ -15826,16 +15844,16 @@ public struct FfiConverterTypeLnurlError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidAddress case 2: return .ClientCreationFailed case 3: return .RequestFailed case 4: return .InvalidResponse case 5: return .InvalidAmount( - amountSatoshis: try FfiConverterUInt64.read(from: &buf), - min: try FfiConverterUInt64.read(from: &buf), + amountSatoshis: try FfiConverterUInt64.read(from: &buf), + min: try FfiConverterUInt64.read(from: &buf), max: try FfiConverterUInt64.read(from: &buf) ) case 6: return .InvoiceCreationFailed( @@ -15850,41 +15868,41 @@ public struct FfiConverterTypeLnurlError: FfiConverterRustBuffer { public static func write(_ value: LnurlError, into buf: inout [UInt8]) { switch value { + - - - + + case .InvalidAddress: writeInt(&buf, Int32(1)) - - + + case .ClientCreationFailed: writeInt(&buf, Int32(2)) - - + + case .RequestFailed: writeInt(&buf, Int32(3)) - - + + case .InvalidResponse: writeInt(&buf, Int32(4)) - - + + case let .InvalidAmount(amountSatoshis,min,max): writeInt(&buf, Int32(5)) FfiConverterUInt64.write(amountSatoshis, into: &buf) FfiConverterUInt64.write(min, into: &buf) FfiConverterUInt64.write(max, into: &buf) - - + + case let .InvoiceCreationFailed(errorDetails): writeInt(&buf, Int32(6)) FfiConverterString.write(errorDetails, into: &buf) - - + + case .AuthenticationFailed: writeInt(&buf, Int32(7)) - + } } } @@ -15925,7 +15943,7 @@ extension LnurlError: Foundation.LocalizedError { // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum ManualRefundStateEnum { - + case created case approved case rejected @@ -15946,38 +15964,38 @@ public struct FfiConverterTypeManualRefundStateEnum: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ManualRefundStateEnum { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .created - + case 2: return .approved - + case 3: return .rejected - + case 4: return .sent - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: ManualRefundStateEnum, into buf: inout [UInt8]) { switch value { - - + + case .created: writeInt(&buf, Int32(1)) - - + + case .approved: writeInt(&buf, Int32(2)) - - + + case .rejected: writeInt(&buf, Int32(3)) - - + + case .sent: writeInt(&buf, Int32(4)) - + } } } @@ -16011,7 +16029,7 @@ extension ManualRefundStateEnum: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum Network { - + /** * Mainnet Bitcoin. */ @@ -16048,44 +16066,44 @@ public struct FfiConverterTypeNetwork: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Network { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .bitcoin - + case 2: return .testnet - + case 3: return .testnet4 - + case 4: return .signet - + case 5: return .regtest - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: Network, into buf: inout [UInt8]) { switch value { - - + + case .bitcoin: writeInt(&buf, Int32(1)) - - + + case .testnet: writeInt(&buf, Int32(2)) - - + + case .testnet4: writeInt(&buf, Int32(3)) - - + + case .signet: writeInt(&buf, Int32(4)) - - + + case .regtest: writeInt(&buf, Int32(5)) - + } } } @@ -16119,7 +16137,7 @@ extension Network: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum NetworkType { - + case bitcoin case testnet case regtest @@ -16140,38 +16158,38 @@ public struct FfiConverterTypeNetworkType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> NetworkType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .bitcoin - + case 2: return .testnet - + case 3: return .regtest - + case 4: return .signet - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: NetworkType, into buf: inout [UInt8]) { switch value { - - + + case .bitcoin: writeInt(&buf, Int32(1)) - - + + case .testnet: writeInt(&buf, Int32(2)) - - + + case .regtest: writeInt(&buf, Int32(3)) - - + + case .signet: writeInt(&buf, Int32(4)) - + } } } @@ -16205,7 +16223,7 @@ extension NetworkType: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum PassphraseResponse { - + /** * User cancelled — aborts the pending operation. */ @@ -16239,40 +16257,40 @@ public struct FfiConverterTypePassphraseResponse: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PassphraseResponse { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .cancel - + case 2: return .standard - + case 3: return .hidden(value: try FfiConverterString.read(from: &buf) ) - + case 4: return .onDevice - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: PassphraseResponse, into buf: inout [UInt8]) { switch value { - - + + case .cancel: writeInt(&buf, Int32(1)) - - + + case .standard: writeInt(&buf, Int32(2)) - - + + case let .hidden(value): writeInt(&buf, Int32(3)) FfiConverterString.write(value, into: &buf) - - + + case .onDevice: writeInt(&buf, Int32(4)) - + } } } @@ -16306,7 +16324,7 @@ extension PassphraseResponse: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum PaymentState { - + case pending case succeeded case failed @@ -16326,32 +16344,32 @@ public struct FfiConverterTypePaymentState: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PaymentState { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .pending - + case 2: return .succeeded - + case 3: return .failed - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: PaymentState, into buf: inout [UInt8]) { switch value { - - + + case .pending: writeInt(&buf, Int32(1)) - - + + case .succeeded: writeInt(&buf, Int32(2)) - - + + case .failed: writeInt(&buf, Int32(3)) - + } } } @@ -16385,7 +16403,7 @@ extension PaymentState: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum PaymentType { - + case sent case received } @@ -16404,26 +16422,26 @@ public struct FfiConverterTypePaymentType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PaymentType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .sent - + case 2: return .received - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: PaymentType, into buf: inout [UInt8]) { switch value { - - + + case .sent: writeInt(&buf, Int32(1)) - - + + case .received: writeInt(&buf, Int32(2)) - + } } } @@ -16460,7 +16478,7 @@ extension PaymentType: Codable {} */ public enum PubkyAuthKind { - + case signin case signup } @@ -16479,26 +16497,26 @@ public struct FfiConverterTypePubkyAuthKind: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> PubkyAuthKind { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .signin - + case 2: return .signup - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: PubkyAuthKind, into buf: inout [UInt8]) { switch value { - - + + case .signin: writeInt(&buf, Int32(1)) - - + + case .signup: writeInt(&buf, Int32(2)) - + } } } @@ -16531,8 +16549,8 @@ extension PubkyAuthKind: Codable {} public enum PubkyError: Swift.Error { - - + + case InvalidCapabilities(reason: String ) case AuthFailed(reason: String @@ -16562,9 +16580,9 @@ public struct FfiConverterTypePubkyError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .InvalidCapabilities( reason: try FfiConverterString.read(from: &buf) ) @@ -16596,52 +16614,52 @@ public struct FfiConverterTypePubkyError: FfiConverterRustBuffer { public static func write(_ value: PubkyError, into buf: inout [UInt8]) { switch value { + - - - + + case let .InvalidCapabilities(reason): writeInt(&buf, Int32(1)) FfiConverterString.write(reason, into: &buf) - - + + case let .AuthFailed(reason): writeInt(&buf, Int32(2)) FfiConverterString.write(reason, into: &buf) - - + + case .NoActiveFlow: writeInt(&buf, Int32(3)) - - + + case let .ResolutionFailed(reason): writeInt(&buf, Int32(4)) FfiConverterString.write(reason, into: &buf) - - + + case let .FetchFailed(reason): writeInt(&buf, Int32(5)) FfiConverterString.write(reason, into: &buf) - - + + case .ProfileNotFound: writeInt(&buf, Int32(6)) - - + + case let .ProfileParseFailed(reason): writeInt(&buf, Int32(7)) FfiConverterString.write(reason, into: &buf) - - + + case let .KeyError(reason): writeInt(&buf, Int32(8)) FfiConverterString.write(reason, into: &buf) - - + + case let .WriteFailed(reason): writeInt(&buf, Int32(9)) FfiConverterString.write(reason, into: &buf) - + } } } @@ -16682,7 +16700,7 @@ extension PubkyError: Foundation.LocalizedError { // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum Scanner { - + case onChain(invoice: OnChainInvoice ) case lightning(invoice: LightningInvoice @@ -16719,96 +16737,96 @@ public struct FfiConverterTypeScanner: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Scanner { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .onChain(invoice: try FfiConverterTypeOnChainInvoice.read(from: &buf) ) - + case 2: return .lightning(invoice: try FfiConverterTypeLightningInvoice.read(from: &buf) ) - + case 3: return .pubkyAuth(data: try FfiConverterString.read(from: &buf) ) - + case 4: return .lnurlChannel(data: try FfiConverterTypeLnurlChannelData.read(from: &buf) ) - + case 5: return .lnurlAuth(data: try FfiConverterTypeLnurlAuthData.read(from: &buf) ) - + case 6: return .lnurlWithdraw(data: try FfiConverterTypeLnurlWithdrawData.read(from: &buf) ) - + case 7: return .lnurlAddress(data: try FfiConverterTypeLnurlAddressData.read(from: &buf) ) - + case 8: return .lnurlPay(data: try FfiConverterTypeLnurlPayData.read(from: &buf) ) - + case 9: return .nodeId(url: try FfiConverterString.read(from: &buf), network: try FfiConverterTypeNetworkType.read(from: &buf) ) - + case 10: return .gift(code: try FfiConverterString.read(from: &buf), amount: try FfiConverterUInt64.read(from: &buf) ) - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: Scanner, into buf: inout [UInt8]) { switch value { - - + + case let .onChain(invoice): writeInt(&buf, Int32(1)) FfiConverterTypeOnChainInvoice.write(invoice, into: &buf) - - + + case let .lightning(invoice): writeInt(&buf, Int32(2)) FfiConverterTypeLightningInvoice.write(invoice, into: &buf) - - + + case let .pubkyAuth(data): writeInt(&buf, Int32(3)) FfiConverterString.write(data, into: &buf) - - + + case let .lnurlChannel(data): writeInt(&buf, Int32(4)) FfiConverterTypeLnurlChannelData.write(data, into: &buf) - - + + case let .lnurlAuth(data): writeInt(&buf, Int32(5)) FfiConverterTypeLnurlAuthData.write(data, into: &buf) - - + + case let .lnurlWithdraw(data): writeInt(&buf, Int32(6)) FfiConverterTypeLnurlWithdrawData.write(data, into: &buf) - - + + case let .lnurlAddress(data): writeInt(&buf, Int32(7)) FfiConverterTypeLnurlAddressData.write(data, into: &buf) - - + + case let .lnurlPay(data): writeInt(&buf, Int32(8)) FfiConverterTypeLnurlPayData.write(data, into: &buf) - - + + case let .nodeId(url,network): writeInt(&buf, Int32(9)) FfiConverterString.write(url, into: &buf) FfiConverterTypeNetworkType.write(network, into: &buf) - - + + case let .gift(code,amount): writeInt(&buf, Int32(10)) FfiConverterString.write(code, into: &buf) FfiConverterUInt64.write(amount, into: &buf) - + } } } @@ -16842,7 +16860,7 @@ extension Scanner: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum SortDirection { - + case asc case desc } @@ -16861,26 +16879,26 @@ public struct FfiConverterTypeSortDirection: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SortDirection { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .asc - + case 2: return .desc - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: SortDirection, into buf: inout [UInt8]) { switch value { - - + + case .asc: writeInt(&buf, Int32(1)) - - + + case .desc: writeInt(&buf, Int32(2)) - + } } } @@ -16913,8 +16931,8 @@ extension SortDirection: Codable {} public enum SweepError: Swift.Error { - - + + case SweepFailed(String ) case NoUtxosFound @@ -16932,9 +16950,9 @@ public struct FfiConverterTypeSweepError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .SweepFailed( try FfiConverterString.read(from: &buf) ) @@ -16948,22 +16966,22 @@ public struct FfiConverterTypeSweepError: FfiConverterRustBuffer { public static func write(_ value: SweepError, into buf: inout [UInt8]) { switch value { + - - - + + case let .SweepFailed(v1): writeInt(&buf, Int32(1)) FfiConverterString.write(v1, into: &buf) - - + + case .NoUtxosFound: writeInt(&buf, Int32(2)) - - + + case .InvalidMnemonic: writeInt(&buf, Int32(3)) - + } } } @@ -17007,7 +17025,7 @@ extension SweepError: Foundation.LocalizedError { */ public enum TrezorCoinType { - + /** * Bitcoin mainnet */ @@ -17040,38 +17058,38 @@ public struct FfiConverterTypeTrezorCoinType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorCoinType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .bitcoin - + case 2: return .testnet - + case 3: return .signet - + case 4: return .regtest - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: TrezorCoinType, into buf: inout [UInt8]) { switch value { - - + + case .bitcoin: writeInt(&buf, Int32(1)) - - + + case .testnet: writeInt(&buf, Int32(2)) - - + + case .signet: writeInt(&buf, Int32(3)) - - + + case .regtest: writeInt(&buf, Int32(4)) - + } } } @@ -17107,8 +17125,8 @@ extension TrezorCoinType: Codable {} */ public enum TrezorError: Swift.Error { - - + + /** * Transport layer error (USB/Bluetooth communication) */ @@ -17122,6 +17140,10 @@ public enum TrezorError: Swift.Error { * Device disconnected during operation */ case DeviceDisconnected + /** + * Device is busy and the caller should back off before retrying + */ + case DeviceBusy /** * Connection error */ @@ -17210,43 +17232,44 @@ public struct FfiConverterTypeTrezorError: FfiConverterRustBuffer { let variant: Int32 = try readInt(&buf) switch variant { + - - + case 1: return .TransportError( errorDetails: try FfiConverterString.read(from: &buf) ) case 2: return .DeviceNotFound case 3: return .DeviceDisconnected - case 4: return .ConnectionError( + case 4: return .DeviceBusy + case 5: return .ConnectionError( errorDetails: try FfiConverterString.read(from: &buf) ) - case 5: return .ProtocolError( + case 6: return .ProtocolError( errorDetails: try FfiConverterString.read(from: &buf) ) - case 6: return .PairingRequired - case 7: return .PairingFailed( + case 7: return .PairingRequired + case 8: return .PairingFailed( errorDetails: try FfiConverterString.read(from: &buf) ) - case 8: return .PinRequired - case 9: return .PinCancelled - case 10: return .InvalidPin - case 11: return .PassphraseRequired - case 12: return .PassphraseCancelled - case 13: return .UserCancelled - case 14: return .Timeout - case 15: return .InvalidPath( + case 9: return .PinRequired + case 10: return .PinCancelled + case 11: return .InvalidPin + case 12: return .PassphraseRequired + case 13: return .PassphraseCancelled + case 14: return .UserCancelled + case 15: return .Timeout + case 16: return .InvalidPath( errorDetails: try FfiConverterString.read(from: &buf) ) - case 16: return .DeviceError( + case 17: return .DeviceError( errorDetails: try FfiConverterString.read(from: &buf) ) - case 17: return .NotInitialized - case 18: return .NotConnected - case 19: return .SessionError( + case 18: return .NotInitialized + case 19: return .NotConnected + case 20: return .SessionError( errorDetails: try FfiConverterString.read(from: &buf) ) - case 20: return .IoError( + case 21: return .IoError( errorDetails: try FfiConverterString.read(from: &buf) ) @@ -17257,97 +17280,101 @@ public struct FfiConverterTypeTrezorError: FfiConverterRustBuffer { public static func write(_ value: TrezorError, into buf: inout [UInt8]) { switch value { + - - - + + case let .TransportError(errorDetails): writeInt(&buf, Int32(1)) FfiConverterString.write(errorDetails, into: &buf) - - + + case .DeviceNotFound: writeInt(&buf, Int32(2)) - - + + case .DeviceDisconnected: writeInt(&buf, Int32(3)) - - - case let .ConnectionError(errorDetails): + + + case .DeviceBusy: writeInt(&buf, Int32(4)) + + + case let .ConnectionError(errorDetails): + writeInt(&buf, Int32(5)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .ProtocolError(errorDetails): - writeInt(&buf, Int32(5)) + writeInt(&buf, Int32(6)) FfiConverterString.write(errorDetails, into: &buf) - - + + case .PairingRequired: - writeInt(&buf, Int32(6)) - - - case let .PairingFailed(errorDetails): writeInt(&buf, Int32(7)) + + + case let .PairingFailed(errorDetails): + writeInt(&buf, Int32(8)) FfiConverterString.write(errorDetails, into: &buf) - - + + case .PinRequired: - writeInt(&buf, Int32(8)) - - - case .PinCancelled: writeInt(&buf, Int32(9)) - - - case .InvalidPin: + + + case .PinCancelled: writeInt(&buf, Int32(10)) - - - case .PassphraseRequired: + + + case .InvalidPin: writeInt(&buf, Int32(11)) - - - case .PassphraseCancelled: + + + case .PassphraseRequired: writeInt(&buf, Int32(12)) - - - case .UserCancelled: + + + case .PassphraseCancelled: writeInt(&buf, Int32(13)) - - - case .Timeout: + + + case .UserCancelled: writeInt(&buf, Int32(14)) - - - case let .InvalidPath(errorDetails): + + + case .Timeout: writeInt(&buf, Int32(15)) + + + case let .InvalidPath(errorDetails): + writeInt(&buf, Int32(16)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .DeviceError(errorDetails): - writeInt(&buf, Int32(16)) + writeInt(&buf, Int32(17)) FfiConverterString.write(errorDetails, into: &buf) - - + + case .NotInitialized: - writeInt(&buf, Int32(17)) - - - case .NotConnected: writeInt(&buf, Int32(18)) - - - case let .SessionError(errorDetails): + + + case .NotConnected: writeInt(&buf, Int32(19)) + + + case let .SessionError(errorDetails): + writeInt(&buf, Int32(20)) FfiConverterString.write(errorDetails, into: &buf) - - + + case let .IoError(errorDetails): - writeInt(&buf, Int32(20)) + writeInt(&buf, Int32(21)) FfiConverterString.write(errorDetails, into: &buf) - + } } } @@ -17391,7 +17418,7 @@ extension TrezorError: Foundation.LocalizedError { */ public enum TrezorScriptType { - + /** * P2PKH (legacy) */ @@ -17432,50 +17459,50 @@ public struct FfiConverterTypeTrezorScriptType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorScriptType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .spendAddress - + case 2: return .spendP2shWitness - + case 3: return .spendWitness - + case 4: return .spendTaproot - + case 5: return .spendMultisig - + case 6: return .external - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: TrezorScriptType, into buf: inout [UInt8]) { switch value { - - + + case .spendAddress: writeInt(&buf, Int32(1)) - - + + case .spendP2shWitness: writeInt(&buf, Int32(2)) - - + + case .spendWitness: writeInt(&buf, Int32(3)) - - + + case .spendTaproot: writeInt(&buf, Int32(4)) - - + + case .spendMultisig: writeInt(&buf, Int32(5)) - - + + case .external: writeInt(&buf, Int32(6)) - + } } } @@ -17512,7 +17539,7 @@ extension TrezorScriptType: Codable {} */ public enum TrezorTransportType { - + /** * USB connection */ @@ -17537,26 +17564,26 @@ public struct FfiConverterTypeTrezorTransportType: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TrezorTransportType { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .usb - + case 2: return .bluetooth - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: TrezorTransportType, into buf: inout [UInt8]) { switch value { - - + + case .usb: writeInt(&buf, Int32(1)) - - + + case .bluetooth: writeInt(&buf, Int32(2)) - + } } } @@ -17593,7 +17620,7 @@ extension TrezorTransportType: Codable {} */ public enum TxDirection { - + /** * Wallet sent funds to an external address */ @@ -17622,32 +17649,32 @@ public struct FfiConverterTypeTxDirection: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TxDirection { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .sent - + case 2: return .received - + case 3: return .selfTransfer - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: TxDirection, into buf: inout [UInt8]) { switch value { - - + + case .sent: writeInt(&buf, Int32(1)) - - + + case .received: writeInt(&buf, Int32(2)) - - + + case .selfTransfer: writeInt(&buf, Int32(3)) - + } } } @@ -17690,7 +17717,7 @@ extension TxDirection: Codable {} */ public enum WalletSelection { - + /** * The standard wallet — no passphrase. */ @@ -17720,34 +17747,34 @@ public struct FfiConverterTypeWalletSelection: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> WalletSelection { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .standard - + case 2: return .hidden(passphrase: try FfiConverterString.read(from: &buf) ) - + case 3: return .onDevice - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: WalletSelection, into buf: inout [UInt8]) { switch value { - - + + case .standard: writeInt(&buf, Int32(1)) - - + + case let .hidden(passphrase): writeInt(&buf, Int32(2)) FfiConverterString.write(passphrase, into: &buf) - - + + case .onDevice: writeInt(&buf, Int32(3)) - + } } } @@ -17784,7 +17811,7 @@ extension WalletSelection: Codable {} */ public enum WatcherEvent { - + /** * Transaction activity changed — contains full updated state. */ @@ -17820,26 +17847,26 @@ public struct FfiConverterTypeWatcherEvent: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> WatcherEvent { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .transactionsChanged(transactions: try FfiConverterSequenceTypeHistoryTransaction.read(from: &buf), balance: try FfiConverterTypeWalletBalance.read(from: &buf), txCount: try FfiConverterUInt32.read(from: &buf), blockHeight: try FfiConverterUInt32.read(from: &buf), accountType: try FfiConverterTypeAccountType.read(from: &buf) ) - + case 2: return .error(message: try FfiConverterString.read(from: &buf) ) - + case 3: return .disconnected(message: try FfiConverterString.read(from: &buf) ) - + case 4: return .reconnected - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: WatcherEvent, into buf: inout [UInt8]) { switch value { - - + + case let .transactionsChanged(transactions,balance,txCount,blockHeight,accountType): writeInt(&buf, Int32(1)) FfiConverterSequenceTypeHistoryTransaction.write(transactions, into: &buf) @@ -17847,21 +17874,21 @@ public struct FfiConverterTypeWatcherEvent: FfiConverterRustBuffer { FfiConverterUInt32.write(txCount, into: &buf) FfiConverterUInt32.write(blockHeight, into: &buf) FfiConverterTypeAccountType.write(accountType, into: &buf) - - + + case let .error(message): writeInt(&buf, Int32(2)) FfiConverterString.write(message, into: &buf) - - + + case let .disconnected(message): writeInt(&buf, Int32(3)) FfiConverterString.write(message, into: &buf) - - + + case .reconnected: writeInt(&buf, Int32(4)) - + } } } @@ -17895,7 +17922,7 @@ extension WatcherEvent: Codable {} // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion. public enum WordCount { - + /** * 12-word mnemonic (128 bits of entropy) */ @@ -17932,44 +17959,44 @@ public struct FfiConverterTypeWordCount: FfiConverterRustBuffer { public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> WordCount { let variant: Int32 = try readInt(&buf) switch variant { - + case 1: return .words12 - + case 2: return .words15 - + case 3: return .words18 - + case 4: return .words21 - + case 5: return .words24 - + default: throw UniffiInternalError.unexpectedEnumCase } } public static func write(_ value: WordCount, into buf: inout [UInt8]) { switch value { - - + + case .words12: writeInt(&buf, Int32(1)) - - + + case .words15: writeInt(&buf, Int32(2)) - - + + case .words18: writeInt(&buf, Int32(3)) - - + + case .words21: writeInt(&buf, Int32(4)) - - + + case .words24: writeInt(&buf, Int32(5)) - + } } } @@ -20746,7 +20773,7 @@ public func onchainComposeTransaction(params: ComposeParams)async -> [ComposeRe freeFunc: ffi_bitkitcore_rust_future_free_rust_buffer, liftFunc: FfiConverterSequenceTypeComposeResult.lift, errorHandler: nil - + ) } /** @@ -21294,7 +21321,7 @@ public func trezorGetConnectedDevice()async -> TrezorDeviceInfo? { freeFunc: ffi_bitkitcore_rust_future_free_rust_buffer, liftFunc: FfiConverterOptionTypeTrezorDeviceInfo.lift, errorHandler: nil - + ) } /** @@ -21335,7 +21362,7 @@ public func trezorGetFeatures()async -> TrezorFeatures? { freeFunc: ffi_bitkitcore_rust_future_free_rust_buffer, liftFunc: FfiConverterOptionTypeTrezorFeatures.lift, errorHandler: nil - + ) } /** @@ -21404,7 +21431,7 @@ public func trezorIsConnected()async -> Bool { freeFunc: ffi_bitkitcore_rust_future_free_i8, liftFunc: FfiConverterBool.lift, errorHandler: nil - + ) } /** @@ -21422,7 +21449,7 @@ public func trezorIsInitialized()async -> Bool { freeFunc: ffi_bitkitcore_rust_future_free_i8, liftFunc: FfiConverterBool.lift, errorHandler: nil - + ) } /** @@ -21442,6 +21469,27 @@ public func trezorListDevices()async throws -> [TrezorDeviceInfo] { errorHandler: FfiConverterTypeTrezorError_lift ) } +/** + * Refresh features from the currently connected Trezor device. + * + * This performs a single explicit device request and updates the connected + * device's cached features. It does not start polling. Returns `NotConnected` + * if there is no connected device. + */ +public func trezorRefreshFeatures()async throws -> TrezorFeatures { + return + try await uniffiRustCallAsync( + rustFutureFunc: { + uniffi_bitkitcore_fn_func_trezor_refresh_features( + ) + }, + pollFunc: ffi_bitkitcore_rust_future_poll_rust_buffer, + completeFunc: ffi_bitkitcore_rust_future_complete_rust_buffer, + freeFunc: ffi_bitkitcore_rust_future_free_rust_buffer, + liftFunc: FfiConverterTypeTrezorFeatures_lift, + errorHandler: FfiConverterTypeTrezorError_lift + ) +} /** * Scan for available Trezor devices (USB + Bluetooth). * @@ -22089,6 +22137,9 @@ private let initializationResult: InitializationResult = { if (uniffi_bitkitcore_checksum_func_trezor_list_devices() != 32859) { return InitializationResult.apiChecksumMismatch } + if (uniffi_bitkitcore_checksum_func_trezor_refresh_features() != 6918) { + return InitializationResult.apiChecksumMismatch + } if (uniffi_bitkitcore_checksum_func_trezor_scan() != 54763) { return InitializationResult.apiChecksumMismatch } diff --git a/bindings/ios/bitkitcoreFFI.h b/bindings/ios/bitkitcoreFFI.h index f28c6c6..721530a 100644 --- a/bindings/ios/bitkitcoreFFI.h +++ b/bindings/ios/bitkitcoreFFI.h @@ -253,98 +253,98 @@ typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStr #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_EVENT_LISTENER_METHOD0 -typedef void (*UniffiCallbackInterfaceEventListenerMethod0)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, +typedef void (*UniffiCallbackInterfaceEventListenerMethod0)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD0 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD1 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD1 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod1)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod1)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD2 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD2 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod2)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD3 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD3 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod3)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod3)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD4 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD4 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod4)(uint64_t, RustBuffer, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD5 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD5 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod5)(uint64_t, RustBuffer, uint32_t* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod5)(uint64_t, RustBuffer, uint32_t* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD6 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD6 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod6)(uint64_t, RustBuffer, uint16_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod6)(uint64_t, RustBuffer, uint16_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD7 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD7 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod7)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod7)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD8 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD8 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod8)(uint64_t, RustBuffer, RustBuffer, int8_t* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod8)(uint64_t, RustBuffer, RustBuffer, int8_t* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD9 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD9 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod9)(uint64_t, RustBuffer, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod9)(uint64_t, RustBuffer, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD10 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK_METHOD10 -typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod10)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorTransportCallbackMethod10)(uint64_t, RustBuffer, RustBuffer, void* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD0 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD0 -typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod0)(uint64_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); #endif #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD1 #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_TREZOR_UI_CALLBACK_METHOD1 -typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod1)(uint64_t, int8_t, RustBuffer* _Nonnull, +typedef void (*UniffiCallbackInterfaceTrezorUiCallbackMethod1)(uint64_t, int8_t, RustBuffer* _Nonnull, RustCallStatus *_Nonnull uniffiCallStatus ); @@ -502,7 +502,7 @@ RustBuffer uniffi_bitkitcore_fn_method_trezoruicallback_on_passphrase_request(vo #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ACTIVITY_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ACTIVITY_WIPE_ALL void uniffi_bitkitcore_fn_func_activity_wipe_all(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ADD_PRE_ACTIVITY_METADATA @@ -528,19 +528,19 @@ uint64_t uniffi_bitkitcore_fn_func_approve_pubky_auth(RustBuffer auth_url, RustB #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES uint64_t uniffi_bitkitcore_fn_func_blocktank_remove_all_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS uint64_t uniffi_bitkitcore_fn_func_blocktank_remove_all_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BLOCKTANK_WIPE_ALL uint64_t uniffi_bitkitcore_fn_func_blocktank_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_BROADCAST_SWEEP_TRANSACTION @@ -556,7 +556,7 @@ RustBuffer uniffi_bitkitcore_fn_func_calculate_channel_liquidity_options(RustBuf #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CANCEL_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CANCEL_PUBKY_AUTH uint64_t uniffi_bitkitcore_fn_func_cancel_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CHECK_SWEEPABLE_BALANCES @@ -567,7 +567,7 @@ uint64_t uniffi_bitkitcore_fn_func_check_sweepable_balances(RustBuffer mnemonic_ #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_COMPLETE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_COMPLETE_PUBKY_AUTH uint64_t uniffi_bitkitcore_fn_func_complete_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_CREATE_CHANNEL_REQUEST_URL @@ -703,7 +703,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_activity_by_tx_id(RustBuffer wallet_id, #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_ACTIVITIES_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_ACTIVITIES_TAGS RustBuffer uniffi_bitkitcore_fn_func_get_all_activities_tags(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_CLOSED_CHANNELS @@ -714,19 +714,19 @@ RustBuffer uniffi_bitkitcore_fn_func_get_all_closed_channels(RustBuffer sort_dir #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_PRE_ACTIVITY_METADATA RustBuffer uniffi_bitkitcore_fn_func_get_all_pre_activity_metadata(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_TRANSACTION_DETAILS RustBuffer uniffi_bitkitcore_fn_func_get_all_transaction_details(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_UNIQUE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_ALL_UNIQUE_TAGS RustBuffer uniffi_bitkitcore_fn_func_get_all_unique_tags(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_SUGGESTIONS @@ -737,7 +737,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_bip39_suggestions(RustBuffer partial_wo #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_WORDLIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_BIP39_WORDLIST RustBuffer uniffi_bitkitcore_fn_func_get_bip39_wordlist(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_CJIT_ENTRIES @@ -758,7 +758,7 @@ uint64_t uniffi_bitkitcore_fn_func_get_default_lsp_balance(RustBuffer params, Ru #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_DEFAULT_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_DEFAULT_WALLET_ID RustBuffer uniffi_bitkitcore_fn_func_get_default_wallet_id(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_GET_GIFT @@ -894,7 +894,7 @@ uint64_t uniffi_bitkitcore_fn_func_onchain_start_watcher(RustBuffer params, void #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_ALL_WATCHERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_ALL_WATCHERS void uniffi_bitkitcore_fn_func_onchain_stop_all_watchers(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_WATCHER @@ -960,13 +960,13 @@ uint64_t uniffi_bitkitcore_fn_func_pubky_sign_up(RustBuffer secret_key_hex, Rust #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES uint64_t uniffi_bitkitcore_fn_func_refresh_active_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REFRESH_ACTIVE_ORDERS uint64_t uniffi_bitkitcore_fn_func_refresh_active_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_REGISTER_DEVICE @@ -1057,7 +1057,7 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_connect(RustBuffer device_id, RustBuff #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_DISCONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_DISCONNECT uint64_t uniffi_bitkitcore_fn_func_trezor_disconnect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_ADDRESS @@ -1068,19 +1068,19 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_get_address(RustBuffer params #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_CONNECTED_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_CONNECTED_DEVICE uint64_t uniffi_bitkitcore_fn_func_trezor_get_connected_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_DEVICE_FINGERPRINT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_DEVICE_FINGERPRINT uint64_t uniffi_bitkitcore_fn_func_trezor_get_device_fingerprint(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_FEATURES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_FEATURES uint64_t uniffi_bitkitcore_fn_func_trezor_get_features(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_GET_PUBLIC_KEY @@ -1096,31 +1096,37 @@ uint64_t uniffi_bitkitcore_fn_func_trezor_initialize(RustBuffer credential_path #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_BLE_AVAILABLE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_BLE_AVAILABLE int8_t uniffi_bitkitcore_fn_func_trezor_is_ble_available(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_CONNECTED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_CONNECTED uint64_t uniffi_bitkitcore_fn_func_trezor_is_connected(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_INITIALIZED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_IS_INITIALIZED uint64_t uniffi_bitkitcore_fn_func_trezor_is_initialized(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_LIST_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_LIST_DEVICES uint64_t uniffi_bitkitcore_fn_func_trezor_list_devices(void - + +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_REFRESH_FEATURES +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_REFRESH_FEATURES +uint64_t uniffi_bitkitcore_fn_func_trezor_refresh_features(void + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SCAN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SCAN uint64_t uniffi_bitkitcore_fn_func_trezor_scan(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_TREZOR_SET_TRANSPORT_CALLBACK @@ -1236,19 +1242,19 @@ void uniffi_bitkitcore_fn_func_validate_mnemonic(RustBuffer mnemonic_phrase, Rus #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_CLOSED_CHANNELS void uniffi_bitkitcore_fn_func_wipe_all_closed_channels(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_DATABASES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_DATABASES uint64_t uniffi_bitkitcore_fn_func_wipe_all_databases(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_WIPE_ALL_TRANSACTION_DETAILS void uniffi_bitkitcore_fn_func_wipe_all_transaction_details(RustCallStatus *_Nonnull out_status - + ); #endif #ifndef UNIFFI_FFIDEF_FFI_BITKITCORE_RUSTBUFFER_ALLOC @@ -1534,961 +1540,967 @@ void ffi_bitkitcore_rust_future_complete_void(uint64_t handle, RustCallStatus *_ #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ACTIVITY_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ACTIVITY_WIPE_ALL uint16_t uniffi_bitkitcore_checksum_func_activity_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_add_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_add_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ADD_TAGS uint16_t uniffi_bitkitcore_checksum_func_add_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_APPROVE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_APPROVE_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_approve_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_blocktank_remove_all_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_REMOVE_ALL_ORDERS uint16_t uniffi_bitkitcore_checksum_func_blocktank_remove_all_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_WIPE_ALL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BLOCKTANK_WIPE_ALL uint16_t uniffi_bitkitcore_checksum_func_blocktank_wipe_all(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BROADCAST_SWEEP_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_BROADCAST_SWEEP_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_broadcast_sweep_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CALCULATE_CHANNEL_LIQUIDITY_OPTIONS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CALCULATE_CHANNEL_LIQUIDITY_OPTIONS uint16_t uniffi_bitkitcore_checksum_func_calculate_channel_liquidity_options(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CANCEL_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CANCEL_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_cancel_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CHECK_SWEEPABLE_BALANCES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CHECK_SWEEPABLE_BALANCES uint16_t uniffi_bitkitcore_checksum_func_check_sweepable_balances(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_COMPLETE_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_COMPLETE_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_complete_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CHANNEL_REQUEST_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CHANNEL_REQUEST_URL uint16_t uniffi_bitkitcore_checksum_func_create_channel_request_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CJIT_ENTRY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_CJIT_ENTRY uint16_t uniffi_bitkitcore_checksum_func_create_cjit_entry(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_ORDER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_ORDER uint16_t uniffi_bitkitcore_checksum_func_create_order(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_WITHDRAW_CALLBACK_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_CREATE_WITHDRAW_CALLBACK_URL uint16_t uniffi_bitkitcore_checksum_func_create_withdraw_callback_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DECODE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DECODE uint16_t uniffi_bitkitcore_checksum_func_decode(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITIES_BY_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITIES_BY_WALLET_ID uint16_t uniffi_bitkitcore_checksum_func_delete_activities_by_wallet_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITY_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_ACTIVITY_BY_ID uint16_t uniffi_bitkitcore_checksum_func_delete_activity_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_delete_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DELETE_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_delete_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_derive_bitcoin_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESSES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_BITCOIN_ADDRESSES uint16_t uniffi_bitkitcore_checksum_func_derive_bitcoin_addresses(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_ONCHAIN_DESCRIPTOR #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_ONCHAIN_DESCRIPTOR uint16_t uniffi_bitkitcore_checksum_func_derive_onchain_descriptor(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PRIVATE_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PRIVATE_KEY uint16_t uniffi_bitkitcore_checksum_func_derive_private_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PUBKY_SECRET_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_DERIVE_PUBKY_SECRET_KEY uint16_t uniffi_bitkitcore_checksum_func_derive_pubky_secret_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ENTROPY_TO_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ENTROPY_TO_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_entropy_to_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE uint16_t uniffi_bitkitcore_checksum_func_estimate_order_fee(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE_FULL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ESTIMATE_ORDER_FEE_FULL uint16_t uniffi_bitkitcore_checksum_func_estimate_order_fee_full(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_CONTACTS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_CONTACTS uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_contacts(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_file(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE_STRING #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_FILE_STRING uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_file_string(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_PROFILE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_FETCH_PUBKY_PROFILE uint16_t uniffi_bitkitcore_checksum_func_fetch_pubky_profile(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GENERATE_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GENERATE_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_generate_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_get_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES_BY_TAG #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITIES_BY_TAG uint16_t uniffi_bitkitcore_checksum_func_get_activities_by_tag(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_ID uint16_t uniffi_bitkitcore_checksum_func_get_activity_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_TX_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ACTIVITY_BY_TX_ID uint16_t uniffi_bitkitcore_checksum_func_get_activity_by_tx_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_ACTIVITIES_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_ACTIVITIES_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_all_activities_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_get_all_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_get_all_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_get_all_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_UNIQUE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ALL_UNIQUE_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_all_unique_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_SUGGESTIONS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_SUGGESTIONS uint16_t uniffi_bitkitcore_checksum_func_get_bip39_suggestions(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_WORDLIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_BIP39_WORDLIST uint16_t uniffi_bitkitcore_checksum_func_get_bip39_wordlist(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_get_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CLOSED_CHANNEL_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_CLOSED_CHANNEL_BY_ID uint16_t uniffi_bitkitcore_checksum_func_get_closed_channel_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_LSP_BALANCE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_LSP_BALANCE uint16_t uniffi_bitkitcore_checksum_func_get_default_lsp_balance(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_WALLET_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_DEFAULT_WALLET_ID uint16_t uniffi_bitkitcore_checksum_func_get_default_wallet_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_GIFT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_GIFT uint16_t uniffi_bitkitcore_checksum_func_get_gift(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_INFO uint16_t uniffi_bitkitcore_checksum_func_get_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_LNURL_INVOICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_LNURL_INVOICE uint16_t uniffi_bitkitcore_checksum_func_get_lnurl_invoice(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_MIN_ZERO_CONF_TX_FEE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_MIN_ZERO_CONF_TX_FEE uint16_t uniffi_bitkitcore_checksum_func_get_min_zero_conf_tx_fee(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_ORDERS uint16_t uniffi_bitkitcore_checksum_func_get_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PAYMENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PAYMENT uint16_t uniffi_bitkitcore_checksum_func_get_payment(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_get_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TAGS uint16_t uniffi_bitkitcore_checksum_func_get_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GET_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_get_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_ORDER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_ORDER uint16_t uniffi_bitkitcore_checksum_func_gift_order(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_PAY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_GIFT_PAY uint16_t uniffi_bitkitcore_checksum_func_gift_pay(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INIT_DB #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INIT_DB uint16_t uniffi_bitkitcore_checksum_func_init_db(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INSERT_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_INSERT_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_insert_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_ADDRESS_USED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_ADDRESS_USED uint16_t uniffi_bitkitcore_checksum_func_is_address_used(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_VALID_BIP39_WORD #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_IS_VALID_BIP39_WORD uint16_t uniffi_bitkitcore_checksum_func_is_valid_bip39_word(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_LNURL_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_LNURL_AUTH uint16_t uniffi_bitkitcore_checksum_func_lnurl_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MARK_ACTIVITY_AS_SEEN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MARK_ACTIVITY_AS_SEEN uint16_t uniffi_bitkitcore_checksum_func_mark_activity_as_seen(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_ENTROPY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_ENTROPY uint16_t uniffi_bitkitcore_checksum_func_mnemonic_to_entropy(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_SEED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_MNEMONIC_TO_SEED uint16_t uniffi_bitkitcore_checksum_func_mnemonic_to_seed(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_BROADCAST_RAW_TX #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_BROADCAST_RAW_TX uint16_t uniffi_bitkitcore_checksum_func_onchain_broadcast_raw_tx(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_COMPOSE_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_COMPOSE_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_onchain_compose_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ACCOUNT_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ACCOUNT_INFO uint16_t uniffi_bitkitcore_checksum_func_onchain_get_account_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ADDRESS_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_ADDRESS_INFO uint16_t uniffi_bitkitcore_checksum_func_onchain_get_address_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_DETAIL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_DETAIL uint16_t uniffi_bitkitcore_checksum_func_onchain_get_transaction_detail(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_HISTORY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_GET_TRANSACTION_HISTORY uint16_t uniffi_bitkitcore_checksum_func_onchain_get_transaction_history(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_START_WATCHER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_START_WATCHER uint16_t uniffi_bitkitcore_checksum_func_onchain_start_watcher(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_ALL_WATCHERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_ALL_WATCHERS uint16_t uniffi_bitkitcore_checksum_func_onchain_stop_all_watchers(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_WATCHER #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_ONCHAIN_STOP_WATCHER uint16_t uniffi_bitkitcore_checksum_func_onchain_stop_watcher(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_OPEN_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_OPEN_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_open_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PARSE_PUBKY_AUTH_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PARSE_PUBKY_AUTH_URL uint16_t uniffi_bitkitcore_checksum_func_parse_pubky_auth_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_SWEEP #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_SWEEP uint16_t uniffi_bitkitcore_checksum_func_prepare_legacy_rn_native_segwit_recovery_sweep(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_SWEEP_TRANSACTION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PREPARE_SWEEP_TRANSACTION uint16_t uniffi_bitkitcore_checksum_func_prepare_sweep_transaction(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUBLIC_KEY_FROM_SECRET #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUBLIC_KEY_FROM_SECRET uint16_t uniffi_bitkitcore_checksum_func_pubky_public_key_from_secret(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUT_WITH_SECRET_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_PUT_WITH_SECRET_KEY uint16_t uniffi_bitkitcore_checksum_func_pubky_put_with_secret_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_DELETE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_DELETE uint16_t uniffi_bitkitcore_checksum_func_pubky_session_delete(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_LIST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_LIST uint16_t uniffi_bitkitcore_checksum_func_pubky_session_list(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_PUT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SESSION_PUT uint16_t uniffi_bitkitcore_checksum_func_pubky_session_put(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_IN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_IN uint16_t uniffi_bitkitcore_checksum_func_pubky_sign_in(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_UP #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_PUBKY_SIGN_UP uint16_t uniffi_bitkitcore_checksum_func_pubky_sign_up(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_refresh_active_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REFRESH_ACTIVE_ORDERS uint16_t uniffi_bitkitcore_checksum_func_refresh_active_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGISTER_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGISTER_DEVICE uint16_t uniffi_bitkitcore_checksum_func_register_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_CLOSE_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_CLOSE_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_regtest_close_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_DEPOSIT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_DEPOSIT uint16_t uniffi_bitkitcore_checksum_func_regtest_deposit(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_GET_PAYMENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_GET_PAYMENT uint16_t uniffi_bitkitcore_checksum_func_regtest_get_payment(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_MINE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_MINE uint16_t uniffi_bitkitcore_checksum_func_regtest_mine(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_PAY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REGTEST_PAY uint16_t uniffi_bitkitcore_checksum_func_regtest_pay(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_CLOSED_CHANNEL_BY_ID #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_CLOSED_CHANNEL_BY_ID uint16_t uniffi_bitkitcore_checksum_func_remove_closed_channel_by_id(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_remove_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_REMOVE_TAGS uint16_t uniffi_bitkitcore_checksum_func_remove_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESET_PRE_ACTIVITY_METADATA_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESET_PRE_ACTIVITY_METADATA_TAGS uint16_t uniffi_bitkitcore_checksum_func_reset_pre_activity_metadata_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESOLVE_PUBKY_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_RESOLVE_PUBKY_URL uint16_t uniffi_bitkitcore_checksum_func_resolve_pubky_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_SCAN_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_FUNDS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_SCAN_LEGACY_RN_NATIVE_SEGWIT_RECOVERY_FUNDS uint16_t uniffi_bitkitcore_checksum_func_scan_legacy_rn_native_segwit_recovery_funds(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_START_PUBKY_AUTH #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_START_PUBKY_AUTH uint16_t uniffi_bitkitcore_checksum_func_start_pubky_auth(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TEST_NOTIFICATION #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TEST_NOTIFICATION uint16_t uniffi_bitkitcore_checksum_func_test_notification(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_ACCOUNT_TYPE_TO_SCRIPT_TYPE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_ACCOUNT_TYPE_TO_SCRIPT_TYPE uint16_t uniffi_bitkitcore_checksum_func_trezor_account_type_to_script_type(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CLEAR_CREDENTIALS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CLEAR_CREDENTIALS uint16_t uniffi_bitkitcore_checksum_func_trezor_clear_credentials(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_CONNECT uint16_t uniffi_bitkitcore_checksum_func_trezor_connect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_DISCONNECT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_DISCONNECT uint16_t uniffi_bitkitcore_checksum_func_trezor_disconnect(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_trezor_get_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_CONNECTED_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_CONNECTED_DEVICE uint16_t uniffi_bitkitcore_checksum_func_trezor_get_connected_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_DEVICE_FINGERPRINT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_DEVICE_FINGERPRINT uint16_t uniffi_bitkitcore_checksum_func_trezor_get_device_fingerprint(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_FEATURES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_FEATURES uint16_t uniffi_bitkitcore_checksum_func_trezor_get_features(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_PUBLIC_KEY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_GET_PUBLIC_KEY uint16_t uniffi_bitkitcore_checksum_func_trezor_get_public_key(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_INITIALIZE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_INITIALIZE uint16_t uniffi_bitkitcore_checksum_func_trezor_initialize(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_BLE_AVAILABLE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_BLE_AVAILABLE uint16_t uniffi_bitkitcore_checksum_func_trezor_is_ble_available(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_CONNECTED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_CONNECTED uint16_t uniffi_bitkitcore_checksum_func_trezor_is_connected(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_INITIALIZED #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_IS_INITIALIZED uint16_t uniffi_bitkitcore_checksum_func_trezor_is_initialized(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_LIST_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_LIST_DEVICES uint16_t uniffi_bitkitcore_checksum_func_trezor_list_devices(void - + +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_REFRESH_FEATURES +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_REFRESH_FEATURES +uint16_t uniffi_bitkitcore_checksum_func_trezor_refresh_features(void + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SCAN #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SCAN uint16_t uniffi_bitkitcore_checksum_func_trezor_scan(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_TRANSPORT_CALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_TRANSPORT_CALLBACK uint16_t uniffi_bitkitcore_checksum_func_trezor_set_transport_callback(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_UI_CALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SET_UI_CALLBACK uint16_t uniffi_bitkitcore_checksum_func_trezor_set_ui_callback(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_MESSAGE uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_tx(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX_FROM_PSBT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_SIGN_TX_FROM_PSBT uint16_t uniffi_bitkitcore_checksum_func_trezor_sign_tx_from_psbt(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_VERIFY_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_TREZOR_VERIFY_MESSAGE uint16_t uniffi_bitkitcore_checksum_func_trezor_verify_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_update_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_BLOCKTANK_URL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPDATE_BLOCKTANK_URL uint16_t uniffi_bitkitcore_checksum_func_update_blocktank_url(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITY #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ACTIVITY uint16_t uniffi_bitkitcore_checksum_func_upsert_activity(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CJIT_ENTRIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CJIT_ENTRIES uint16_t uniffi_bitkitcore_checksum_func_upsert_cjit_entries(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNEL uint16_t uniffi_bitkitcore_checksum_func_upsert_closed_channel(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_upsert_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_INFO #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_INFO uint16_t uniffi_bitkitcore_checksum_func_upsert_info(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_LIGHTNING_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_LIGHTNING_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_lightning_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ONCHAIN_ACTIVITIES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ONCHAIN_ACTIVITIES uint16_t uniffi_bitkitcore_checksum_func_upsert_onchain_activities(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ORDERS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_ORDERS uint16_t uniffi_bitkitcore_checksum_func_upsert_orders(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_PRE_ACTIVITY_METADATA #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_PRE_ACTIVITY_METADATA uint16_t uniffi_bitkitcore_checksum_func_upsert_pre_activity_metadata(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TAGS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TAGS uint16_t uniffi_bitkitcore_checksum_func_upsert_tags(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_UPSERT_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_upsert_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_BITCOIN_ADDRESS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_BITCOIN_ADDRESS uint16_t uniffi_bitkitcore_checksum_func_validate_bitcoin_address(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_MNEMONIC #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_VALIDATE_MNEMONIC uint16_t uniffi_bitkitcore_checksum_func_validate_mnemonic(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_CLOSED_CHANNELS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_CLOSED_CHANNELS uint16_t uniffi_bitkitcore_checksum_func_wipe_all_closed_channels(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_DATABASES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_DATABASES uint16_t uniffi_bitkitcore_checksum_func_wipe_all_databases(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_TRANSACTION_DETAILS #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_FUNC_WIPE_ALL_TRANSACTION_DETAILS uint16_t uniffi_bitkitcore_checksum_func_wipe_all_transaction_details(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_EVENTLISTENER_ON_EVENT #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_EVENTLISTENER_ON_EVENT uint16_t uniffi_bitkitcore_checksum_method_eventlistener_on_event(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_ENUMERATE_DEVICES #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_ENUMERATE_DEVICES uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_enumerate_devices(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_OPEN_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_OPEN_DEVICE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_open_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CLOSE_DEVICE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CLOSE_DEVICE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_close_device(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_READ_CHUNK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_READ_CHUNK uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_read_chunk(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_WRITE_CHUNK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_WRITE_CHUNK uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_write_chunk(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_CHUNK_SIZE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_CHUNK_SIZE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_get_chunk_size(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CALL_MESSAGE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_CALL_MESSAGE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_call_message(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_PAIRING_CODE #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_GET_PAIRING_CODE uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_get_pairing_code(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_SAVE_THP_CREDENTIAL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_SAVE_THP_CREDENTIAL uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_save_thp_credential(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOAD_THP_CREDENTIAL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOAD_THP_CREDENTIAL uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_load_thp_credential(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOG_DEBUG #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORTRANSPORTCALLBACK_LOG_DEBUG uint16_t uniffi_bitkitcore_checksum_method_trezortransportcallback_log_debug(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PIN_REQUEST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PIN_REQUEST uint16_t uniffi_bitkitcore_checksum_method_trezoruicallback_on_pin_request(void - + ); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PASSPHRASE_REQUEST #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_CHECKSUM_METHOD_TREZORUICALLBACK_ON_PASSPHRASE_REQUEST uint16_t uniffi_bitkitcore_checksum_method_trezoruicallback_on_passphrase_request(void - + ); #endif #ifndef UNIFFI_FFIDEF_FFI_BITKITCORE_UNIFFI_CONTRACT_VERSION #define UNIFFI_FFIDEF_FFI_BITKITCORE_UNIFFI_CONTRACT_VERSION uint32_t ffi_bitkitcore_uniffi_contract_version(void - + ); #endif diff --git a/bindings/python/bitkitcore/bitkitcore.py b/bindings/python/bitkitcore/bitkitcore.py index 0cbbf4d..e8529e2 100644 --- a/bindings/python/bitkitcore/bitkitcore.py +++ b/bindings/python/bitkitcore/bitkitcore.py @@ -699,6 +699,8 @@ def _uniffi_check_api_checksums(lib): raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_bitkitcore_checksum_func_trezor_list_devices() != 32859: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") + if lib.uniffi_bitkitcore_checksum_func_trezor_refresh_features() != 6918: + raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_bitkitcore_checksum_func_trezor_scan() != 54763: raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") if lib.uniffi_bitkitcore_checksum_func_trezor_set_transport_callback() != 30209: @@ -1727,6 +1729,9 @@ class _UniffiVTableCallbackInterfaceTrezorUiCallback(ctypes.Structure): _UniffiLib.uniffi_bitkitcore_fn_func_trezor_list_devices.argtypes = ( ) _UniffiLib.uniffi_bitkitcore_fn_func_trezor_list_devices.restype = ctypes.c_uint64 +_UniffiLib.uniffi_bitkitcore_fn_func_trezor_refresh_features.argtypes = ( +) +_UniffiLib.uniffi_bitkitcore_fn_func_trezor_refresh_features.restype = ctypes.c_uint64 _UniffiLib.uniffi_bitkitcore_fn_func_trezor_scan.argtypes = ( ) _UniffiLib.uniffi_bitkitcore_fn_func_trezor_scan.restype = ctypes.c_uint64 @@ -2470,6 +2475,9 @@ class _UniffiVTableCallbackInterfaceTrezorUiCallback(ctypes.Structure): _UniffiLib.uniffi_bitkitcore_checksum_func_trezor_list_devices.argtypes = ( ) _UniffiLib.uniffi_bitkitcore_checksum_func_trezor_list_devices.restype = ctypes.c_uint16 +_UniffiLib.uniffi_bitkitcore_checksum_func_trezor_refresh_features.argtypes = ( +) +_UniffiLib.uniffi_bitkitcore_checksum_func_trezor_refresh_features.restype = ctypes.c_uint16 _UniffiLib.uniffi_bitkitcore_checksum_func_trezor_scan.argtypes = ( ) _UniffiLib.uniffi_bitkitcore_checksum_func_trezor_scan.restype = ctypes.c_uint16 @@ -8239,6 +8247,13 @@ class TrezorFeatures: Whether PIN protection is enabled """ + unlocked: "typing.Optional[bool]" + """ + Whether the device is currently unlocked. When PIN protection is enabled + and this is `Some(false)`, mobile callers should back off and ask the + user to unlock the Trezor instead of repeatedly reconnecting. + """ + passphrase_protection: "typing.Optional[bool]" """ Whether passphrase protection is enabled @@ -8260,7 +8275,7 @@ class TrezorFeatures: (`Capability_PassphraseEntry`). When false/None, use host entry only. """ - def __init__(self, *, vendor: "typing.Optional[str]", model: "typing.Optional[str]", label: "typing.Optional[str]", device_id: "typing.Optional[str]", major_version: "typing.Optional[int]", minor_version: "typing.Optional[int]", patch_version: "typing.Optional[int]", pin_protection: "typing.Optional[bool]", passphrase_protection: "typing.Optional[bool]", initialized: "typing.Optional[bool]", needs_backup: "typing.Optional[bool]", passphrase_entry_capable: "typing.Optional[bool]"): + def __init__(self, *, vendor: "typing.Optional[str]", model: "typing.Optional[str]", label: "typing.Optional[str]", device_id: "typing.Optional[str]", major_version: "typing.Optional[int]", minor_version: "typing.Optional[int]", patch_version: "typing.Optional[int]", pin_protection: "typing.Optional[bool]", unlocked: "typing.Optional[bool]", passphrase_protection: "typing.Optional[bool]", initialized: "typing.Optional[bool]", needs_backup: "typing.Optional[bool]", passphrase_entry_capable: "typing.Optional[bool]"): self.vendor = vendor self.model = model self.label = label @@ -8269,13 +8284,14 @@ def __init__(self, *, vendor: "typing.Optional[str]", model: "typing.Optional[st self.minor_version = minor_version self.patch_version = patch_version self.pin_protection = pin_protection + self.unlocked = unlocked self.passphrase_protection = passphrase_protection self.initialized = initialized self.needs_backup = needs_backup self.passphrase_entry_capable = passphrase_entry_capable def __str__(self): - return "TrezorFeatures(vendor={}, model={}, label={}, device_id={}, major_version={}, minor_version={}, patch_version={}, pin_protection={}, passphrase_protection={}, initialized={}, needs_backup={}, passphrase_entry_capable={})".format(self.vendor, self.model, self.label, self.device_id, self.major_version, self.minor_version, self.patch_version, self.pin_protection, self.passphrase_protection, self.initialized, self.needs_backup, self.passphrase_entry_capable) + return "TrezorFeatures(vendor={}, model={}, label={}, device_id={}, major_version={}, minor_version={}, patch_version={}, pin_protection={}, unlocked={}, passphrase_protection={}, initialized={}, needs_backup={}, passphrase_entry_capable={})".format(self.vendor, self.model, self.label, self.device_id, self.major_version, self.minor_version, self.patch_version, self.pin_protection, self.unlocked, self.passphrase_protection, self.initialized, self.needs_backup, self.passphrase_entry_capable) def __eq__(self, other): if self.vendor != other.vendor: @@ -8294,6 +8310,8 @@ def __eq__(self, other): return False if self.pin_protection != other.pin_protection: return False + if self.unlocked != other.unlocked: + return False if self.passphrase_protection != other.passphrase_protection: return False if self.initialized != other.initialized: @@ -8316,6 +8334,7 @@ def read(buf): minor_version=_UniffiConverterOptionalUInt32.read(buf), patch_version=_UniffiConverterOptionalUInt32.read(buf), pin_protection=_UniffiConverterOptionalBool.read(buf), + unlocked=_UniffiConverterOptionalBool.read(buf), passphrase_protection=_UniffiConverterOptionalBool.read(buf), initialized=_UniffiConverterOptionalBool.read(buf), needs_backup=_UniffiConverterOptionalBool.read(buf), @@ -8332,6 +8351,7 @@ def check_lower(value): _UniffiConverterOptionalUInt32.check_lower(value.minor_version) _UniffiConverterOptionalUInt32.check_lower(value.patch_version) _UniffiConverterOptionalBool.check_lower(value.pin_protection) + _UniffiConverterOptionalBool.check_lower(value.unlocked) _UniffiConverterOptionalBool.check_lower(value.passphrase_protection) _UniffiConverterOptionalBool.check_lower(value.initialized) _UniffiConverterOptionalBool.check_lower(value.needs_backup) @@ -8347,6 +8367,7 @@ def write(value, buf): _UniffiConverterOptionalUInt32.write(value.minor_version, buf) _UniffiConverterOptionalUInt32.write(value.patch_version, buf) _UniffiConverterOptionalBool.write(value.pin_protection, buf) + _UniffiConverterOptionalBool.write(value.unlocked, buf) _UniffiConverterOptionalBool.write(value.passphrase_protection, buf) _UniffiConverterOptionalBool.write(value.initialized, buf) _UniffiConverterOptionalBool.write(value.needs_backup, buf) @@ -10350,25 +10371,25 @@ class AccountType(enum.Enum): BIP44 legacy (P2PKH) — xpub/tpub prefix """ - + WRAPPED_SEGWIT = 1 """ BIP49 wrapped segwit (P2SH-P2WPKH) — ypub/upub prefix """ - + NATIVE_SEGWIT = 2 """ BIP84 native segwit (P2WPKH) — zpub/vpub prefix """ - + TAPROOT = 3 """ BIP86 taproot (P2TR) """ - + class _UniffiConverterTypeAccountType(_UniffiConverterRustBuffer): @@ -10451,7 +10472,7 @@ def __eq__(self, other): if not other.is_LIGHTNING(): return False return self._values == other._values - + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -10463,7 +10484,7 @@ def is_LIGHTNING(self) -> bool: return isinstance(self, Activity.LIGHTNING) def is_lightning(self) -> bool: return isinstance(self, Activity.LIGHTNING) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -10685,11 +10706,11 @@ def write(value, buf): class ActivityFilter(enum.Enum): ALL = 0 - + LIGHTNING = 1 - + ONCHAIN = 2 - + class _UniffiConverterTypeActivityFilter(_UniffiConverterRustBuffer): @@ -10731,9 +10752,9 @@ def write(value, buf): class ActivityType(enum.Enum): ONCHAIN = 0 - + LIGHTNING = 1 - + class _UniffiConverterTypeActivityType(_UniffiConverterRustBuffer): @@ -10883,17 +10904,17 @@ def write(value, buf): class AddressType(enum.Enum): P2PKH = 0 - + P2SH = 1 - + P2WPKH = 2 - + P2WSH = 3 - + P2TR = 4 - + UNKNOWN = 5 - + class _UniffiConverterTypeAddressType(_UniffiConverterRustBuffer): @@ -10953,13 +10974,13 @@ def write(value, buf): class BitcoinNetworkEnum(enum.Enum): MAINNET = 0 - + TESTNET = 1 - + SIGNET = 2 - + REGTEST = 3 - + class _UniffiConverterTypeBitcoinNetworkEnum(_UniffiConverterRustBuffer): @@ -11412,13 +11433,13 @@ def write(value, buf): class BtBolt11InvoiceState(enum.Enum): PENDING = 0 - + HOLDING = 1 - + PAID = 2 - + CANCELED = 3 - + class _UniffiConverterTypeBtBolt11InvoiceState(_UniffiConverterRustBuffer): @@ -11466,15 +11487,15 @@ def write(value, buf): class BtChannelOrderErrorType(enum.Enum): WRONG_ORDER_STATE = 0 - + PEER_NOT_REACHABLE = 1 - + CHANNEL_REJECTED_BY_DESTINATION = 2 - + CHANNEL_REJECTED_BY_LSP = 3 - + BLOCKTANK_NOT_READY = 4 - + class _UniffiConverterTypeBtChannelOrderErrorType(_UniffiConverterRustBuffer): @@ -11528,11 +11549,11 @@ def write(value, buf): class BtOpenChannelState(enum.Enum): OPENING = 0 - + OPEN = 1 - + CLOSED = 2 - + class _UniffiConverterTypeBtOpenChannelState(_UniffiConverterRustBuffer): @@ -11574,13 +11595,13 @@ def write(value, buf): class BtOrderState(enum.Enum): CREATED = 0 - + EXPIRED = 1 - + OPEN = 2 - + CLOSED = 3 - + class _UniffiConverterTypeBtOrderState(_UniffiConverterRustBuffer): @@ -11628,13 +11649,13 @@ def write(value, buf): class BtOrderState2(enum.Enum): CREATED = 0 - + EXPIRED = 1 - + EXECUTED = 2 - + PAID = 3 - + class _UniffiConverterTypeBtOrderState2(_UniffiConverterRustBuffer): @@ -11682,15 +11703,15 @@ def write(value, buf): class BtPaymentState(enum.Enum): CREATED = 0 - + PARTIALLY_PAID = 1 - + PAID = 2 - + REFUNDED = 3 - + REFUND_AVAILABLE = 4 - + class _UniffiConverterTypeBtPaymentState(_UniffiConverterRustBuffer): @@ -11744,15 +11765,15 @@ def write(value, buf): class BtPaymentState2(enum.Enum): CREATED = 0 - + PAID = 1 - + REFUNDED = 2 - + REFUND_AVAILABLE = 3 - + CANCELED = 4 - + class _UniffiConverterTypeBtPaymentState2(_UniffiConverterRustBuffer): @@ -11806,13 +11827,13 @@ def write(value, buf): class CJitStateEnum(enum.Enum): CREATED = 0 - + COMPLETED = 1 - + EXPIRED = 2 - + FAILED = 3 - + class _UniffiConverterTypeCJitStateEnum(_UniffiConverterRustBuffer): @@ -11868,19 +11889,19 @@ class CoinSelection(enum.Enum): Branch-and-bound (default). Minimizes change by searching for exact matches. """ - + LARGEST_FIRST = 1 """ Selects largest UTXOs first. Useful for UTXO consolidation. """ - + OLDEST_FIRST = 2 """ Selects oldest UTXOs first. Maximizes coin-age spending. """ - + class _UniffiConverterTypeCoinSelection(_UniffiConverterRustBuffer): @@ -11952,7 +11973,7 @@ def __eq__(self, other): if self.amount_sats != other.amount_sats: return False return True - + class SEND_MAX: """ Send all remaining funds (after fees) to an address @@ -11972,7 +11993,7 @@ def __eq__(self, other): if self.address != other.address: return False return True - + class OP_RETURN: """ OP_RETURN data output (hex-encoded payload) @@ -11992,8 +12013,8 @@ def __eq__(self, other): if self.data_hex != other.data_hex: return False return True - - + + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -12009,7 +12030,7 @@ def is_OP_RETURN(self) -> bool: return isinstance(self, ComposeOutput.OP_RETURN) def is_op_return(self) -> bool: return isinstance(self, ComposeOutput.OP_RETURN) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -12131,7 +12152,7 @@ def __eq__(self, other): if self.total_spent != other.total_spent: return False return True - + class ERROR: """ Composition failed (e.g. insufficient funds) @@ -12151,8 +12172,8 @@ def __eq__(self, other): if self.error != other.error: return False return True - - + + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -12164,7 +12185,7 @@ def is_ERROR(self) -> bool: return isinstance(self, ComposeResult.ERROR) def is_error(self) -> bool: return isinstance(self, ComposeResult.ERROR) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -12685,13 +12706,13 @@ def write(value, buf): class ManualRefundStateEnum(enum.Enum): CREATED = 0 - + APPROVED = 1 - + REJECTED = 2 - + SENT = 3 - + class _UniffiConverterTypeManualRefundStateEnum(_UniffiConverterRustBuffer): @@ -12743,31 +12764,31 @@ class Network(enum.Enum): Mainnet Bitcoin. """ - + TESTNET = 1 """ Bitcoin's testnet network. """ - + TESTNET4 = 2 """ Bitcoin's testnet4 network. """ - + SIGNET = 3 """ Bitcoin's signet network. """ - + REGTEST = 4 """ Bitcoin's regtest network. """ - + class _UniffiConverterTypeNetwork(_UniffiConverterRustBuffer): @@ -12821,13 +12842,13 @@ def write(value, buf): class NetworkType(enum.Enum): BITCOIN = 0 - + TESTNET = 1 - + REGTEST = 2 - + SIGNET = 3 - + class _UniffiConverterTypeNetworkType(_UniffiConverterRustBuffer): @@ -12894,7 +12915,7 @@ def __eq__(self, other): if not other.is_CANCEL(): return False return True - + class STANDARD: """ Standard wallet — no passphrase, equivalent to `Some("")` on the device. @@ -12911,7 +12932,7 @@ def __eq__(self, other): if not other.is_STANDARD(): return False return True - + class HIDDEN: """ Hidden wallet — derived from the passphrase entered on the host. @@ -12931,7 +12952,7 @@ def __eq__(self, other): if self.value != other.value: return False return True - + class ON_DEVICE: """ Enter the passphrase on the Trezor device itself instead of on the host. @@ -12948,8 +12969,8 @@ def __eq__(self, other): if not other.is_ON_DEVICE(): return False return True - - + + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -12969,7 +12990,7 @@ def is_ON_DEVICE(self) -> bool: return isinstance(self, PassphraseResponse.ON_DEVICE) def is_on_device(self) -> bool: return isinstance(self, PassphraseResponse.ON_DEVICE) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -13034,11 +13055,11 @@ def write(value, buf): class PaymentState(enum.Enum): PENDING = 0 - + SUCCEEDED = 1 - + FAILED = 2 - + class _UniffiConverterTypePaymentState(_UniffiConverterRustBuffer): @@ -13080,9 +13101,9 @@ def write(value, buf): class PaymentType(enum.Enum): SENT = 0 - + RECEIVED = 1 - + class _UniffiConverterTypePaymentType(_UniffiConverterRustBuffer): @@ -13122,9 +13143,9 @@ class PubkyAuthKind(enum.Enum): """ SIGNIN = 0 - + SIGNUP = 1 - + class _UniffiConverterTypePubkyAuthKind(_UniffiConverterRustBuffer): @@ -13376,7 +13397,7 @@ def __eq__(self, other): if self.invoice != other.invoice: return False return True - + class LIGHTNING: invoice: "LightningInvoice" @@ -13392,7 +13413,7 @@ def __eq__(self, other): if self.invoice != other.invoice: return False return True - + class PUBKY_AUTH: data: "str" @@ -13408,7 +13429,7 @@ def __eq__(self, other): if self.data != other.data: return False return True - + class LNURL_CHANNEL: data: "LnurlChannelData" @@ -13424,7 +13445,7 @@ def __eq__(self, other): if self.data != other.data: return False return True - + class LNURL_AUTH: data: "LnurlAuthData" @@ -13440,7 +13461,7 @@ def __eq__(self, other): if self.data != other.data: return False return True - + class LNURL_WITHDRAW: data: "LnurlWithdrawData" @@ -13456,7 +13477,7 @@ def __eq__(self, other): if self.data != other.data: return False return True - + class LNURL_ADDRESS: data: "LnurlAddressData" @@ -13472,7 +13493,7 @@ def __eq__(self, other): if self.data != other.data: return False return True - + class LNURL_PAY: data: "LnurlPayData" @@ -13488,7 +13509,7 @@ def __eq__(self, other): if self.data != other.data: return False return True - + class NODE_ID: url: "str" network: "NetworkType" @@ -13508,7 +13529,7 @@ def __eq__(self, other): if self.network != other.network: return False return True - + class GIFT: code: "str" amount: "int" @@ -13528,8 +13549,8 @@ def __eq__(self, other): if self.amount != other.amount: return False return True - - + + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -13573,7 +13594,7 @@ def is_GIFT(self) -> bool: return isinstance(self, Scanner.GIFT) def is_gift(self) -> bool: return isinstance(self, Scanner.GIFT) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -13719,9 +13740,9 @@ def write(value, buf): class SortDirection(enum.Enum): ASC = 0 - + DESC = 1 - + class _UniffiConverterTypeSortDirection(_UniffiConverterRustBuffer): @@ -13848,25 +13869,25 @@ class TrezorCoinType(enum.Enum): Bitcoin mainnet """ - + TESTNET = 1 """ Bitcoin testnet """ - + SIGNET = 2 """ Bitcoin signet (treated as testnet by the device) """ - + REGTEST = 3 """ Bitcoin regtest """ - + class _UniffiConverterTypeTrezorCoinType(_UniffiConverterRustBuffer): @@ -13965,6 +13986,17 @@ def __init__(self): def __repr__(self): return "TrezorError.DeviceDisconnected({})".format(str(self)) _UniffiTempTrezorError.DeviceDisconnected = DeviceDisconnected # type: ignore + class DeviceBusy(_UniffiTempTrezorError): + """ + Device is busy and the caller should back off before retrying + """ + + def __init__(self): + pass + + def __repr__(self): + return "TrezorError.DeviceBusy({})".format(str(self)) + _UniffiTempTrezorError.DeviceBusy = DeviceBusy # type: ignore class ConnectionError(_UniffiTempTrezorError): """ Connection error @@ -14193,60 +14225,63 @@ def read(buf): return TrezorError.DeviceDisconnected( ) if variant == 4: + return TrezorError.DeviceBusy( + ) + if variant == 5: return TrezorError.ConnectionError( _UniffiConverterString.read(buf), ) - if variant == 5: + if variant == 6: return TrezorError.ProtocolError( _UniffiConverterString.read(buf), ) - if variant == 6: + if variant == 7: return TrezorError.PairingRequired( ) - if variant == 7: + if variant == 8: return TrezorError.PairingFailed( _UniffiConverterString.read(buf), ) - if variant == 8: + if variant == 9: return TrezorError.PinRequired( ) - if variant == 9: + if variant == 10: return TrezorError.PinCancelled( ) - if variant == 10: + if variant == 11: return TrezorError.InvalidPin( ) - if variant == 11: + if variant == 12: return TrezorError.PassphraseRequired( ) - if variant == 12: + if variant == 13: return TrezorError.PassphraseCancelled( ) - if variant == 13: + if variant == 14: return TrezorError.UserCancelled( ) - if variant == 14: + if variant == 15: return TrezorError.Timeout( ) - if variant == 15: + if variant == 16: return TrezorError.InvalidPath( _UniffiConverterString.read(buf), ) - if variant == 16: + if variant == 17: return TrezorError.DeviceError( _UniffiConverterString.read(buf), ) - if variant == 17: + if variant == 18: return TrezorError.NotInitialized( ) - if variant == 18: + if variant == 19: return TrezorError.NotConnected( ) - if variant == 19: + if variant == 20: return TrezorError.SessionError( _UniffiConverterString.read(buf), ) - if variant == 20: + if variant == 21: return TrezorError.IoError( _UniffiConverterString.read(buf), ) @@ -14261,6 +14296,8 @@ def check_lower(value): return if isinstance(value, TrezorError.DeviceDisconnected): return + if isinstance(value, TrezorError.DeviceBusy): + return if isinstance(value, TrezorError.ConnectionError): _UniffiConverterString.check_lower(value.error_details) return @@ -14312,46 +14349,48 @@ def write(value, buf): buf.write_i32(2) if isinstance(value, TrezorError.DeviceDisconnected): buf.write_i32(3) - if isinstance(value, TrezorError.ConnectionError): + if isinstance(value, TrezorError.DeviceBusy): buf.write_i32(4) + if isinstance(value, TrezorError.ConnectionError): + buf.write_i32(5) _UniffiConverterString.write(value.error_details, buf) if isinstance(value, TrezorError.ProtocolError): - buf.write_i32(5) + buf.write_i32(6) _UniffiConverterString.write(value.error_details, buf) if isinstance(value, TrezorError.PairingRequired): - buf.write_i32(6) - if isinstance(value, TrezorError.PairingFailed): buf.write_i32(7) + if isinstance(value, TrezorError.PairingFailed): + buf.write_i32(8) _UniffiConverterString.write(value.error_details, buf) if isinstance(value, TrezorError.PinRequired): - buf.write_i32(8) - if isinstance(value, TrezorError.PinCancelled): buf.write_i32(9) - if isinstance(value, TrezorError.InvalidPin): + if isinstance(value, TrezorError.PinCancelled): buf.write_i32(10) - if isinstance(value, TrezorError.PassphraseRequired): + if isinstance(value, TrezorError.InvalidPin): buf.write_i32(11) - if isinstance(value, TrezorError.PassphraseCancelled): + if isinstance(value, TrezorError.PassphraseRequired): buf.write_i32(12) - if isinstance(value, TrezorError.UserCancelled): + if isinstance(value, TrezorError.PassphraseCancelled): buf.write_i32(13) - if isinstance(value, TrezorError.Timeout): + if isinstance(value, TrezorError.UserCancelled): buf.write_i32(14) - if isinstance(value, TrezorError.InvalidPath): + if isinstance(value, TrezorError.Timeout): buf.write_i32(15) + if isinstance(value, TrezorError.InvalidPath): + buf.write_i32(16) _UniffiConverterString.write(value.error_details, buf) if isinstance(value, TrezorError.DeviceError): - buf.write_i32(16) + buf.write_i32(17) _UniffiConverterString.write(value.error_details, buf) if isinstance(value, TrezorError.NotInitialized): - buf.write_i32(17) - if isinstance(value, TrezorError.NotConnected): buf.write_i32(18) - if isinstance(value, TrezorError.SessionError): + if isinstance(value, TrezorError.NotConnected): buf.write_i32(19) + if isinstance(value, TrezorError.SessionError): + buf.write_i32(20) _UniffiConverterString.write(value.error_details, buf) if isinstance(value, TrezorError.IoError): - buf.write_i32(20) + buf.write_i32(21) _UniffiConverterString.write(value.error_details, buf) @@ -14368,37 +14407,37 @@ class TrezorScriptType(enum.Enum): P2PKH (legacy) """ - + SPEND_P2SH_WITNESS = 1 """ P2SH-P2WPKH (nested SegWit) """ - + SPEND_WITNESS = 2 """ P2WPKH (native SegWit) """ - + SPEND_TAPROOT = 3 """ P2TR (Taproot) """ - + SPEND_MULTISIG = 4 """ P2SH multisig """ - + EXTERNAL = 5 """ External/watch-only input (not signed by device) """ - + class _UniffiConverterTypeTrezorScriptType(_UniffiConverterRustBuffer): @@ -14466,13 +14505,13 @@ class TrezorTransportType(enum.Enum): USB connection """ - + BLUETOOTH = 1 """ Bluetooth connection """ - + class _UniffiConverterTypeTrezorTransportType(_UniffiConverterRustBuffer): @@ -14516,19 +14555,19 @@ class TxDirection(enum.Enum): Wallet sent funds to an external address """ - + RECEIVED = 1 """ Wallet received funds from an external source """ - + SELF_TRANSFER = 2 """ Wallet sent funds to itself (e.g. consolidation, change-only) """ - + class _UniffiConverterTypeTxDirection(_UniffiConverterRustBuffer): @@ -14599,7 +14638,7 @@ def __eq__(self, other): if not other.is_STANDARD(): return False return True - + class HIDDEN: """ A hidden wallet whose passphrase is entered on the host. @@ -14619,7 +14658,7 @@ def __eq__(self, other): if self.passphrase != other.passphrase: return False return True - + class ON_DEVICE: """ A hidden wallet whose passphrase is entered on the Trezor itself. @@ -14636,8 +14675,8 @@ def __eq__(self, other): if not other.is_ON_DEVICE(): return False return True - - + + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -14653,7 +14692,7 @@ def is_ON_DEVICE(self) -> bool: return isinstance(self, WalletSelection.ON_DEVICE) def is_on_device(self) -> bool: return isinstance(self, WalletSelection.ON_DEVICE) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -14752,7 +14791,7 @@ def __eq__(self, other): if self.account_type != other.account_type: return False return True - + class ERROR: """ An error occurred in the watcher loop. @@ -14772,7 +14811,7 @@ def __eq__(self, other): if self.message != other.message: return False return True - + class DISCONNECTED: """ Connection to the Electrum server was lost. @@ -14792,7 +14831,7 @@ def __eq__(self, other): if self.message != other.message: return False return True - + class RECONNECTED: """ Connection to the Electrum server was restored. @@ -14809,8 +14848,8 @@ def __eq__(self, other): if not other.is_RECONNECTED(): return False return True - - + + # For each variant, we have `is_NAME` and `is_name` methods for easily checking # whether an instance is that variant. @@ -14830,7 +14869,7 @@ def is_RECONNECTED(self) -> bool: return isinstance(self, WatcherEvent.RECONNECTED) def is_reconnected(self) -> bool: return isinstance(self, WatcherEvent.RECONNECTED) - + # Now, a little trick - we make each nested variant class be a subclass of the main # enum class, so that method calls and instance checks etc will work intuitively. @@ -14917,31 +14956,31 @@ class WordCount(enum.Enum): 12-word mnemonic (128 bits of entropy) """ - + WORDS15 = 15 """ 15-word mnemonic (160 bits of entropy) """ - + WORDS18 = 18 """ 18-word mnemonic (192 bits of entropy) """ - + WORDS21 = 21 """ 21-word mnemonic (224 bits of entropy) """ - + WORDS24 = 24 """ 24-word mnemonic (256 bits of entropy) """ - + class _UniffiConverterTypeWordCount(_UniffiConverterRustBuffer): @@ -17141,7 +17180,7 @@ class EventListenerImpl(): """ _pointer: ctypes.c_void_p - + def __init__(self, *args, **kwargs): raise ValueError("This class has no default constructor") @@ -17173,9 +17212,9 @@ def on_event(self, watcher_id: "str",event: "WatcherEvent") -> None: """ _UniffiConverterString.check_lower(watcher_id) - + _UniffiConverterTypeWatcherEvent.check_lower(event) - + _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_eventlistener_on_event,self._uniffi_clone_pointer(), _UniffiConverterString.lower(watcher_id), _UniffiConverterTypeWatcherEvent.lower(event)) @@ -17203,7 +17242,7 @@ def make_call(): method = uniffi_obj.on_event return method(*args) - + write_return_value = lambda v: None _uniffi_trait_interface_call( uniffi_call_status_ptr.contents, @@ -17552,7 +17591,7 @@ class TrezorTransportCallbackImpl(): """ _pointer: ctypes.c_void_p - + def __init__(self, *args, **kwargs): raise ValueError("This class has no default constructor") @@ -17594,7 +17633,7 @@ def open_device(self, path: "str") -> "TrezorTransportWriteResult": """ _UniffiConverterString.check_lower(path) - + return _UniffiConverterTypeTrezorTransportWriteResult.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_open_device,self._uniffi_clone_pointer(), _UniffiConverterString.lower(path)) @@ -17610,7 +17649,7 @@ def close_device(self, path: "str") -> "TrezorTransportWriteResult": """ _UniffiConverterString.check_lower(path) - + return _UniffiConverterTypeTrezorTransportWriteResult.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_close_device,self._uniffi_clone_pointer(), _UniffiConverterString.lower(path)) @@ -17626,7 +17665,7 @@ def read_chunk(self, path: "str") -> "TrezorTransportReadResult": """ _UniffiConverterString.check_lower(path) - + return _UniffiConverterTypeTrezorTransportReadResult.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_read_chunk,self._uniffi_clone_pointer(), _UniffiConverterString.lower(path)) @@ -17642,9 +17681,9 @@ def write_chunk(self, path: "str",data: "bytes") -> "TrezorTransportWriteResult" """ _UniffiConverterString.check_lower(path) - + _UniffiConverterBytes.check_lower(data) - + return _UniffiConverterTypeTrezorTransportWriteResult.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_write_chunk,self._uniffi_clone_pointer(), _UniffiConverterString.lower(path), @@ -17661,7 +17700,7 @@ def get_chunk_size(self, path: "str") -> "int": """ _UniffiConverterString.check_lower(path) - + return _UniffiConverterUInt32.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_get_chunk_size,self._uniffi_clone_pointer(), _UniffiConverterString.lower(path)) @@ -17689,11 +17728,11 @@ def call_message(self, path: "str",message_type: "int",data: "bytes") -> "typing """ _UniffiConverterString.check_lower(path) - + _UniffiConverterUInt16.check_lower(message_type) - + _UniffiConverterBytes.check_lower(data) - + return _UniffiConverterOptionalTypeTrezorCallMessageResult.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_call_message,self._uniffi_clone_pointer(), _UniffiConverterString.lower(path), @@ -17741,9 +17780,9 @@ def save_thp_credential(self, device_id: "str",credential_json: "str") -> "bool" """ _UniffiConverterString.check_lower(device_id) - + _UniffiConverterString.check_lower(credential_json) - + return _UniffiConverterBool.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_save_thp_credential,self._uniffi_clone_pointer(), _UniffiConverterString.lower(device_id), @@ -17768,7 +17807,7 @@ def load_thp_credential(self, device_id: "str") -> "typing.Optional[str]": """ _UniffiConverterString.check_lower(device_id) - + return _UniffiConverterOptionalString.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_load_thp_credential,self._uniffi_clone_pointer(), _UniffiConverterString.lower(device_id)) @@ -17792,9 +17831,9 @@ def log_debug(self, tag: "str",message: "str") -> None: """ _UniffiConverterString.check_lower(tag) - + _UniffiConverterString.check_lower(message) - + _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezortransportcallback_log_debug,self._uniffi_clone_pointer(), _UniffiConverterString.lower(tag), _UniffiConverterString.lower(message)) @@ -17820,7 +17859,7 @@ def make_call(): method = uniffi_obj.enumerate_devices return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterSequenceTypeNativeDeviceInfo.lower(v) _uniffi_trait_interface_call( @@ -17842,7 +17881,7 @@ def make_call(): method = uniffi_obj.open_device return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterTypeTrezorTransportWriteResult.lower(v) _uniffi_trait_interface_call( @@ -17864,7 +17903,7 @@ def make_call(): method = uniffi_obj.close_device return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterTypeTrezorTransportWriteResult.lower(v) _uniffi_trait_interface_call( @@ -17886,7 +17925,7 @@ def make_call(): method = uniffi_obj.read_chunk return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterTypeTrezorTransportReadResult.lower(v) _uniffi_trait_interface_call( @@ -17909,7 +17948,7 @@ def make_call(): method = uniffi_obj.write_chunk return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterTypeTrezorTransportWriteResult.lower(v) _uniffi_trait_interface_call( @@ -17931,7 +17970,7 @@ def make_call(): method = uniffi_obj.get_chunk_size return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterUInt32.lower(v) _uniffi_trait_interface_call( @@ -17955,7 +17994,7 @@ def make_call(): method = uniffi_obj.call_message return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterOptionalTypeTrezorCallMessageResult.lower(v) _uniffi_trait_interface_call( @@ -17976,7 +18015,7 @@ def make_call(): method = uniffi_obj.get_pairing_code return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterString.lower(v) _uniffi_trait_interface_call( @@ -17999,7 +18038,7 @@ def make_call(): method = uniffi_obj.save_thp_credential return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterBool.lower(v) _uniffi_trait_interface_call( @@ -18021,7 +18060,7 @@ def make_call(): method = uniffi_obj.load_thp_credential return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterOptionalString.lower(v) _uniffi_trait_interface_call( @@ -18044,7 +18083,7 @@ def make_call(): method = uniffi_obj.log_debug return method(*args) - + write_return_value = lambda v: None _uniffi_trait_interface_call( uniffi_call_status_ptr.contents, @@ -18177,7 +18216,7 @@ class TrezorUiCallbackImpl(): """ _pointer: ctypes.c_void_p - + def __init__(self, *args, **kwargs): raise ValueError("This class has no default constructor") @@ -18229,7 +18268,7 @@ def on_passphrase_request(self, on_device: "bool") -> "PassphraseResponse": """ _UniffiConverterBool.check_lower(on_device) - + return _UniffiConverterTypePassphraseResponse.lift( _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_method_trezoruicallback_on_passphrase_request,self._uniffi_clone_pointer(), _UniffiConverterBool.lower(on_device)) @@ -18255,7 +18294,7 @@ def make_call(): method = uniffi_obj.on_pin_request return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterString.lower(v) _uniffi_trait_interface_call( @@ -18277,7 +18316,7 @@ def make_call(): method = uniffi_obj.on_passphrase_request return method(*args) - + def write_return_value(v): uniffi_out_return[0] = _UniffiConverterTypePassphraseResponse.lower(v) _uniffi_trait_interface_call( @@ -18398,18 +18437,18 @@ def activity_wipe_all() -> None: def add_pre_activity_metadata(pre_activity_metadata: "PreActivityMetadata") -> None: _UniffiConverterTypePreActivityMetadata.check_lower(pre_activity_metadata) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_add_pre_activity_metadata, _UniffiConverterTypePreActivityMetadata.lower(pre_activity_metadata)) def add_pre_activity_metadata_tags(wallet_id: "str",payment_id: "str",tags: "typing.List[str]") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(payment_id) - + _UniffiConverterSequenceString.check_lower(tags) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_add_pre_activity_metadata_tags, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(payment_id), @@ -18418,11 +18457,11 @@ def add_pre_activity_metadata_tags(wallet_id: "str",payment_id: "str",tags: "typ def add_tags(wallet_id: "str",activity_id: "str",tags: "typing.List[str]") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(activity_id) - + _UniffiConverterSequenceString.check_lower(tags) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_add_tags, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(activity_id), @@ -18431,9 +18470,9 @@ def add_tags(wallet_id: "str",activity_id: "str",tags: "typing.List[str]") -> No async def approve_pubky_auth(auth_url: "str",secret_key_hex: "str") -> None: _UniffiConverterString.check_lower(auth_url) - + _UniffiConverterString.check_lower(secret_key_hex) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_approve_pubky_auth( _UniffiConverterString.lower(auth_url), @@ -18443,8 +18482,8 @@ async def approve_pubky_auth(auth_url: "str",secret_key_hex: "str") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18458,8 +18497,8 @@ async def blocktank_remove_all_cjit_entries() -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18473,8 +18512,8 @@ async def blocktank_remove_all_orders() -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18488,8 +18527,8 @@ async def blocktank_wipe_all() -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18497,15 +18536,15 @@ async def blocktank_wipe_all() -> None: async def broadcast_sweep_transaction(psbt: "str",mnemonic_phrase: "str",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]",electrum_url: "str") -> "SweepResult": _UniffiConverterString.check_lower(psbt) - + _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + _UniffiConverterString.check_lower(electrum_url) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_broadcast_sweep_transaction( _UniffiConverterString.lower(psbt), @@ -18518,7 +18557,7 @@ async def broadcast_sweep_transaction(psbt: "str",mnemonic_phrase: "str",network _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeSweepResult.lift, - + # Error FFI converter _UniffiConverterTypeSweepError, @@ -18526,7 +18565,7 @@ async def broadcast_sweep_transaction(psbt: "str",mnemonic_phrase: "str",network def calculate_channel_liquidity_options(params: "ChannelLiquidityParams") -> "ChannelLiquidityOptions": _UniffiConverterTypeChannelLiquidityParams.check_lower(params) - + return _UniffiConverterTypeChannelLiquidityOptions.lift(_uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_calculate_channel_liquidity_options, _UniffiConverterTypeChannelLiquidityParams.lower(params))) @@ -18539,8 +18578,8 @@ async def cancel_pubky_auth() -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18548,13 +18587,13 @@ async def cancel_pubky_auth() -> None: async def check_sweepable_balances(mnemonic_phrase: "str",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]",electrum_url: "str") -> "SweepableBalances": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + _UniffiConverterString.check_lower(electrum_url) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_check_sweepable_balances( _UniffiConverterString.lower(mnemonic_phrase), @@ -18566,7 +18605,7 @@ async def check_sweepable_balances(mnemonic_phrase: "str",network: "typing.Optio _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeSweepableBalances.lift, - + # Error FFI converter _UniffiConverterTypeSweepError, @@ -18580,7 +18619,7 @@ async def complete_pubky_auth() -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18588,15 +18627,15 @@ async def complete_pubky_auth() -> "str": def create_channel_request_url(k1: "str",callback: "str",local_node_id: "str",is_private: "bool",cancel: "bool") -> "str": _UniffiConverterString.check_lower(k1) - + _UniffiConverterString.check_lower(callback) - + _UniffiConverterString.check_lower(local_node_id) - + _UniffiConverterBool.check_lower(is_private) - + _UniffiConverterBool.check_lower(cancel) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeLnurlError,_UniffiLib.uniffi_bitkitcore_fn_func_create_channel_request_url, _UniffiConverterString.lower(k1), _UniffiConverterString.lower(callback), @@ -18607,17 +18646,17 @@ def create_channel_request_url(k1: "str",callback: "str",local_node_id: "str",is async def create_cjit_entry(channel_size_sat: "int",invoice_sat: "int",invoice_description: "str",node_id: "str",channel_expiry_weeks: "int",options: "typing.Optional[CreateCjitOptions]") -> "IcJitEntry": _UniffiConverterUInt64.check_lower(channel_size_sat) - + _UniffiConverterUInt64.check_lower(invoice_sat) - + _UniffiConverterString.check_lower(invoice_description) - + _UniffiConverterString.check_lower(node_id) - + _UniffiConverterUInt32.check_lower(channel_expiry_weeks) - + _UniffiConverterOptionalTypeCreateCjitOptions.check_lower(options) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_create_cjit_entry( _UniffiConverterUInt64.lower(channel_size_sat), @@ -18631,7 +18670,7 @@ async def create_cjit_entry(channel_size_sat: "int",invoice_sat: "int",invoice_d _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIcJitEntry.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18639,11 +18678,11 @@ async def create_cjit_entry(channel_size_sat: "int",invoice_sat: "int",invoice_d async def create_order(lsp_balance_sat: "int",channel_expiry_weeks: "int",options: "typing.Optional[CreateOrderOptions]") -> "IBtOrder": _UniffiConverterUInt64.check_lower(lsp_balance_sat) - + _UniffiConverterUInt32.check_lower(channel_expiry_weeks) - + _UniffiConverterOptionalTypeCreateOrderOptions.check_lower(options) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_create_order( _UniffiConverterUInt64.lower(lsp_balance_sat), @@ -18654,7 +18693,7 @@ async def create_order(lsp_balance_sat: "int",channel_expiry_weeks: "int",option _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBtOrder.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18662,11 +18701,11 @@ async def create_order(lsp_balance_sat: "int",channel_expiry_weeks: "int",option def create_withdraw_callback_url(k1: "str",callback: "str",payment_request: "str") -> "str": _UniffiConverterString.check_lower(k1) - + _UniffiConverterString.check_lower(callback) - + _UniffiConverterString.check_lower(payment_request) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeLnurlError,_UniffiLib.uniffi_bitkitcore_fn_func_create_withdraw_callback_url, _UniffiConverterString.lower(k1), _UniffiConverterString.lower(callback), @@ -18675,7 +18714,7 @@ def create_withdraw_callback_url(k1: "str",callback: "str",payment_request: "str async def decode(invoice: "str") -> "Scanner": _UniffiConverterString.check_lower(invoice) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_decode( _UniffiConverterString.lower(invoice)), @@ -18684,7 +18723,7 @@ async def decode(invoice: "str") -> "Scanner": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeScanner.lift, - + # Error FFI converter _UniffiConverterTypeDecodingError, @@ -18692,16 +18731,16 @@ async def decode(invoice: "str") -> "Scanner": def delete_activities_by_wallet_id(wallet_id: "str") -> "int": _UniffiConverterString.check_lower(wallet_id) - + return _UniffiConverterUInt32.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_delete_activities_by_wallet_id, _UniffiConverterString.lower(wallet_id))) def delete_activity_by_id(wallet_id: "str",activity_id: "str") -> "bool": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(activity_id) - + return _UniffiConverterBool.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_delete_activity_by_id, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(activity_id))) @@ -18709,9 +18748,9 @@ def delete_activity_by_id(wallet_id: "str",activity_id: "str") -> "bool": def delete_pre_activity_metadata(wallet_id: "str",payment_id: "str") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(payment_id) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_delete_pre_activity_metadata, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(payment_id)) @@ -18719,9 +18758,9 @@ def delete_pre_activity_metadata(wallet_id: "str",payment_id: "str") -> None: def delete_transaction_details(wallet_id: "str",tx_id: "str") -> "bool": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(tx_id) - + return _UniffiConverterBool.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_delete_transaction_details, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(tx_id))) @@ -18729,13 +18768,13 @@ def delete_transaction_details(wallet_id: "str",tx_id: "str") -> "bool": def derive_bitcoin_address(mnemonic_phrase: "str",derivation_path_str: "typing.Optional[str]",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]") -> "GetAddressResponse": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalString.check_lower(derivation_path_str) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + return _UniffiConverterTypeGetAddressResponse.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_derive_bitcoin_address, _UniffiConverterString.lower(mnemonic_phrase), _UniffiConverterOptionalString.lower(derivation_path_str), @@ -18745,19 +18784,19 @@ def derive_bitcoin_address(mnemonic_phrase: "str",derivation_path_str: "typing.O def derive_bitcoin_addresses(mnemonic_phrase: "str",derivation_path_str: "typing.Optional[str]",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]",is_change: "typing.Optional[bool]",start_index: "typing.Optional[int]",count: "typing.Optional[int]") -> "GetAddressesResponse": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalString.check_lower(derivation_path_str) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + _UniffiConverterOptionalBool.check_lower(is_change) - + _UniffiConverterOptionalUInt32.check_lower(start_index) - + _UniffiConverterOptionalUInt32.check_lower(count) - + return _UniffiConverterTypeGetAddressesResponse.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_derive_bitcoin_addresses, _UniffiConverterString.lower(mnemonic_phrase), _UniffiConverterOptionalString.lower(derivation_path_str), @@ -18770,15 +18809,15 @@ def derive_bitcoin_addresses(mnemonic_phrase: "str",derivation_path_str: "typing def derive_onchain_descriptor(mnemonic_phrase: "str",network: "Network",bip39_passphrase: "typing.Optional[str]",account_type: "AccountType",account_index: "int") -> "str": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + _UniffiConverterTypeAccountType.check_lower(account_type) - + _UniffiConverterUInt32.check_lower(account_index) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_derive_onchain_descriptor, _UniffiConverterString.lower(mnemonic_phrase), _UniffiConverterTypeNetwork.lower(network), @@ -18789,13 +18828,13 @@ def derive_onchain_descriptor(mnemonic_phrase: "str",network: "Network",bip39_pa def derive_private_key(mnemonic_phrase: "str",derivation_path_str: "typing.Optional[str]",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]") -> "str": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalString.check_lower(derivation_path_str) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_derive_private_key, _UniffiConverterString.lower(mnemonic_phrase), _UniffiConverterOptionalString.lower(derivation_path_str), @@ -18805,25 +18844,25 @@ def derive_private_key(mnemonic_phrase: "str",derivation_path_str: "typing.Optio def derive_pubky_secret_key(seed: "bytes") -> "str": _UniffiConverterBytes.check_lower(seed) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypePubkyError,_UniffiLib.uniffi_bitkitcore_fn_func_derive_pubky_secret_key, _UniffiConverterBytes.lower(seed))) def entropy_to_mnemonic(entropy: "bytes") -> "str": _UniffiConverterBytes.check_lower(entropy) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_entropy_to_mnemonic, _UniffiConverterBytes.lower(entropy))) async def estimate_order_fee(lsp_balance_sat: "int",channel_expiry_weeks: "int",options: "typing.Optional[CreateOrderOptions]") -> "IBtEstimateFeeResponse": _UniffiConverterUInt64.check_lower(lsp_balance_sat) - + _UniffiConverterUInt32.check_lower(channel_expiry_weeks) - + _UniffiConverterOptionalTypeCreateOrderOptions.check_lower(options) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_estimate_order_fee( _UniffiConverterUInt64.lower(lsp_balance_sat), @@ -18834,7 +18873,7 @@ async def estimate_order_fee(lsp_balance_sat: "int",channel_expiry_weeks: "int", _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBtEstimateFeeResponse.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18842,11 +18881,11 @@ async def estimate_order_fee(lsp_balance_sat: "int",channel_expiry_weeks: "int", async def estimate_order_fee_full(lsp_balance_sat: "int",channel_expiry_weeks: "int",options: "typing.Optional[CreateOrderOptions]") -> "IBtEstimateFeeResponse2": _UniffiConverterUInt64.check_lower(lsp_balance_sat) - + _UniffiConverterUInt32.check_lower(channel_expiry_weeks) - + _UniffiConverterOptionalTypeCreateOrderOptions.check_lower(options) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_estimate_order_fee_full( _UniffiConverterUInt64.lower(lsp_balance_sat), @@ -18857,7 +18896,7 @@ async def estimate_order_fee_full(lsp_balance_sat: "int",channel_expiry_weeks: " _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBtEstimateFeeResponse2.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -18865,7 +18904,7 @@ async def estimate_order_fee_full(lsp_balance_sat: "int",channel_expiry_weeks: " async def fetch_pubky_contacts(public_key: "str") -> "typing.List[str]": _UniffiConverterString.check_lower(public_key) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_fetch_pubky_contacts( _UniffiConverterString.lower(public_key)), @@ -18874,7 +18913,7 @@ async def fetch_pubky_contacts(public_key: "str") -> "typing.List[str]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18882,7 +18921,7 @@ async def fetch_pubky_contacts(public_key: "str") -> "typing.List[str]": async def fetch_pubky_file(uri: "str") -> "bytes": _UniffiConverterString.check_lower(uri) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_fetch_pubky_file( _UniffiConverterString.lower(uri)), @@ -18891,7 +18930,7 @@ async def fetch_pubky_file(uri: "str") -> "bytes": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterBytes.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18899,7 +18938,7 @@ async def fetch_pubky_file(uri: "str") -> "bytes": async def fetch_pubky_file_string(uri: "str") -> "str": _UniffiConverterString.check_lower(uri) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_fetch_pubky_file_string( _UniffiConverterString.lower(uri)), @@ -18908,7 +18947,7 @@ async def fetch_pubky_file_string(uri: "str") -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18916,7 +18955,7 @@ async def fetch_pubky_file_string(uri: "str") -> "str": async def fetch_pubky_profile(public_key: "str") -> "PubkyProfile": _UniffiConverterString.check_lower(public_key) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_fetch_pubky_profile( _UniffiConverterString.lower(public_key)), @@ -18925,7 +18964,7 @@ async def fetch_pubky_profile(public_key: "str") -> "PubkyProfile": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypePubkyProfile.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -18933,30 +18972,30 @@ async def fetch_pubky_profile(public_key: "str") -> "PubkyProfile": def generate_mnemonic(word_count: "typing.Optional[WordCount]") -> "str": _UniffiConverterOptionalTypeWordCount.check_lower(word_count) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_generate_mnemonic, _UniffiConverterOptionalTypeWordCount.lower(word_count))) def get_activities(wallet_id: "typing.Optional[str]",filter: "typing.Optional[ActivityFilter]",tx_type: "typing.Optional[PaymentType]",tags: "typing.Optional[typing.List[str]]",search: "typing.Optional[str]",min_date: "typing.Optional[int]",max_date: "typing.Optional[int]",limit: "typing.Optional[int]",sort_direction: "typing.Optional[SortDirection]") -> "typing.List[Activity]": _UniffiConverterOptionalString.check_lower(wallet_id) - + _UniffiConverterOptionalTypeActivityFilter.check_lower(filter) - + _UniffiConverterOptionalTypePaymentType.check_lower(tx_type) - + _UniffiConverterOptionalSequenceString.check_lower(tags) - + _UniffiConverterOptionalString.check_lower(search) - + _UniffiConverterOptionalUInt64.check_lower(min_date) - + _UniffiConverterOptionalUInt64.check_lower(max_date) - + _UniffiConverterOptionalUInt32.check_lower(limit) - + _UniffiConverterOptionalTypeSortDirection.check_lower(sort_direction) - + return _UniffiConverterSequenceTypeActivity.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_activities, _UniffiConverterOptionalString.lower(wallet_id), _UniffiConverterOptionalTypeActivityFilter.lower(filter), @@ -18971,13 +19010,13 @@ def get_activities(wallet_id: "typing.Optional[str]",filter: "typing.Optional[Ac def get_activities_by_tag(wallet_id: "typing.Optional[str]",tag: "str",limit: "typing.Optional[int]",sort_direction: "typing.Optional[SortDirection]") -> "typing.List[Activity]": _UniffiConverterOptionalString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(tag) - + _UniffiConverterOptionalUInt32.check_lower(limit) - + _UniffiConverterOptionalTypeSortDirection.check_lower(sort_direction) - + return _UniffiConverterSequenceTypeActivity.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_activities_by_tag, _UniffiConverterOptionalString.lower(wallet_id), _UniffiConverterString.lower(tag), @@ -18987,9 +19026,9 @@ def get_activities_by_tag(wallet_id: "typing.Optional[str]",tag: "str",limit: "t def get_activity_by_id(wallet_id: "str",activity_id: "str") -> "typing.Optional[Activity]": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(activity_id) - + return _UniffiConverterOptionalTypeActivity.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_activity_by_id, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(activity_id))) @@ -18997,9 +19036,9 @@ def get_activity_by_id(wallet_id: "str",activity_id: "str") -> "typing.Optional[ def get_activity_by_tx_id(wallet_id: "str",tx_id: "str") -> "typing.Optional[OnchainActivity]": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(tx_id) - + return _UniffiConverterOptionalTypeOnchainActivity.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_activity_by_tx_id, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(tx_id))) @@ -19011,7 +19050,7 @@ def get_all_activities_tags() -> "typing.List[ActivityTags]": def get_all_closed_channels(sort_direction: "typing.Optional[SortDirection]") -> "typing.List[ClosedChannelDetails]": _UniffiConverterOptionalTypeSortDirection.check_lower(sort_direction) - + return _UniffiConverterSequenceTypeClosedChannelDetails.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_all_closed_channels, _UniffiConverterOptionalTypeSortDirection.lower(sort_direction))) @@ -19030,9 +19069,9 @@ def get_all_unique_tags() -> "typing.List[str]": def get_bip39_suggestions(partial_word: "str",limit: "int") -> "typing.List[str]": _UniffiConverterString.check_lower(partial_word) - + _UniffiConverterUInt32.check_lower(limit) - + return _UniffiConverterSequenceString.lift(_uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_get_bip39_suggestions, _UniffiConverterString.lower(partial_word), _UniffiConverterUInt32.lower(limit))) @@ -19044,11 +19083,11 @@ def get_bip39_wordlist() -> "typing.List[str]": async def get_cjit_entries(entry_ids: "typing.Optional[typing.List[str]]",filter: "typing.Optional[CJitStateEnum]",refresh: "bool") -> "typing.List[IcJitEntry]": _UniffiConverterOptionalSequenceString.check_lower(entry_ids) - + _UniffiConverterOptionalTypeCJitStateEnum.check_lower(filter) - + _UniffiConverterBool.check_lower(refresh) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_cjit_entries( _UniffiConverterOptionalSequenceString.lower(entry_ids), @@ -19059,7 +19098,7 @@ async def get_cjit_entries(entry_ids: "typing.Optional[typing.List[str]]",filter _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeIcJitEntry.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19067,14 +19106,14 @@ async def get_cjit_entries(entry_ids: "typing.Optional[typing.List[str]]",filter def get_closed_channel_by_id(channel_id: "str") -> "typing.Optional[ClosedChannelDetails]": _UniffiConverterString.check_lower(channel_id) - + return _UniffiConverterOptionalTypeClosedChannelDetails.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_closed_channel_by_id, _UniffiConverterString.lower(channel_id))) def get_default_lsp_balance(params: "DefaultLspBalanceParams") -> "int": _UniffiConverterTypeDefaultLspBalanceParams.check_lower(params) - + return _UniffiConverterUInt64.lift(_uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_get_default_lsp_balance, _UniffiConverterTypeDefaultLspBalanceParams.lower(params))) @@ -19085,7 +19124,7 @@ def get_default_wallet_id() -> "str": async def get_gift(gift_id: "str") -> "IGift": _UniffiConverterString.check_lower(gift_id) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_gift( _UniffiConverterString.lower(gift_id)), @@ -19094,7 +19133,7 @@ async def get_gift(gift_id: "str") -> "IGift": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIGift.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19102,7 +19141,7 @@ async def get_gift(gift_id: "str") -> "IGift": async def get_info(refresh: "typing.Optional[bool]") -> "typing.Optional[IBtInfo]": _UniffiConverterOptionalBool.check_lower(refresh) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_info( _UniffiConverterOptionalBool.lower(refresh)), @@ -19111,7 +19150,7 @@ async def get_info(refresh: "typing.Optional[bool]") -> "typing.Optional[IBtInfo _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterOptionalTypeIBtInfo.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19119,9 +19158,9 @@ async def get_info(refresh: "typing.Optional[bool]") -> "typing.Optional[IBtInfo async def get_lnurl_invoice(address: "str",amount_satoshis: "int") -> "str": _UniffiConverterString.check_lower(address) - + _UniffiConverterUInt64.check_lower(amount_satoshis) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_lnurl_invoice( _UniffiConverterString.lower(address), @@ -19131,7 +19170,7 @@ async def get_lnurl_invoice(address: "str",amount_satoshis: "int") -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeLnurlError, @@ -19139,7 +19178,7 @@ async def get_lnurl_invoice(address: "str",amount_satoshis: "int") -> "str": async def get_min_zero_conf_tx_fee(order_id: "str") -> "IBt0ConfMinTxFeeWindow": _UniffiConverterString.check_lower(order_id) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_min_zero_conf_tx_fee( _UniffiConverterString.lower(order_id)), @@ -19148,7 +19187,7 @@ async def get_min_zero_conf_tx_fee(order_id: "str") -> "IBt0ConfMinTxFeeWindow": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBt0ConfMinTxFeeWindow.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19156,11 +19195,11 @@ async def get_min_zero_conf_tx_fee(order_id: "str") -> "IBt0ConfMinTxFeeWindow": async def get_orders(order_ids: "typing.Optional[typing.List[str]]",filter: "typing.Optional[BtOrderState2]",refresh: "bool") -> "typing.List[IBtOrder]": _UniffiConverterOptionalSequenceString.check_lower(order_ids) - + _UniffiConverterOptionalTypeBtOrderState2.check_lower(filter) - + _UniffiConverterBool.check_lower(refresh) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_orders( _UniffiConverterOptionalSequenceString.lower(order_ids), @@ -19171,7 +19210,7 @@ async def get_orders(order_ids: "typing.Optional[typing.List[str]]",filter: "typ _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeIBtOrder.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19179,7 +19218,7 @@ async def get_orders(order_ids: "typing.Optional[typing.List[str]]",filter: "typ async def get_payment(payment_id: "str") -> "IBtBolt11Invoice": _UniffiConverterString.check_lower(payment_id) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_get_payment( _UniffiConverterString.lower(payment_id)), @@ -19188,7 +19227,7 @@ async def get_payment(payment_id: "str") -> "IBtBolt11Invoice": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBtBolt11Invoice.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19196,11 +19235,11 @@ async def get_payment(payment_id: "str") -> "IBtBolt11Invoice": def get_pre_activity_metadata(wallet_id: "str",search_key: "str",search_by_address: "bool") -> "typing.Optional[PreActivityMetadata]": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(search_key) - + _UniffiConverterBool.check_lower(search_by_address) - + return _UniffiConverterOptionalTypePreActivityMetadata.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_pre_activity_metadata, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(search_key), @@ -19209,9 +19248,9 @@ def get_pre_activity_metadata(wallet_id: "str",search_key: "str",search_by_addre def get_tags(wallet_id: "str",activity_id: "str") -> "typing.List[str]": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(activity_id) - + return _UniffiConverterSequenceString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_tags, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(activity_id))) @@ -19219,9 +19258,9 @@ def get_tags(wallet_id: "str",activity_id: "str") -> "typing.List[str]": def get_transaction_details(wallet_id: "str",tx_id: "str") -> "typing.Optional[TransactionDetails]": _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(tx_id) - + return _UniffiConverterOptionalTypeTransactionDetails.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_get_transaction_details, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(tx_id))) @@ -19229,9 +19268,9 @@ def get_transaction_details(wallet_id: "str",tx_id: "str") -> "typing.Optional[T async def gift_order(client_node_id: "str",code: "str") -> "IGift": _UniffiConverterString.check_lower(client_node_id) - + _UniffiConverterString.check_lower(code) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_gift_order( _UniffiConverterString.lower(client_node_id), @@ -19241,7 +19280,7 @@ async def gift_order(client_node_id: "str",code: "str") -> "IGift": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIGift.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19249,7 +19288,7 @@ async def gift_order(client_node_id: "str",code: "str") -> "IGift": async def gift_pay(invoice: "str") -> "IGift": _UniffiConverterString.check_lower(invoice) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_gift_pay( _UniffiConverterString.lower(invoice)), @@ -19258,7 +19297,7 @@ async def gift_pay(invoice: "str") -> "IGift": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIGift.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19266,45 +19305,45 @@ async def gift_pay(invoice: "str") -> "IGift": def init_db(base_path: "str") -> "str": _UniffiConverterString.check_lower(base_path) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeDbError,_UniffiLib.uniffi_bitkitcore_fn_func_init_db, _UniffiConverterString.lower(base_path))) def insert_activity(activity: "Activity") -> None: _UniffiConverterTypeActivity.check_lower(activity) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_insert_activity, _UniffiConverterTypeActivity.lower(activity)) def is_address_used(address: "str") -> "bool": _UniffiConverterString.check_lower(address) - + return _UniffiConverterBool.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_is_address_used, _UniffiConverterString.lower(address))) def is_valid_bip39_word(word: "str") -> "bool": _UniffiConverterString.check_lower(word) - + return _UniffiConverterBool.lift(_uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_is_valid_bip39_word, _UniffiConverterString.lower(word))) async def lnurl_auth(domain: "str",k1: "str",callback: "str",bip32_mnemonic: "str",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]") -> "str": _UniffiConverterString.check_lower(domain) - + _UniffiConverterString.check_lower(k1) - + _UniffiConverterString.check_lower(callback) - + _UniffiConverterString.check_lower(bip32_mnemonic) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_lnurl_auth( _UniffiConverterString.lower(domain), @@ -19318,7 +19357,7 @@ async def lnurl_auth(domain: "str",k1: "str",callback: "str",bip32_mnemonic: "st _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeLnurlError, @@ -19326,11 +19365,11 @@ async def lnurl_auth(domain: "str",k1: "str",callback: "str",bip32_mnemonic: "st def mark_activity_as_seen(wallet_id: "str",activity_id: "str",seen_at: "int") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(activity_id) - + _UniffiConverterUInt64.check_lower(seen_at) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_mark_activity_as_seen, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(activity_id), @@ -19339,16 +19378,16 @@ def mark_activity_as_seen(wallet_id: "str",activity_id: "str",seen_at: "int") -> def mnemonic_to_entropy(mnemonic_phrase: "str") -> "bytes": _UniffiConverterString.check_lower(mnemonic_phrase) - + return _UniffiConverterBytes.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_mnemonic_to_entropy, _UniffiConverterString.lower(mnemonic_phrase))) def mnemonic_to_seed(mnemonic_phrase: "str",passphrase: "typing.Optional[str]") -> "bytes": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalString.check_lower(passphrase) - + return _UniffiConverterBytes.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_mnemonic_to_seed, _UniffiConverterString.lower(mnemonic_phrase), _UniffiConverterOptionalString.lower(passphrase))) @@ -19363,9 +19402,9 @@ async def onchain_broadcast_raw_tx(serialized_tx: "str",electrum_url: "str") -> """ _UniffiConverterString.check_lower(serialized_tx) - + _UniffiConverterString.check_lower(electrum_url) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_broadcast_raw_tx( _UniffiConverterString.lower(serialized_tx), @@ -19375,7 +19414,7 @@ async def onchain_broadcast_raw_tx(serialized_tx: "str",electrum_url: "str") -> _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeBroadcastError, @@ -19392,7 +19431,7 @@ async def onchain_compose_transaction(params: "ComposeParams") -> "typing.List[C """ _UniffiConverterTypeComposeParams.check_lower(params) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_compose_transaction( _UniffiConverterTypeComposeParams.lower(params)), @@ -19401,7 +19440,7 @@ async def onchain_compose_transaction(params: "ComposeParams") -> "typing.List[C _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeComposeResult.lift, - + # Error FFI converter None, @@ -19414,15 +19453,15 @@ async def onchain_get_account_info(extended_key: "str",electrum_url: "str",netwo """ _UniffiConverterString.check_lower(extended_key) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalUInt32.check_lower(gap_limit) - + _UniffiConverterOptionalTypeAccountType.check_lower(script_type) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_get_account_info( _UniffiConverterString.lower(extended_key), @@ -19435,7 +19474,7 @@ async def onchain_get_account_info(extended_key: "str",electrum_url: "str",netwo _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeAccountInfoResult.lift, - + # Error FFI converter _UniffiConverterTypeAccountInfoError, @@ -19447,11 +19486,11 @@ async def onchain_get_address_info(address: "str",electrum_url: "str",network: " """ _UniffiConverterString.check_lower(address) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_get_address_info( _UniffiConverterString.lower(address), @@ -19462,7 +19501,7 @@ async def onchain_get_address_info(address: "str",electrum_url: "str",network: " _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeSingleAddressInfoResult.lift, - + # Error FFI converter _UniffiConverterTypeAccountInfoError, @@ -19474,15 +19513,15 @@ async def onchain_get_transaction_detail(extended_key: "str",electrum_url: "str" """ _UniffiConverterString.check_lower(extended_key) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterString.check_lower(txid) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalTypeAccountType.check_lower(script_type) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_get_transaction_detail( _UniffiConverterString.lower(extended_key), @@ -19495,7 +19534,7 @@ async def onchain_get_transaction_detail(extended_key: "str",electrum_url: "str" _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTransactionDetail.lift, - + # Error FFI converter _UniffiConverterTypeAccountInfoError, @@ -19507,13 +19546,13 @@ async def onchain_get_transaction_history(extended_key: "str",electrum_url: "str """ _UniffiConverterString.check_lower(extended_key) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalTypeAccountType.check_lower(script_type) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_get_transaction_history( _UniffiConverterString.lower(extended_key), @@ -19525,7 +19564,7 @@ async def onchain_get_transaction_history(extended_key: "str",electrum_url: "str _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTransactionHistoryResult.lift, - + # Error FFI converter _UniffiConverterTypeAccountInfoError, @@ -19539,9 +19578,9 @@ async def onchain_start_watcher(params: "WatcherParams",listener: "EventListener """ _UniffiConverterTypeWatcherParams.check_lower(params) - + _UniffiConverterTypeEventListener.check_lower(listener) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_onchain_start_watcher( _UniffiConverterTypeWatcherParams.lower(params), @@ -19551,8 +19590,8 @@ async def onchain_start_watcher(params: "WatcherParams",listener: "EventListener _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeAccountInfoError, @@ -19572,16 +19611,16 @@ def onchain_stop_watcher(watcher_id: "str") -> None: """ _UniffiConverterString.check_lower(watcher_id) - + _uniffi_rust_call_with_error(_UniffiConverterTypeAccountInfoError,_UniffiLib.uniffi_bitkitcore_fn_func_onchain_stop_watcher, _UniffiConverterString.lower(watcher_id)) async def open_channel(order_id: "str",connection_string: "str") -> "IBtOrder": _UniffiConverterString.check_lower(order_id) - + _UniffiConverterString.check_lower(connection_string) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_open_channel( _UniffiConverterString.lower(order_id), @@ -19591,7 +19630,7 @@ async def open_channel(order_id: "str",connection_string: "str") -> "IBtOrder": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBtOrder.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19599,26 +19638,26 @@ async def open_channel(order_id: "str",connection_string: "str") -> "IBtOrder": def parse_pubky_auth_url(auth_url: "str") -> "PubkyAuthDetails": _UniffiConverterString.check_lower(auth_url) - + return _UniffiConverterTypePubkyAuthDetails.lift(_uniffi_rust_call_with_error(_UniffiConverterTypePubkyError,_UniffiLib.uniffi_bitkitcore_fn_func_parse_pubky_auth_url, _UniffiConverterString.lower(auth_url))) async def prepare_legacy_rn_native_segwit_recovery_sweep(mnemonic_phrase: "str",network: "typing.Optional[Network]",electrum_url: "str",destination_address: "str",fee_rate_sats_per_vbyte: "typing.Optional[int]",index_limit: "int",bip39_passphrase: "typing.Optional[str]") -> "LegacyRnCloseRecoverySweepPreview": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterString.check_lower(destination_address) - + _UniffiConverterOptionalUInt32.check_lower(fee_rate_sats_per_vbyte) - + _UniffiConverterUInt32.check_lower(index_limit) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_prepare_legacy_rn_native_segwit_recovery_sweep( _UniffiConverterString.lower(mnemonic_phrase), @@ -19633,7 +19672,7 @@ async def prepare_legacy_rn_native_segwit_recovery_sweep(mnemonic_phrase: "str", _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeLegacyRnCloseRecoverySweepPreview.lift, - + # Error FFI converter _UniffiConverterTypeSweepError, @@ -19641,17 +19680,17 @@ async def prepare_legacy_rn_native_segwit_recovery_sweep(mnemonic_phrase: "str", async def prepare_sweep_transaction(mnemonic_phrase: "str",network: "typing.Optional[Network]",bip39_passphrase: "typing.Optional[str]",electrum_url: "str",destination_address: "str",fee_rate_sats_per_vbyte: "typing.Optional[int]") -> "SweepTransactionPreview": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterString.check_lower(destination_address) - + _UniffiConverterOptionalUInt32.check_lower(fee_rate_sats_per_vbyte) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_prepare_sweep_transaction( _UniffiConverterString.lower(mnemonic_phrase), @@ -19665,7 +19704,7 @@ async def prepare_sweep_transaction(mnemonic_phrase: "str",network: "typing.Opti _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeSweepTransactionPreview.lift, - + # Error FFI converter _UniffiConverterTypeSweepError, @@ -19673,18 +19712,18 @@ async def prepare_sweep_transaction(mnemonic_phrase: "str",network: "typing.Opti def pubky_public_key_from_secret(secret_key_hex: "str") -> "str": _UniffiConverterString.check_lower(secret_key_hex) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypePubkyError,_UniffiLib.uniffi_bitkitcore_fn_func_pubky_public_key_from_secret, _UniffiConverterString.lower(secret_key_hex))) async def pubky_put_with_secret_key(secret_key_hex: "str",path: "str",content: "bytes") -> None: _UniffiConverterString.check_lower(secret_key_hex) - + _UniffiConverterString.check_lower(path) - + _UniffiConverterBytes.check_lower(content) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_pubky_put_with_secret_key( _UniffiConverterString.lower(secret_key_hex), @@ -19695,8 +19734,8 @@ async def pubky_put_with_secret_key(secret_key_hex: "str",path: "str",content: " _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypePubkyError, @@ -19704,9 +19743,9 @@ async def pubky_put_with_secret_key(secret_key_hex: "str",path: "str",content: " async def pubky_session_delete(session_secret: "str",path: "str") -> None: _UniffiConverterString.check_lower(session_secret) - + _UniffiConverterString.check_lower(path) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_pubky_session_delete( _UniffiConverterString.lower(session_secret), @@ -19716,8 +19755,8 @@ async def pubky_session_delete(session_secret: "str",path: "str") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypePubkyError, @@ -19725,9 +19764,9 @@ async def pubky_session_delete(session_secret: "str",path: "str") -> None: async def pubky_session_list(session_secret: "str",dir_path: "str") -> "typing.List[str]": _UniffiConverterString.check_lower(session_secret) - + _UniffiConverterString.check_lower(dir_path) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_pubky_session_list( _UniffiConverterString.lower(session_secret), @@ -19737,7 +19776,7 @@ async def pubky_session_list(session_secret: "str",dir_path: "str") -> "typing.L _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -19745,11 +19784,11 @@ async def pubky_session_list(session_secret: "str",dir_path: "str") -> "typing.L async def pubky_session_put(session_secret: "str",path: "str",content: "bytes") -> None: _UniffiConverterString.check_lower(session_secret) - + _UniffiConverterString.check_lower(path) - + _UniffiConverterBytes.check_lower(content) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_pubky_session_put( _UniffiConverterString.lower(session_secret), @@ -19760,8 +19799,8 @@ async def pubky_session_put(session_secret: "str",path: "str",content: "bytes") _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypePubkyError, @@ -19769,7 +19808,7 @@ async def pubky_session_put(session_secret: "str",path: "str",content: "bytes") async def pubky_sign_in(secret_key_hex: "str") -> "str": _UniffiConverterString.check_lower(secret_key_hex) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_pubky_sign_in( _UniffiConverterString.lower(secret_key_hex)), @@ -19778,7 +19817,7 @@ async def pubky_sign_in(secret_key_hex: "str") -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -19786,11 +19825,11 @@ async def pubky_sign_in(secret_key_hex: "str") -> "str": async def pubky_sign_up(secret_key_hex: "str",homeserver_public_key_z32: "str",signup_code: "typing.Optional[str]") -> "str": _UniffiConverterString.check_lower(secret_key_hex) - + _UniffiConverterString.check_lower(homeserver_public_key_z32) - + _UniffiConverterOptionalString.check_lower(signup_code) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_pubky_sign_up( _UniffiConverterString.lower(secret_key_hex), @@ -19801,7 +19840,7 @@ async def pubky_sign_up(secret_key_hex: "str",homeserver_public_key_z32: "str",s _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -19819,7 +19858,7 @@ async def refresh_active_cjit_entries() -> "typing.List[IcJitEntry]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeIcJitEntry.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19837,7 +19876,7 @@ async def refresh_active_orders() -> "typing.List[IBtOrder]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeIBtOrder.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19845,21 +19884,21 @@ async def refresh_active_orders() -> "typing.List[IBtOrder]": async def register_device(device_token: "str",public_key: "str",features: "typing.List[str]",node_id: "str",iso_timestamp: "str",signature: "str",is_production: "typing.Optional[bool]",custom_url: "typing.Optional[str]") -> "str": _UniffiConverterString.check_lower(device_token) - + _UniffiConverterString.check_lower(public_key) - + _UniffiConverterSequenceString.check_lower(features) - + _UniffiConverterString.check_lower(node_id) - + _UniffiConverterString.check_lower(iso_timestamp) - + _UniffiConverterString.check_lower(signature) - + _UniffiConverterOptionalBool.check_lower(is_production) - + _UniffiConverterOptionalString.check_lower(custom_url) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_register_device( _UniffiConverterString.lower(device_token), @@ -19875,7 +19914,7 @@ async def register_device(device_token: "str",public_key: "str",features: "typin _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19883,11 +19922,11 @@ async def register_device(device_token: "str",public_key: "str",features: "typin async def regtest_close_channel(funding_tx_id: "str",vout: "int",force_close_after_s: "typing.Optional[int]") -> "str": _UniffiConverterString.check_lower(funding_tx_id) - + _UniffiConverterUInt32.check_lower(vout) - + _UniffiConverterOptionalUInt64.check_lower(force_close_after_s) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_regtest_close_channel( _UniffiConverterString.lower(funding_tx_id), @@ -19898,7 +19937,7 @@ async def regtest_close_channel(funding_tx_id: "str",vout: "int",force_close_aft _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19906,9 +19945,9 @@ async def regtest_close_channel(funding_tx_id: "str",vout: "int",force_close_aft async def regtest_deposit(address: "str",amount_sat: "typing.Optional[int]") -> "str": _UniffiConverterString.check_lower(address) - + _UniffiConverterOptionalUInt64.check_lower(amount_sat) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_regtest_deposit( _UniffiConverterString.lower(address), @@ -19918,7 +19957,7 @@ async def regtest_deposit(address: "str",amount_sat: "typing.Optional[int]") -> _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19926,7 +19965,7 @@ async def regtest_deposit(address: "str",amount_sat: "typing.Optional[int]") -> async def regtest_get_payment(payment_id: "str") -> "IBtBolt11Invoice": _UniffiConverterString.check_lower(payment_id) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_regtest_get_payment( _UniffiConverterString.lower(payment_id)), @@ -19935,7 +19974,7 @@ async def regtest_get_payment(payment_id: "str") -> "IBtBolt11Invoice": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeIBtBolt11Invoice.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19943,7 +19982,7 @@ async def regtest_get_payment(payment_id: "str") -> "IBtBolt11Invoice": async def regtest_mine(count: "typing.Optional[int]") -> None: _UniffiConverterOptionalUInt32.check_lower(count) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_regtest_mine( _UniffiConverterOptionalUInt32.lower(count)), @@ -19952,8 +19991,8 @@ async def regtest_mine(count: "typing.Optional[int]") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19961,9 +20000,9 @@ async def regtest_mine(count: "typing.Optional[int]") -> None: async def regtest_pay(invoice: "str",amount_sat: "typing.Optional[int]") -> "str": _UniffiConverterString.check_lower(invoice) - + _UniffiConverterOptionalUInt64.check_lower(amount_sat) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_regtest_pay( _UniffiConverterString.lower(invoice), @@ -19973,7 +20012,7 @@ async def regtest_pay(invoice: "str",amount_sat: "typing.Optional[int]") -> "str _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -19981,18 +20020,18 @@ async def regtest_pay(invoice: "str",amount_sat: "typing.Optional[int]") -> "str def remove_closed_channel_by_id(channel_id: "str") -> "bool": _UniffiConverterString.check_lower(channel_id) - + return _UniffiConverterBool.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_remove_closed_channel_by_id, _UniffiConverterString.lower(channel_id))) def remove_pre_activity_metadata_tags(wallet_id: "str",payment_id: "str",tags: "typing.List[str]") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(payment_id) - + _UniffiConverterSequenceString.check_lower(tags) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_remove_pre_activity_metadata_tags, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(payment_id), @@ -20001,11 +20040,11 @@ def remove_pre_activity_metadata_tags(wallet_id: "str",payment_id: "str",tags: " def remove_tags(wallet_id: "str",activity_id: "str",tags: "typing.List[str]") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(activity_id) - + _UniffiConverterSequenceString.check_lower(tags) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_remove_tags, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(activity_id), @@ -20014,9 +20053,9 @@ def remove_tags(wallet_id: "str",activity_id: "str",tags: "typing.List[str]") -> def reset_pre_activity_metadata_tags(wallet_id: "str",payment_id: "str") -> None: _UniffiConverterString.check_lower(wallet_id) - + _UniffiConverterString.check_lower(payment_id) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_reset_pre_activity_metadata_tags, _UniffiConverterString.lower(wallet_id), _UniffiConverterString.lower(payment_id)) @@ -20024,22 +20063,22 @@ def reset_pre_activity_metadata_tags(wallet_id: "str",payment_id: "str") -> None def resolve_pubky_url(uri: "str") -> "str": _UniffiConverterString.check_lower(uri) - + return _UniffiConverterString.lift(_uniffi_rust_call_with_error(_UniffiConverterTypePubkyError,_UniffiLib.uniffi_bitkitcore_fn_func_resolve_pubky_url, _UniffiConverterString.lower(uri))) async def scan_legacy_rn_native_segwit_recovery_funds(mnemonic_phrase: "str",network: "typing.Optional[Network]",electrum_url: "str",index_limit: "int",bip39_passphrase: "typing.Optional[str]") -> "LegacyRnCloseRecoveryScanResult": _UniffiConverterString.check_lower(mnemonic_phrase) - + _UniffiConverterOptionalTypeNetwork.check_lower(network) - + _UniffiConverterString.check_lower(electrum_url) - + _UniffiConverterUInt32.check_lower(index_limit) - + _UniffiConverterOptionalString.check_lower(bip39_passphrase) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_scan_legacy_rn_native_segwit_recovery_funds( _UniffiConverterString.lower(mnemonic_phrase), @@ -20052,7 +20091,7 @@ async def scan_legacy_rn_native_segwit_recovery_funds(mnemonic_phrase: "str",net _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeLegacyRnCloseRecoveryScanResult.lift, - + # Error FFI converter _UniffiConverterTypeSweepError, @@ -20060,7 +20099,7 @@ async def scan_legacy_rn_native_segwit_recovery_funds(mnemonic_phrase: "str",net async def start_pubky_auth(caps: "str") -> "str": _UniffiConverterString.check_lower(caps) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_start_pubky_auth( _UniffiConverterString.lower(caps)), @@ -20069,7 +20108,7 @@ async def start_pubky_auth(caps: "str") -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypePubkyError, @@ -20077,13 +20116,13 @@ async def start_pubky_auth(caps: "str") -> "str": async def test_notification(device_token: "str",secret_message: "str",notification_type: "typing.Optional[str]",custom_url: "typing.Optional[str]") -> "str": _UniffiConverterString.check_lower(device_token) - + _UniffiConverterString.check_lower(secret_message) - + _UniffiConverterOptionalString.check_lower(notification_type) - + _UniffiConverterOptionalString.check_lower(custom_url) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_test_notification( _UniffiConverterString.lower(device_token), @@ -20095,7 +20134,7 @@ async def test_notification(device_token: "str",secret_message: "str",notificati _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -20107,7 +20146,7 @@ def trezor_account_type_to_script_type(account_type: "AccountType") -> "TrezorSc """ _UniffiConverterTypeAccountType.check_lower(account_type) - + return _UniffiConverterTypeTrezorScriptType.lift(_uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_trezor_account_type_to_script_type, _UniffiConverterTypeAccountType.lower(account_type))) @@ -20121,7 +20160,7 @@ async def trezor_clear_credentials(device_id: "str") -> None: """ _UniffiConverterString.check_lower(device_id) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_clear_credentials( _UniffiConverterString.lower(device_id)), @@ -20130,8 +20169,8 @@ async def trezor_clear_credentials(device_id: "str") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20151,9 +20190,9 @@ async def trezor_connect(device_id: "str",selection: "WalletSelection") -> "Trez """ _UniffiConverterString.check_lower(device_id) - + _UniffiConverterTypeWalletSelection.check_lower(selection) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_connect( _UniffiConverterString.lower(device_id), @@ -20163,7 +20202,7 @@ async def trezor_connect(device_id: "str",selection: "WalletSelection") -> "Trez _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTrezorFeatures.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20181,8 +20220,8 @@ async def trezor_disconnect() -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20194,7 +20233,7 @@ async def trezor_get_address(params: "TrezorGetAddressParams") -> "TrezorAddress """ _UniffiConverterTypeTrezorGetAddressParams.check_lower(params) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_get_address( _UniffiConverterTypeTrezorGetAddressParams.lower(params)), @@ -20203,7 +20242,7 @@ async def trezor_get_address(params: "TrezorGetAddressParams") -> "TrezorAddress _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTrezorAddressResponse.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20221,7 +20260,7 @@ async def trezor_get_connected_device() -> "typing.Optional[TrezorDeviceInfo]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterOptionalTypeTrezorDeviceInfo.lift, - + # Error FFI converter None, @@ -20243,7 +20282,7 @@ async def trezor_get_device_fingerprint() -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20264,7 +20303,7 @@ async def trezor_get_features() -> "typing.Optional[TrezorFeatures]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterOptionalTypeTrezorFeatures.lift, - + # Error FFI converter None, @@ -20277,7 +20316,7 @@ async def trezor_get_public_key(params: "TrezorGetPublicKeyParams") -> "TrezorPu """ _UniffiConverterTypeTrezorGetPublicKeyParams.check_lower(params) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_get_public_key( _UniffiConverterTypeTrezorGetPublicKeyParams.lower(params)), @@ -20286,7 +20325,7 @@ async def trezor_get_public_key(params: "TrezorGetPublicKeyParams") -> "TrezorPu _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTrezorPublicKeyResponse.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20303,7 +20342,7 @@ async def trezor_initialize(credential_path: "typing.Optional[str]") -> None: """ _UniffiConverterOptionalString.check_lower(credential_path) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_initialize( _UniffiConverterOptionalString.lower(credential_path)), @@ -20312,8 +20351,8 @@ async def trezor_initialize(credential_path: "typing.Optional[str]") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20342,7 +20381,7 @@ async def trezor_is_connected() -> "bool": _UniffiLib.ffi_bitkitcore_rust_future_free_i8, # lift function _UniffiConverterBool.lift, - + # Error FFI converter None, @@ -20361,7 +20400,7 @@ async def trezor_is_initialized() -> "bool": _UniffiLib.ffi_bitkitcore_rust_future_free_i8, # lift function _UniffiConverterBool.lift, - + # Error FFI converter None, @@ -20380,7 +20419,29 @@ async def trezor_list_devices() -> "typing.List[TrezorDeviceInfo]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeTrezorDeviceInfo.lift, + + # Error FFI converter +_UniffiConverterTypeTrezorError, + + ) +async def trezor_refresh_features() -> "TrezorFeatures": + + """ + Refresh features from the currently connected Trezor device. + + This performs a single explicit device request and updates the connected + device's cached features. It does not start polling. Returns `NotConnected` + if there is no connected device. + """ + return await _uniffi_rust_call_async( + _UniffiLib.uniffi_bitkitcore_fn_func_trezor_refresh_features(), + _UniffiLib.ffi_bitkitcore_rust_future_poll_rust_buffer, + _UniffiLib.ffi_bitkitcore_rust_future_complete_rust_buffer, + _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, + # lift function + _UniffiConverterTypeTrezorFeatures.lift, + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20401,7 +20462,7 @@ async def trezor_scan() -> "typing.List[TrezorDeviceInfo]": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterSequenceTypeTrezorDeviceInfo.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20416,7 +20477,7 @@ def trezor_set_transport_callback(callback: "TrezorTransportCallback") -> None: """ _UniffiConverterTypeTrezorTransportCallback.check_lower(callback) - + _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_trezor_set_transport_callback, _UniffiConverterTypeTrezorTransportCallback.lower(callback)) @@ -20431,7 +20492,7 @@ def trezor_set_ui_callback(callback: "TrezorUiCallback") -> None: """ _UniffiConverterTypeTrezorUiCallback.check_lower(callback) - + _uniffi_rust_call(_UniffiLib.uniffi_bitkitcore_fn_func_trezor_set_ui_callback, _UniffiConverterTypeTrezorUiCallback.lower(callback)) @@ -20442,7 +20503,7 @@ async def trezor_sign_message(params: "TrezorSignMessageParams") -> "TrezorSigne """ _UniffiConverterTypeTrezorSignMessageParams.check_lower(params) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_sign_message( _UniffiConverterTypeTrezorSignMessageParams.lower(params)), @@ -20451,7 +20512,7 @@ async def trezor_sign_message(params: "TrezorSignMessageParams") -> "TrezorSigne _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTrezorSignedMessageResponse.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20463,7 +20524,7 @@ async def trezor_sign_tx(params: "TrezorSignTxParams") -> "TrezorSignedTx": """ _UniffiConverterTypeTrezorSignTxParams.check_lower(params) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_sign_tx( _UniffiConverterTypeTrezorSignTxParams.lower(params)), @@ -20472,7 +20533,7 @@ async def trezor_sign_tx(params: "TrezorSignTxParams") -> "TrezorSignedTx": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTrezorSignedTx.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20491,9 +20552,9 @@ async def trezor_sign_tx_from_psbt(psbt_base64: "str",network: "typing.Optional[ """ _UniffiConverterString.check_lower(psbt_base64) - + _UniffiConverterOptionalTypeTrezorCoinType.check_lower(network) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_sign_tx_from_psbt( _UniffiConverterString.lower(psbt_base64), @@ -20503,7 +20564,7 @@ async def trezor_sign_tx_from_psbt(psbt_base64: "str",network: "typing.Optional[ _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterTypeTrezorSignedTx.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20515,7 +20576,7 @@ async def trezor_verify_message(params: "TrezorVerifyMessageParams") -> "bool": """ _UniffiConverterTypeTrezorVerifyMessageParams.check_lower(params) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_trezor_verify_message( _UniffiConverterTypeTrezorVerifyMessageParams.lower(params)), @@ -20524,7 +20585,7 @@ async def trezor_verify_message(params: "TrezorVerifyMessageParams") -> "bool": _UniffiLib.ffi_bitkitcore_rust_future_free_i8, # lift function _UniffiConverterBool.lift, - + # Error FFI converter _UniffiConverterTypeTrezorError, @@ -20532,9 +20593,9 @@ async def trezor_verify_message(params: "TrezorVerifyMessageParams") -> "bool": def update_activity(activity_id: "str",activity: "Activity") -> None: _UniffiConverterString.check_lower(activity_id) - + _UniffiConverterTypeActivity.check_lower(activity) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_update_activity, _UniffiConverterString.lower(activity_id), _UniffiConverterTypeActivity.lower(activity)) @@ -20542,7 +20603,7 @@ def update_activity(activity_id: "str",activity: "Activity") -> None: async def update_blocktank_url(new_url: "str") -> None: _UniffiConverterString.check_lower(new_url) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_update_blocktank_url( _UniffiConverterString.lower(new_url)), @@ -20551,8 +20612,8 @@ async def update_blocktank_url(new_url: "str") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -20560,21 +20621,21 @@ async def update_blocktank_url(new_url: "str") -> None: def upsert_activities(activities: "typing.List[Activity]") -> None: _UniffiConverterSequenceTypeActivity.check_lower(activities) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_activities, _UniffiConverterSequenceTypeActivity.lower(activities)) def upsert_activity(activity: "Activity") -> None: _UniffiConverterTypeActivity.check_lower(activity) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_activity, _UniffiConverterTypeActivity.lower(activity)) async def upsert_cjit_entries(entries: "typing.List[IcJitEntry]") -> None: _UniffiConverterSequenceTypeIcJitEntry.check_lower(entries) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_upsert_cjit_entries( _UniffiConverterSequenceTypeIcJitEntry.lower(entries)), @@ -20583,8 +20644,8 @@ async def upsert_cjit_entries(entries: "typing.List[IcJitEntry]") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -20592,21 +20653,21 @@ async def upsert_cjit_entries(entries: "typing.List[IcJitEntry]") -> None: def upsert_closed_channel(channel: "ClosedChannelDetails") -> None: _UniffiConverterTypeClosedChannelDetails.check_lower(channel) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_closed_channel, _UniffiConverterTypeClosedChannelDetails.lower(channel)) def upsert_closed_channels(channels: "typing.List[ClosedChannelDetails]") -> None: _UniffiConverterSequenceTypeClosedChannelDetails.check_lower(channels) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_closed_channels, _UniffiConverterSequenceTypeClosedChannelDetails.lower(channels)) async def upsert_info(info: "IBtInfo") -> None: _UniffiConverterTypeIBtInfo.check_lower(info) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_upsert_info( _UniffiConverterTypeIBtInfo.lower(info)), @@ -20615,8 +20676,8 @@ async def upsert_info(info: "IBtInfo") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -20624,21 +20685,21 @@ async def upsert_info(info: "IBtInfo") -> None: def upsert_lightning_activities(activities: "typing.List[LightningActivity]") -> None: _UniffiConverterSequenceTypeLightningActivity.check_lower(activities) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_lightning_activities, _UniffiConverterSequenceTypeLightningActivity.lower(activities)) def upsert_onchain_activities(activities: "typing.List[OnchainActivity]") -> None: _UniffiConverterSequenceTypeOnchainActivity.check_lower(activities) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_onchain_activities, _UniffiConverterSequenceTypeOnchainActivity.lower(activities)) async def upsert_orders(orders: "typing.List[IBtOrder]") -> None: _UniffiConverterSequenceTypeIBtOrder.check_lower(orders) - + return await _uniffi_rust_call_async( _UniffiLib.uniffi_bitkitcore_fn_func_upsert_orders( _UniffiConverterSequenceTypeIBtOrder.lower(orders)), @@ -20647,8 +20708,8 @@ async def upsert_orders(orders: "typing.List[IBtOrder]") -> None: _UniffiLib.ffi_bitkitcore_rust_future_free_void, # lift function lambda val: None, - - + + # Error FFI converter _UniffiConverterTypeBlocktankError, @@ -20656,35 +20717,35 @@ async def upsert_orders(orders: "typing.List[IBtOrder]") -> None: def upsert_pre_activity_metadata(pre_activity_metadata: "typing.List[PreActivityMetadata]") -> None: _UniffiConverterSequenceTypePreActivityMetadata.check_lower(pre_activity_metadata) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_pre_activity_metadata, _UniffiConverterSequenceTypePreActivityMetadata.lower(pre_activity_metadata)) def upsert_tags(activity_tags: "typing.List[ActivityTags]") -> None: _UniffiConverterSequenceTypeActivityTags.check_lower(activity_tags) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_tags, _UniffiConverterSequenceTypeActivityTags.lower(activity_tags)) def upsert_transaction_details(details_list: "typing.List[TransactionDetails]") -> None: _UniffiConverterSequenceTypeTransactionDetails.check_lower(details_list) - + _uniffi_rust_call_with_error(_UniffiConverterTypeActivityError,_UniffiLib.uniffi_bitkitcore_fn_func_upsert_transaction_details, _UniffiConverterSequenceTypeTransactionDetails.lower(details_list)) def validate_bitcoin_address(address: "str") -> "ValidationResult": _UniffiConverterString.check_lower(address) - + return _UniffiConverterTypeValidationResult.lift(_uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_validate_bitcoin_address, _UniffiConverterString.lower(address))) def validate_mnemonic(mnemonic_phrase: "str") -> None: _UniffiConverterString.check_lower(mnemonic_phrase) - + _uniffi_rust_call_with_error(_UniffiConverterTypeAddressError,_UniffiLib.uniffi_bitkitcore_fn_func_validate_mnemonic, _UniffiConverterString.lower(mnemonic_phrase)) @@ -20701,7 +20762,7 @@ async def wipe_all_databases() -> "str": _UniffiLib.ffi_bitkitcore_rust_future_free_rust_buffer, # lift function _UniffiConverterString.lift, - + # Error FFI converter _UniffiConverterTypeDbError, @@ -20971,6 +21032,7 @@ def wipe_all_transaction_details() -> None: "trezor_is_connected", "trezor_is_initialized", "trezor_list_devices", + "trezor_refresh_features", "trezor_scan", "trezor_set_transport_callback", "trezor_set_ui_callback", diff --git a/bindings/python/bitkitcore/libbitkitcore.dylib b/bindings/python/bitkitcore/libbitkitcore.dylib index c6a1ee1..7b6a5dd 100755 Binary files a/bindings/python/bitkitcore/libbitkitcore.dylib and b/bindings/python/bitkitcore/libbitkitcore.dylib differ diff --git a/bindings/python/setup.py b/bindings/python/setup.py index f371901..22e0b22 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -2,7 +2,7 @@ setup( name="bitkitcore", - version="0.3.0", + version="0.3.1", packages=find_packages(), package_data={ "bitkitcore": ["*.so", "*.dylib", "*.dll"], diff --git a/src/lib.rs b/src/lib.rs index b5eea78..923b9bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2390,6 +2390,23 @@ pub async fn trezor_get_features() -> Option { .unwrap_or(None) } +/// Refresh features from the currently connected Trezor device. +/// +/// This performs a single explicit device request and updates the connected +/// device's cached features. It does not start polling. Returns `NotConnected` +/// if there is no connected device. +#[uniffi::export] +pub async fn trezor_refresh_features() -> Result { + let rt = ensure_runtime(); + rt.spawn(async move { get_trezor_manager().refresh_features().await }) + .await + .unwrap_or_else(|e| { + Err(TrezorError::IoError { + error_details: format!("Runtime error: {}", e), + }) + }) +} + /// Sign a message with the connected Trezor device. #[uniffi::export] pub async fn trezor_sign_message( diff --git a/src/modules/trezor/README.md b/src/modules/trezor/README.md index 01a522a..86a7404 100644 --- a/src/modules/trezor/README.md +++ b/src/modules/trezor/README.md @@ -97,12 +97,21 @@ pub trait TrezorTransportCallback: Send + Sync { pub async fn trezor_initialize(credential_path: Option) -> Result<(), TrezorError>; pub async fn trezor_scan() -> Result, TrezorError>; pub async fn trezor_connect(device_id: String) -> Result; +pub async fn trezor_get_features() -> Option; +pub async fn trezor_refresh_features() -> Result; pub async fn trezor_get_address(params: TrezorGetAddressParams) -> Result; pub async fn trezor_sign_message(params: TrezorSignMessageParams) -> Result; pub async fn trezor_verify_message(params: TrezorVerifyMessageParams) -> Result; pub async fn trezor_disconnect() -> Result<(), TrezorError>; ``` +`trezor_get_features()` returns the cached connect-time features without +touching the device. `trezor_refresh_features()` is an explicit one-shot device +request that refreshes the cache; it does not start polling. Mobile callers can +derive a locked state with `features.pin_protection == Some(true)` and +`features.unlocked == Some(false)`, then show "Unlock your Trezor" and back off +instead of repeatedly reconnecting. + ## Connection Flow ### 1. Initialization diff --git a/src/modules/trezor/errors.rs b/src/modules/trezor/errors.rs index c388cb5..8894bc8 100644 --- a/src/modules/trezor/errors.rs +++ b/src/modules/trezor/errors.rs @@ -16,6 +16,10 @@ pub enum TrezorError { #[error("Device disconnected during operation")] DeviceDisconnected, + /// Device is busy and the caller should back off before retrying + #[error("Device is busy")] + DeviceBusy, + /// Connection error #[error("Connection error: {error_details}")] ConnectionError { error_details: String }, @@ -103,9 +107,7 @@ impl From for TrezorError { TE::Transport(transport_err) => match transport_err { TcTransportError::DeviceNotFound => TrezorError::DeviceNotFound, TcTransportError::DeviceDisconnected => TrezorError::DeviceDisconnected, - TcTransportError::DeviceBusy => TrezorError::ConnectionError { - error_details: "Device is busy".to_string(), - }, + TcTransportError::DeviceBusy => TrezorError::DeviceBusy, TcTransportError::UnableToOpen(msg) => TrezorError::TransportError { error_details: format!("Unable to open device: {}", msg), }, diff --git a/src/modules/trezor/implementation.rs b/src/modules/trezor/implementation.rs index 5d062b4..d381f2d 100644 --- a/src/modules/trezor/implementation.rs +++ b/src/modules/trezor/implementation.rs @@ -928,6 +928,20 @@ impl TrezorManager { .map(|f| TrezorFeatures::from(f.clone())) } + /// Refresh features from the currently connected Trezor device. + /// + /// This is an explicit one-shot device interaction. It does not start any + /// polling or retry loop. THP devices use `GetFeatures` via + /// trezor-connect-rs; V1 devices use the dependency's `Initialize` path, + /// which also refreshes its cached features. + pub async fn refresh_features(&self) -> Result { + let mut connected_device = self.connected_device.lock().await; + let device = connected_device.as_mut().ok_or(TrezorError::NotConnected)?; + + let features = device.initialize().await.map_err(TrezorError::from)?; + Ok(TrezorFeatures::from(features)) + } + /// Get the device's master root fingerprint as an 8-character hex string. /// /// This is a convenience wrapper around `get_public_key()` that returns diff --git a/src/modules/trezor/tests.rs b/src/modules/trezor/tests.rs index a3801b7..0f8acb4 100644 --- a/src/modules/trezor/tests.rs +++ b/src/modules/trezor/tests.rs @@ -33,6 +33,17 @@ mod tests { assert!(matches!(err, TrezorError::DeviceDisconnected)); } + #[test] + fn test_error_conversion_device_busy() { + use trezor_connect_rs::error::TransportError; + use trezor_connect_rs::TrezorError as TcError; + + let tc_err = TcError::Transport(TransportError::DeviceBusy); + let err: TrezorError = tc_err.into(); + + assert!(matches!(err, TrezorError::DeviceBusy)); + } + #[test] fn test_error_conversion_timeout() { use trezor_connect_rs::TrezorError as TcError; @@ -455,6 +466,7 @@ mod tests { minor_version: Some(8), patch_version: Some(0), pin_protection: Some(true), + unlocked: Some(true), passphrase_protection: Some(false), initialized: Some(true), needs_backup: Some(false), @@ -471,11 +483,44 @@ mod tests { assert_eq!(result.minor_version, Some(8)); assert_eq!(result.patch_version, Some(0)); assert_eq!(result.pin_protection, Some(true)); + assert_eq!(result.unlocked, Some(true)); assert_eq!(result.passphrase_protection, Some(false)); assert_eq!(result.initialized, Some(true)); assert_eq!(result.needs_backup, Some(false)); } + #[test] + fn test_features_from_trezor_connect_maps_unlocked_false() { + use trezor_connect_rs::device::Features; + + let tc_features = Features { + pin_protection: Some(true), + unlocked: Some(false), + ..Default::default() + }; + + let result: TrezorFeatures = tc_features.into(); + + assert_eq!(result.pin_protection, Some(true)); + assert_eq!(result.unlocked, Some(false)); + } + + #[test] + fn test_features_from_trezor_connect_maps_unlocked_none() { + use trezor_connect_rs::device::Features; + + let tc_features = Features { + pin_protection: Some(true), + unlocked: None, + ..Default::default() + }; + + let result: TrezorFeatures = tc_features.into(); + + assert_eq!(result.pin_protection, Some(true)); + assert_eq!(result.unlocked, None); + } + // ======================================================================== // Path Validation Tests // ======================================================================== diff --git a/src/modules/trezor/types.rs b/src/modules/trezor/types.rs index 4a9102c..99aa10c 100644 --- a/src/modules/trezor/types.rs +++ b/src/modules/trezor/types.rs @@ -70,6 +70,10 @@ pub struct TrezorFeatures { pub patch_version: Option, /// Whether PIN protection is enabled pub pin_protection: Option, + /// Whether the device is currently unlocked. When PIN protection is enabled + /// and this is `Some(false)`, mobile callers should back off and ask the + /// user to unlock the Trezor instead of repeatedly reconnecting. + pub unlocked: Option, /// Whether passphrase protection is enabled pub passphrase_protection: Option, /// Whether the device is initialized with a seed @@ -96,6 +100,7 @@ impl From for TrezorFeatures { minor_version: f.minor_version, patch_version: f.patch_version, pin_protection: f.pin_protection, + unlocked: f.unlocked, passphrase_protection: f.passphrase_protection, initialized: f.initialized, needs_backup: f.needs_backup,