diff --git a/Cargo.lock b/Cargo.lock index 1b75d94..8b0a72c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -475,7 +475,7 @@ dependencies = [ [[package]] name = "bitkitcore" -version = "0.1.64" +version = "0.1.66" dependencies = [ "android_logger", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index f35ca48..745cfc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitkitcore" -version = "0.1.64" +version = "0.1.66" edition = "2021" [lib] diff --git a/Package.swift b/Package.swift index 350d303..246d7a9 100644 --- a/Package.swift +++ b/Package.swift @@ -3,8 +3,8 @@ import PackageDescription -let tag = "v0.1.64" -let checksum = "96b4fb9920ddf7515fb3623b257cc961483b60389af830b321d9ce513726b422" +let tag = "v0.1.66" +let checksum = "cc68047c13418f127114afb776faa460573d9d08f3571371f5ed6e94ed30c029" 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 63e176f..62cba1f 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.1.64 +version=0.1.66 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 5578bf1..c5c97f0 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 0ce9f2b..acfc3e4 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 fdc3417..8a0afeb 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 9da01b0..b9acdd9 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 d27f66d..03fb477 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( @@ -898,6 +898,9 @@ internal typealias UniffiForeignFutureStructVoidUniffiByValue = UniffiForeignFut internal interface UniffiForeignFutureCompleteVoid: com.sun.jna.Callback { public fun callback(`callbackData`: Long,`result`: UniffiForeignFutureStructVoidUniffiByValue,) } +internal interface UniffiCallbackInterfaceEventListenerMethod0: com.sun.jna.Callback { + public fun callback(`uniffiHandle`: Long,`watcherId`: RustBufferByValue,`event`: RustBufferByValue,`uniffiOutReturn`: Pointer,uniffiCallStatus: UniffiRustCallStatus,) +} internal interface UniffiCallbackInterfaceTrezorTransportCallbackMethod0: com.sun.jna.Callback { public fun callback(`uniffiHandle`: Long,`uniffiOutReturn`: RustBuffer,uniffiCallStatus: UniffiRustCallStatus,) } @@ -937,6 +940,37 @@ internal interface UniffiCallbackInterfaceTrezorUiCallbackMethod0: com.sun.jna.C internal interface UniffiCallbackInterfaceTrezorUiCallbackMethod1: com.sun.jna.Callback { public fun callback(`uniffiHandle`: Long,`onDevice`: Byte,`uniffiOutReturn`: RustBuffer,uniffiCallStatus: UniffiRustCallStatus,) } +@Structure.FieldOrder("onEvent", "uniffiFree") +internal open class UniffiVTableCallbackInterfaceEventListenerStruct( + @JvmField public var `onEvent`: UniffiCallbackInterfaceEventListenerMethod0?, + @JvmField public var `uniffiFree`: UniffiCallbackInterfaceFree?, +) : com.sun.jna.Structure() { + internal constructor(): this( + + `onEvent` = null, + + `uniffiFree` = null, + + ) + + internal class UniffiByValue( + `onEvent`: UniffiCallbackInterfaceEventListenerMethod0?, + `uniffiFree`: UniffiCallbackInterfaceFree?, + ): UniffiVTableCallbackInterfaceEventListener(`onEvent`,`uniffiFree`,), Structure.ByValue +} + +internal typealias UniffiVTableCallbackInterfaceEventListener = UniffiVTableCallbackInterfaceEventListenerStruct + +internal fun UniffiVTableCallbackInterfaceEventListener.uniffiSetValue(other: UniffiVTableCallbackInterfaceEventListener) { + `onEvent` = other.`onEvent` + `uniffiFree` = other.`uniffiFree` +} +internal fun UniffiVTableCallbackInterfaceEventListener.uniffiSetValue(other: UniffiVTableCallbackInterfaceEventListenerUniffiByValue) { + `onEvent` = other.`onEvent` + `uniffiFree` = other.`uniffiFree` +} + +internal typealias UniffiVTableCallbackInterfaceEventListenerUniffiByValue = UniffiVTableCallbackInterfaceEventListenerStruct.UniffiByValue @Structure.FieldOrder("enumerateDevices", "openDevice", "closeDevice", "readChunk", "writeChunk", "getChunkSize", "callMessage", "getPairingCode", "saveThpCredential", "loadThpCredential", "logDebug", "uniffiFree") internal open class UniffiVTableCallbackInterfaceTrezorTransportCallbackStruct( @JvmField public var `enumerateDevices`: UniffiCallbackInterfaceTrezorTransportCallbackMethod0?, @@ -953,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( @@ -1035,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( @@ -1423,6 +1457,17 @@ internal typealias UniffiVTableCallbackInterfaceTrezorUiCallbackUniffiByValue = + + + + + + + + + + + @@ -1693,6 +1738,15 @@ internal object IntegrityCheckingUniffiLib : Library { if (uniffi_bitkitcore_checksum_func_onchain_get_transaction_history() != 4452.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } + if (uniffi_bitkitcore_checksum_func_onchain_start_watcher() != 58125.toShort()) { + throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") + } + if (uniffi_bitkitcore_checksum_func_onchain_stop_all_watchers() != 28485.toShort()) { + throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") + } + if (uniffi_bitkitcore_checksum_func_onchain_stop_watcher() != 2426.toShort()) { + throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") + } if (uniffi_bitkitcore_checksum_func_open_channel() != 21402.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } @@ -1894,6 +1948,9 @@ internal object IntegrityCheckingUniffiLib : Library { if (uniffi_bitkitcore_checksum_func_wipe_all_transaction_details() != 65339.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } + if (uniffi_bitkitcore_checksum_method_eventlistener_on_event() != 35531.toShort()) { + throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") + } if (uniffi_bitkitcore_checksum_method_trezortransportcallback_enumerate_devices() != 18766.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } @@ -2156,6 +2213,15 @@ internal object IntegrityCheckingUniffiLib : Library { external fun uniffi_bitkitcore_checksum_func_onchain_get_transaction_history( ): Short @JvmStatic + external fun uniffi_bitkitcore_checksum_func_onchain_start_watcher( + ): Short + @JvmStatic + external fun uniffi_bitkitcore_checksum_func_onchain_stop_all_watchers( + ): Short + @JvmStatic + external fun uniffi_bitkitcore_checksum_func_onchain_stop_watcher( + ): Short + @JvmStatic external fun uniffi_bitkitcore_checksum_func_open_channel( ): Short @JvmStatic @@ -2357,6 +2423,9 @@ internal object IntegrityCheckingUniffiLib : Library { external fun uniffi_bitkitcore_checksum_func_wipe_all_transaction_details( ): Short @JvmStatic + external fun uniffi_bitkitcore_checksum_method_eventlistener_on_event( + ): Short + @JvmStatic external fun uniffi_bitkitcore_checksum_method_trezortransportcallback_enumerate_devices( ): Short @JvmStatic @@ -2409,6 +2478,7 @@ internal object UniffiLib : Library { Native.register(UniffiLib::class.java, findLibraryName("bitkitcore")) // No need to check the contract version and checksums, since // we already did that with `IntegrityCheckingUniffiLib` above. + uniffiCallbackInterfaceEventListener.register(this) uniffiCallbackInterfaceTrezorTransportCallback.register(this) uniffiCallbackInterfaceTrezorUiCallback.register(this) } @@ -2417,6 +2487,27 @@ internal object UniffiLib : Library { UniffiCleaner.create() } @JvmStatic + external fun uniffi_bitkitcore_fn_clone_eventlistener( + `ptr`: Pointer?, + uniffiCallStatus: UniffiRustCallStatus, + ): Pointer? + @JvmStatic + external fun uniffi_bitkitcore_fn_free_eventlistener( + `ptr`: Pointer?, + uniffiCallStatus: UniffiRustCallStatus, + ): Unit + @JvmStatic + external fun uniffi_bitkitcore_fn_init_callback_vtable_eventlistener( + `vtable`: UniffiVTableCallbackInterfaceEventListener, + ): Unit + @JvmStatic + external fun uniffi_bitkitcore_fn_method_eventlistener_on_event( + `ptr`: Pointer?, + `watcherId`: RustBufferByValue, + `event`: RustBufferByValue, + uniffiCallStatus: UniffiRustCallStatus, + ): Unit + @JvmStatic external fun uniffi_bitkitcore_fn_clone_trezortransportcallback( `ptr`: Pointer?, uniffiCallStatus: UniffiRustCallStatus, @@ -2927,6 +3018,20 @@ internal object UniffiLib : Library { `scriptType`: RustBufferByValue, ): Long @JvmStatic + external fun uniffi_bitkitcore_fn_func_onchain_start_watcher( + `params`: RustBufferByValue, + `listener`: Pointer?, + ): Long + @JvmStatic + external fun uniffi_bitkitcore_fn_func_onchain_stop_all_watchers( + uniffiCallStatus: UniffiRustCallStatus, + ): Unit + @JvmStatic + external fun uniffi_bitkitcore_fn_func_onchain_stop_watcher( + `watcherId`: RustBufferByValue, + uniffiCallStatus: UniffiRustCallStatus, + ): Unit + @JvmStatic external fun uniffi_bitkitcore_fn_func_open_channel( `orderId`: RustBufferByValue, `connectionString`: RustBufferByValue, @@ -3829,6 +3934,206 @@ public object FfiConverterByteArray: FfiConverterRustBuffer { +/** + * Callback interface for receiving watcher events. + * + * Implement this trait in Swift/Kotlin/Python to receive typed notifications + * from xpub watchers. + */ +public open class EventListenerImpl: Disposable, EventListener { + + public constructor(pointer: Pointer) { + this.pointer = pointer + this.cleanable = UniffiLib.CLEANER.register(this, UniffiPointerDestroyer(pointer)) + } + + /** + * This constructor can be used to instantiate a fake object. Only used for tests. Any + * attempt to actually use an object constructed this way will fail as there is no + * connected Rust object. + */ + public constructor(noPointer: NoPointer) { + this.pointer = null + this.cleanable = UniffiLib.CLEANER.register(this, UniffiPointerDestroyer(null)) + } + + protected val pointer: Pointer? + protected val cleanable: UniffiCleaner.Cleanable + + private val wasDestroyed: kotlinx.atomicfu.AtomicBoolean = kotlinx.atomicfu.atomic(false) + private val callCounter: kotlinx.atomicfu.AtomicLong = kotlinx.atomicfu.atomic(1L) + + private val lock = kotlinx.atomicfu.locks.ReentrantLock() + + private fun synchronized(block: () -> T): T { + lock.lock() + try { + return block() + } finally { + lock.unlock() + } + } + + override fun destroy() { + // Only allow a single call to this method. + // TODO: maybe we should log a warning if called more than once? + if (this.wasDestroyed.compareAndSet(false, true)) { + // This decrement always matches the initial count of 1 given at creation time. + if (this.callCounter.decrementAndGet() == 0L) { + cleanable.clean() + } + } + } + + override fun close() { + synchronized { this.destroy() } + } + + internal inline fun callWithPointer(block: (ptr: Pointer) -> R): R { + // Check and increment the call counter, to keep the object alive. + // This needs a compare-and-set retry loop in case of concurrent updates. + do { + val c = this.callCounter.value + if (c == 0L) { + throw IllegalStateException("${this::class::simpleName} object has already been destroyed") + } + if (c == Long.MAX_VALUE) { + throw IllegalStateException("${this::class::simpleName} call counter would overflow") + } + } while (! this.callCounter.compareAndSet(c, c + 1L)) + // Now we can safely do the method call without the pointer being freed concurrently. + try { + return block(this.uniffiClonePointer()) + } finally { + // This decrement always matches the increment we performed above. + if (this.callCounter.decrementAndGet() == 0L) { + cleanable.clean() + } + } + } + + // Use a static inner class instead of a closure so as not to accidentally + // capture `this` as part of the cleanable's action. + private class UniffiPointerDestroyer(private val pointer: Pointer?) : Disposable { + override fun destroy() { + pointer?.let { ptr -> + uniffiRustCall { status -> + UniffiLib.uniffi_bitkitcore_fn_free_eventlistener(ptr, status) + } + } + } + } + + public fun uniffiClonePointer(): Pointer { + return uniffiRustCall { status -> + UniffiLib.uniffi_bitkitcore_fn_clone_eventlistener(pointer!!, status) + }!! + } + + + /** + * Called when a watcher event occurs. + * + * `watcher_id` identifies which watcher produced the event. + * `event` is a typed enum — no JSON parsing needed. + */ + public override fun `onEvent`(`watcherId`: kotlin.String, `event`: WatcherEvent) { + callWithPointer { + uniffiRustCall { uniffiRustCallStatus -> + UniffiLib.uniffi_bitkitcore_fn_method_eventlistener_on_event( + it, + FfiConverterString.lower(`watcherId`), + FfiConverterTypeWatcherEvent.lower(`event`), + uniffiRustCallStatus, + ) + } + } + } + + + + + + + + public companion object + +} + + + + + +public object FfiConverterTypeEventListener: FfiConverter { + internal val handleMap = UniffiHandleMap() + + override fun lower(value: EventListener): Pointer { + return handleMap.insert(value).toPointer() + } + + override fun lift(value: Pointer): EventListener { + return EventListenerImpl(value) + } + + override fun read(buf: ByteBuffer): EventListener { + // The Rust code always writes pointers as 8 bytes, and will + // fail to compile if they don't fit. + return lift(buf.getLong().toPointer()) + } + + override fun allocationSize(value: EventListener): ULong = 8UL + + override fun write(value: EventListener, buf: ByteBuffer) { + // The Rust code always expects pointers written as 8 bytes, + // and will fail to compile if they don't fit. + buf.putLong(lower(value).toLong()) + } +} + + +// Put the implementation in an object so we don't pollute the top-level namespace +internal object uniffiCallbackInterfaceEventListener { + internal object `onEvent`: UniffiCallbackInterfaceEventListenerMethod0 { + override fun callback ( + `uniffiHandle`: Long, + `watcherId`: RustBufferByValue, + `event`: RustBufferByValue, + `uniffiOutReturn`: Pointer, + uniffiCallStatus: UniffiRustCallStatus, + ) { + val uniffiObj = FfiConverterTypeEventListener.handleMap.get(uniffiHandle) + val makeCall = { -> + uniffiObj.`onEvent`( + FfiConverterString.lift(`watcherId`), + FfiConverterTypeWatcherEvent.lift(`event`), + ) + } + val writeReturn = { _: Unit -> + @Suppress("UNUSED_EXPRESSION") + uniffiOutReturn + Unit + } + uniffiTraitInterfaceCall(uniffiCallStatus, makeCall, writeReturn) + } + } + internal object uniffiFree: UniffiCallbackInterfaceFree { + override fun callback(handle: Long) { + FfiConverterTypeEventListener.handleMap.remove(handle) + } + } + + internal val vtable = UniffiVTableCallbackInterfaceEventListener( + `onEvent`, + uniffiFree, + ) + + internal fun register(lib: UniffiLib) { + lib.uniffi_bitkitcore_fn_init_callback_vtable_eventlistener(vtable) + } +} + + + /** * Callback interface for native Trezor transport operations * @@ -3941,7 +4246,7 @@ public open class TrezorTransportCallbackImpl: Disposable, TrezorTransportCallba }!! } - + /** * Enumerate all connected Trezor devices */ @@ -4156,13 +4461,13 @@ public open class TrezorTransportCallbackImpl: Disposable, TrezorTransportCallba } + + - - - - + + public companion object - + } @@ -4539,7 +4844,7 @@ public open class TrezorUiCallbackImpl: Disposable, TrezorUiCallback { }!! } - + /** * Called when the device requests a PIN. * @@ -4580,13 +4885,13 @@ public open class TrezorUiCallbackImpl: Disposable, TrezorUiCallback { } + + - - - - + + public companion object - + } @@ -7898,6 +8203,40 @@ public object FfiConverterTypeWalletParams: FfiConverterRustBuffer +public object FfiConverterTypeWatcherParams: FfiConverterRustBuffer { + override fun read(buf: ByteBuffer): WatcherParams { + return WatcherParams( + FfiConverterString.read(buf), + FfiConverterString.read(buf), + FfiConverterString.read(buf), + FfiConverterOptionalTypeNetwork.read(buf), + FfiConverterOptionalTypeAccountType.read(buf), + FfiConverterOptionalUInt.read(buf), + ) + } + + override fun allocationSize(value: WatcherParams): ULong = ( + FfiConverterString.allocationSize(value.`watcherId`) + + FfiConverterString.allocationSize(value.`extendedKey`) + + FfiConverterString.allocationSize(value.`electrumUrl`) + + FfiConverterOptionalTypeNetwork.allocationSize(value.`network`) + + FfiConverterOptionalTypeAccountType.allocationSize(value.`accountType`) + + FfiConverterOptionalUInt.allocationSize(value.`gapLimit`) + ) + + override fun write(value: WatcherParams, buf: ByteBuffer) { + FfiConverterString.write(value.`watcherId`, buf) + FfiConverterString.write(value.`extendedKey`, buf) + FfiConverterString.write(value.`electrumUrl`, buf) + FfiConverterOptionalTypeNetwork.write(value.`network`, buf) + FfiConverterOptionalTypeAccountType.write(value.`accountType`, buf) + FfiConverterOptionalUInt.write(value.`gapLimit`, buf) + } +} + + + + public object AccountInfoExceptionErrorHandler : UniffiRustCallStatusErrorHandler { override fun lift(errorBuf: RustBufferByValue): AccountInfoException = FfiConverterTypeAccountInfoError.lift(errorBuf) } @@ -7932,6 +8271,9 @@ public object FfiConverterTypeAccountInfoError : FfiConverterRustBuffer AccountInfoException.TransactionNotFound( FfiConverterString.read(buf), ) + 10 -> AccountInfoException.WatcherException( + FfiConverterString.read(buf), + ) else -> throw RuntimeException("invalid error enum value, something is very wrong!!") } } @@ -7983,6 +8325,11 @@ public object FfiConverterTypeAccountInfoError : FfiConverterRustBuffer ( + // Add the size for the Int that specifies the variant plus the size needed for all fields + 4UL + + FfiConverterString.allocationSize(value.`errorDetails`) + ) } } @@ -8033,6 +8380,11 @@ public object FfiConverterTypeAccountInfoError : FfiConverterRustBuffer { + buf.putInt(10) + FfiConverterString.write(value.`errorDetails`, buf) + Unit + } }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ } } } @@ -10178,6 +10530,94 @@ public object FfiConverterTypeWalletSelection : FfiConverterRustBuffer{ + override fun read(buf: ByteBuffer): WatcherEvent { + return when(buf.getInt()) { + 1 -> WatcherEvent.TransactionsChanged( + FfiConverterSequenceTypeHistoryTransaction.read(buf), + FfiConverterTypeWalletBalance.read(buf), + FfiConverterUInt.read(buf), + FfiConverterUInt.read(buf), + FfiConverterTypeAccountType.read(buf), + ) + 2 -> WatcherEvent.Error( + FfiConverterString.read(buf), + ) + 3 -> WatcherEvent.Disconnected( + FfiConverterString.read(buf), + ) + 4 -> WatcherEvent.Reconnected + else -> throw RuntimeException("invalid enum value, something is very wrong!!") + } + } + + override fun allocationSize(value: WatcherEvent): ULong = when(value) { + is WatcherEvent.TransactionsChanged -> { + // Add the size for the Int that specifies the variant plus the size needed for all fields + ( + 4UL + + FfiConverterSequenceTypeHistoryTransaction.allocationSize(value.`transactions`) + + FfiConverterTypeWalletBalance.allocationSize(value.`balance`) + + FfiConverterUInt.allocationSize(value.`txCount`) + + FfiConverterUInt.allocationSize(value.`blockHeight`) + + FfiConverterTypeAccountType.allocationSize(value.`accountType`) + ) + } + is WatcherEvent.Error -> { + // Add the size for the Int that specifies the variant plus the size needed for all fields + ( + 4UL + + FfiConverterString.allocationSize(value.`message`) + ) + } + is WatcherEvent.Disconnected -> { + // Add the size for the Int that specifies the variant plus the size needed for all fields + ( + 4UL + + FfiConverterString.allocationSize(value.`message`) + ) + } + is WatcherEvent.Reconnected -> { + // Add the size for the Int that specifies the variant plus the size needed for all fields + ( + 4UL + ) + } + } + + override fun write(value: WatcherEvent, buf: ByteBuffer) { + when(value) { + is WatcherEvent.TransactionsChanged -> { + buf.putInt(1) + FfiConverterSequenceTypeHistoryTransaction.write(value.`transactions`, buf) + FfiConverterTypeWalletBalance.write(value.`balance`, buf) + FfiConverterUInt.write(value.`txCount`, buf) + FfiConverterUInt.write(value.`blockHeight`, buf) + FfiConverterTypeAccountType.write(value.`accountType`, buf) + Unit + } + is WatcherEvent.Error -> { + buf.putInt(2) + FfiConverterString.write(value.`message`, buf) + Unit + } + is WatcherEvent.Disconnected -> { + buf.putInt(3) + FfiConverterString.write(value.`message`, buf) + Unit + } + is WatcherEvent.Reconnected -> { + buf.putInt(4) + Unit + } + }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ } + } +} + + + + + public object FfiConverterTypeWordCount: FfiConverterRustBuffer { override fun read(buf: ByteBuffer): WordCount = try { WordCount.entries[buf.getInt() - 1] @@ -12455,7 +12895,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, ) @@ -12472,7 +12912,7 @@ public suspend fun `blocktankRemoveAllCjitEntries`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -12489,7 +12929,7 @@ public suspend fun `blocktankRemoveAllOrders`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -12506,7 +12946,7 @@ public suspend fun `blocktankWipeAll`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -12553,7 +12993,7 @@ public suspend fun `cancelPubkyAuth`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter PubkyExceptionErrorHandler, ) @@ -13457,6 +13897,54 @@ public suspend fun `onchainGetTransactionHistory`(`extendedKey`: kotlin.String, ) } +/** + * Start monitoring an xpub for transaction activity via Electrum subscriptions. + * + * Each watcher receives its own listener — no global registration needed. + */ +@Throws(AccountInfoException::class, kotlin.coroutines.cancellation.CancellationException::class) +public suspend fun `onchainStartWatcher`(`params`: WatcherParams, `listener`: EventListener) { + return uniffiRustCallAsync( + UniffiLib.uniffi_bitkitcore_fn_func_onchain_start_watcher( + FfiConverterTypeWatcherParams.lower(`params`), + FfiConverterTypeEventListener.lower(`listener`), + ), + { future, callback, continuation -> UniffiLib.ffi_bitkitcore_rust_future_poll_void(future, callback, continuation) }, + { future, continuation -> UniffiLib.ffi_bitkitcore_rust_future_complete_void(future, continuation) }, + { future -> UniffiLib.ffi_bitkitcore_rust_future_free_void(future) }, + { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, + // lift function + { Unit }, + + // Error FFI converter + AccountInfoExceptionErrorHandler, + ) +} + +/** + * Stop all active xpub watchers. + */ +public fun `onchainStopAllWatchers`() { + uniffiRustCall { uniffiRustCallStatus -> + UniffiLib.uniffi_bitkitcore_fn_func_onchain_stop_all_watchers( + uniffiRustCallStatus, + ) + } +} + +/** + * Stop a specific xpub watcher by ID. + */ +@Throws(AccountInfoException::class) +public fun `onchainStopWatcher`(`watcherId`: kotlin.String) { + uniffiRustCallWithError(AccountInfoExceptionErrorHandler) { uniffiRustCallStatus -> + UniffiLib.uniffi_bitkitcore_fn_func_onchain_stop_watcher( + FfiConverterString.lower(`watcherId`), + uniffiRustCallStatus, + ) + } +} + @Throws(BlocktankException::class, kotlin.coroutines.cancellation.CancellationException::class) public suspend fun `openChannel`(`orderId`: kotlin.String, `connectionString`: kotlin.String): IBtOrder { return uniffiRustCallAsync( @@ -13554,7 +14042,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, ) @@ -13573,7 +14061,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, ) @@ -13611,7 +14099,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, ) @@ -13781,7 +14269,7 @@ public suspend fun `regtestMine`(`count`: kotlin.UInt?) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -13945,7 +14433,7 @@ public suspend fun `trezorClearCredentials`(`deviceId`: kotlin.String) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter TrezorExceptionErrorHandler, ) @@ -13994,7 +14482,7 @@ public suspend fun `trezorDisconnect`() { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter TrezorExceptionErrorHandler, ) @@ -14121,7 +14609,7 @@ public suspend fun `trezorInitialize`(`credentialPath`: kotlin.String?) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter TrezorExceptionErrorHandler, ) @@ -14360,7 +14848,7 @@ public suspend fun `updateBlocktankUrl`(`newUrl`: kotlin.String) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -14398,7 +14886,7 @@ public suspend fun `upsertCjitEntries`(`entries`: List) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -14436,7 +14924,7 @@ public suspend fun `upsertInfo`(`info`: IBtInfo) { { future -> UniffiLib.ffi_bitkitcore_rust_future_cancel_void(future) }, // lift function { Unit }, - + // Error FFI converter BlocktankExceptionErrorHandler, ) @@ -14474,7 +14962,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 2bab934..7f80bb1 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 @@ -112,6 +112,28 @@ public object NoPointer + +/** + * Callback interface for receiving watcher events. + * + * Implement this trait in Swift/Kotlin/Python to receive typed notifications + * from xpub watchers. + */ +public interface EventListener { + + /** + * Called when a watcher event occurs. + * + * `watcher_id` identifies which watcher produced the event. + * `event` is a typed enum — no JSON parsing needed. + */ + public fun `onEvent`(`watcherId`: kotlin.String, `event`: WatcherEvent) + + public companion object +} + + + /** * Callback interface for native Trezor transport operations @@ -136,37 +158,37 @@ public object NoPointer * 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. * @@ -183,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. * @@ -196,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. * @@ -210,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. * @@ -223,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. * @@ -236,7 +258,7 @@ public interface TrezorTransportCallback { * * `message` - Human-readable debug message */ public fun `logDebug`(`tag`: kotlin.String, `message`: kotlin.String) - + public companion object } @@ -250,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. * @@ -258,7 +280,7 @@ public interface TrezorUiCallback { * Return empty string to cancel. */ public fun `onPinRequest`(): kotlin.String - + /** * Called when the device requests a passphrase. * @@ -270,7 +292,7 @@ public interface TrezorUiCallback { * `OnDevice` (defer entry to the Trezor), or `Cancel`. */ public fun `onPassphraseRequest`(`onDevice`: kotlin.Boolean): PassphraseResponse - + public companion object } @@ -285,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 */ @@ -308,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 */ @@ -339,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 */ @@ -384,7 +406,7 @@ public data class AccountUtxo ( @kotlinx.serialization.Serializable public data class ActivityTags ( - val `activityId`: kotlin.String, + val `activityId`: kotlin.String, val `tags`: List ) { public companion object @@ -400,11 +422,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`) */ @@ -417,9 +439,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 @@ -429,10 +451,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 @@ -442,19 +464,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 @@ -470,11 +492,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 */ @@ -493,15 +515,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) */ @@ -514,7 +536,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 @@ -524,18 +546,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 @@ -545,8 +567,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 @@ -565,8 +587,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 @@ -576,7 +598,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 @@ -589,11 +611,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 */ @@ -624,42 +646,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) */ @@ -672,7 +694,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 @@ -682,9 +704,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 @@ -694,13 +716,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 @@ -710,9 +732,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 @@ -722,7 +744,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 @@ -732,9 +754,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 @@ -744,10 +766,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 @@ -757,7 +779,7 @@ public data class IBtInfo ( @kotlinx.serialization.Serializable public data class IBtInfoOnchain ( - val `network`: BitcoinNetworkEnum, + val `network`: BitcoinNetworkEnum, val `feeRates`: FeeRates ) { public companion object @@ -767,13 +789,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 @@ -783,8 +805,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 @@ -794,13 +816,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 @@ -810,9 +832,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 @@ -822,28 +844,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 @@ -853,12 +875,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 @@ -868,23 +890,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 @@ -894,9 +916,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 @@ -906,15 +928,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 @@ -924,16 +946,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 @@ -943,14 +965,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 @@ -960,13 +982,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 @@ -976,8 +998,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 @@ -987,27 +1009,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 @@ -1017,25 +1039,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 @@ -1045,9 +1067,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 @@ -1057,12 +1079,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 @@ -1075,7 +1097,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. */ @@ -1091,31 +1113,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. */ @@ -1128,18 +1150,18 @@ public data class LegacyRnCloseRecoverySweepPreview ( @kotlinx.serialization.Serializable public data class LightningActivity ( - 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 `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 @@ -1149,14 +1171,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 { @@ -1198,8 +1220,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 @@ -1209,9 +1231,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 @@ -1221,9 +1243,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 @@ -1233,13 +1255,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 { @@ -1279,12 +1301,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 @@ -1300,19 +1322,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) */ @@ -1325,10 +1347,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 @@ -1338,25 +1360,25 @@ public data class OnChainInvoice ( @kotlinx.serialization.Serializable public data class OnchainActivity ( - 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 `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 @@ -1366,15 +1388,15 @@ public data class OnchainActivity ( @kotlinx.serialization.Serializable public data class PreActivityMetadata ( - 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 `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 @@ -1399,19 +1421,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. */ @@ -1424,10 +1446,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 @@ -1437,7 +1459,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 @@ -1453,19 +1475,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 */ @@ -1481,15 +1503,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 */ @@ -1505,27 +1527,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) */ @@ -1541,31 +1563,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 */ @@ -1584,63 +1606,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 */ @@ -1659,7 +1681,7 @@ public data class TransactionDetails ( /** * The transaction ID. */ - val `txId`: kotlin.String, + val `txId`: kotlin.String, /** * The net amount in this transaction (in satoshis). * @@ -1668,11 +1690,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. */ @@ -1691,19 +1713,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 */ @@ -1722,7 +1744,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") */ @@ -1741,15 +1763,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) */ @@ -1787,27 +1809,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 */ @@ -1826,47 +1848,47 @@ 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 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. @@ -1886,15 +1908,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) */ @@ -1913,11 +1935,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 */ @@ -1936,19 +1958,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 */ @@ -1967,15 +1989,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 */ @@ -1994,7 +2016,7 @@ public data class TrezorPrevTxOutput ( /** * Amount in satoshis */ - val `amount`: kotlin.ULong, + val `amount`: kotlin.ULong, /** * Script pubkey (hex encoded) */ @@ -2013,27 +2035,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) */ @@ -2052,11 +2074,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) */ @@ -2075,23 +2097,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) */ @@ -2110,7 +2132,7 @@ public data class TrezorSignedMessageResponse ( /** * Bitcoin address that signed the message */ - val `address`: kotlin.String, + val `address`: kotlin.String, /** * Signature (base64 encoded) */ @@ -2129,11 +2151,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) */ @@ -2152,11 +2174,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) */ @@ -2192,7 +2214,7 @@ public data class TrezorTransportWriteResult ( /** * Whether the operation succeeded */ - val `success`: kotlin.Boolean, + val `success`: kotlin.Boolean, /** * Error message (empty on success) */ @@ -2211,31 +2233,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 */ @@ -2254,27 +2276,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 */ @@ -2293,15 +2315,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) */ @@ -2320,19 +2342,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) */ @@ -2351,15 +2373,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 */ @@ -2378,19 +2400,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. */ @@ -2409,19 +2431,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. */ @@ -2434,8 +2456,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 @@ -2451,23 +2473,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) */ @@ -2486,19 +2508,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) */ @@ -2509,13 +2531,48 @@ public data class WalletParams ( +/** + * Parameters for starting an xpub transaction watcher. + */ +@kotlinx.serialization.Serializable +public data class WatcherParams ( + /** + * Caller-supplied identifier for this watcher. + */ + val `watcherId`: kotlin.String, + /** + * Extended public key (xpub/ypub/zpub/tpub/upub/vpub). + */ + val `extendedKey`: kotlin.String, + /** + * Electrum server URL (e.g. "ssl://electrum.example.com:50002"). + */ + val `electrumUrl`: kotlin.String, + /** + * Bitcoin network override (auto-detected from key prefix if None). + */ + val `network`: Network?, + /** + * Account type override (auto-detected from key prefix if None). + */ + val `accountType`: AccountType?, + /** + * Number of unused addresses to monitor beyond the last used (default 20). + */ + val `gapLimit`: kotlin.UInt? +) { + public companion object +} + + + /** * 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 */ @@ -2525,7 +2582,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * The provided address is invalid */ @@ -2535,7 +2592,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Electrum connection or query failed */ @@ -2545,7 +2602,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * BDK wallet creation or operation error */ @@ -2555,7 +2612,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Wallet sync with Electrum failed */ @@ -2565,7 +2622,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * The key type/prefix is not recognized */ @@ -2575,7 +2632,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Network mismatch between key prefix and specified network */ @@ -2585,7 +2642,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Invalid transaction ID provided */ @@ -2595,7 +2652,7 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * A valid transaction ID was not found in the wallet */ @@ -2605,7 +2662,17 @@ public sealed class AccountInfoException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + + /** + * Watcher lifecycle or subscription error + */ + public class WatcherException( + public val `errorDetails`: kotlin.String, + ) : AccountInfoException() { + override val message: String + get() = "errorDetails=${ `errorDetails` }" + } + } @@ -2619,7 +2686,7 @@ public sealed class AccountInfoException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class AccountType { - + /** * BIP44 legacy (P2PKH) — xpub/tpub prefix */ @@ -2656,7 +2723,7 @@ public sealed class Activity { val v1: LightningActivity, ) : Activity() { } - + } @@ -2666,56 +2733,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` }" } - + } @@ -2724,7 +2791,7 @@ public sealed class ActivityException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class ActivityFilter { - + ALL, LIGHTNING, ONCHAIN; @@ -2739,7 +2806,7 @@ public enum class ActivityFilter { @kotlinx.serialization.Serializable public enum class ActivityType { - + ONCHAIN, LIGHTNING; public companion object @@ -2752,43 +2819,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() = "" } - + } @@ -2797,7 +2864,7 @@ public sealed class AddressException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class AddressType { - + P2PKH, P2SH, P2WPKH, @@ -2815,7 +2882,7 @@ public enum class AddressType { @kotlinx.serialization.Serializable public enum class BitcoinNetworkEnum { - + MAINNET, TESTNET, SIGNET, @@ -2830,70 +2897,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, @@ -2901,28 +2968,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` }" } - + } @@ -2930,35 +2997,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` }" } - + } @@ -2967,7 +3034,7 @@ public sealed class BroadcastException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class BtBolt11InvoiceState { - + PENDING, HOLDING, PAID, @@ -2983,7 +3050,7 @@ public enum class BtBolt11InvoiceState { @kotlinx.serialization.Serializable public enum class BtChannelOrderErrorType { - + WRONG_ORDER_STATE, PEER_NOT_REACHABLE, CHANNEL_REJECTED_BY_DESTINATION, @@ -3000,7 +3067,7 @@ public enum class BtChannelOrderErrorType { @kotlinx.serialization.Serializable public enum class BtOpenChannelState { - + OPENING, OPEN, CLOSED; @@ -3015,7 +3082,7 @@ public enum class BtOpenChannelState { @kotlinx.serialization.Serializable public enum class BtOrderState { - + CREATED, EXPIRED, OPEN, @@ -3031,7 +3098,7 @@ public enum class BtOrderState { @kotlinx.serialization.Serializable public enum class BtOrderState2 { - + CREATED, EXPIRED, EXECUTED, @@ -3047,7 +3114,7 @@ public enum class BtOrderState2 { @kotlinx.serialization.Serializable public enum class BtPaymentState { - + CREATED, PARTIALLY_PAID, PAID, @@ -3064,7 +3131,7 @@ public enum class BtPaymentState { @kotlinx.serialization.Serializable public enum class BtPaymentState2 { - + CREATED, PAID, REFUNDED, @@ -3081,7 +3148,7 @@ public enum class BtPaymentState2 { @kotlinx.serialization.Serializable public enum class CJitStateEnum { - + CREATED, COMPLETED, EXPIRED, @@ -3100,7 +3167,7 @@ public enum class CJitStateEnum { @kotlinx.serialization.Serializable public enum class CoinSelection { - + /** * Branch-and-bound (default). Minimizes change by searching for exact matches. */ @@ -3126,7 +3193,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 @@ -3135,7 +3202,7 @@ public sealed class ComposeOutput { val `amountSats`: kotlin.ULong, ) : ComposeOutput() { } - + /** * Send all remaining funds (after fees) to an address */@kotlinx.serialization.Serializable @@ -3143,7 +3210,7 @@ public sealed class ComposeOutput { val `address`: kotlin.String, ) : ComposeOutput() { } - + /** * OP_RETURN data output (hex-encoded payload) */@kotlinx.serialization.Serializable @@ -3151,7 +3218,7 @@ public sealed class ComposeOutput { val `dataHex`: kotlin.String, ) : ComposeOutput() { } - + } @@ -3164,7 +3231,7 @@ public sealed class ComposeOutput { */ @kotlinx.serialization.Serializable public sealed class ComposeResult { - + /** * Successfully built a signable PSBT */@kotlinx.serialization.Serializable @@ -3189,7 +3256,7 @@ public sealed class ComposeResult { val `totalSpent`: kotlin.ULong, ) : ComposeResult() { } - + /** * Composition failed (e.g. insufficient funds) */@kotlinx.serialization.Serializable @@ -3197,7 +3264,7 @@ public sealed class ComposeResult { val `error`: kotlin.String, ) : ComposeResult() { } - + } @@ -3207,28 +3274,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` }" } - + } @@ -3236,25 +3303,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, @@ -3263,56 +3330,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` }" } - + } @@ -3320,31 +3387,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, @@ -3353,20 +3420,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() = "" } - + } @@ -3375,7 +3442,7 @@ public sealed class LnurlException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class ManualRefundStateEnum { - + CREATED, APPROVED, REJECTED, @@ -3391,7 +3458,7 @@ public enum class ManualRefundStateEnum { @kotlinx.serialization.Serializable public enum class Network { - + /** * Mainnet Bitcoin. */ @@ -3423,7 +3490,7 @@ public enum class Network { @kotlinx.serialization.Serializable public enum class NetworkType { - + BITCOIN, TESTNET, REGTEST, @@ -3438,21 +3505,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 @@ -3460,14 +3527,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() + + } @@ -3478,7 +3545,7 @@ public sealed class PassphraseResponse { @kotlinx.serialization.Serializable public enum class PaymentState { - + PENDING, SUCCEEDED, FAILED; @@ -3493,7 +3560,7 @@ public enum class PaymentState { @kotlinx.serialization.Serializable public enum class PaymentType { - + SENT, RECEIVED; public companion object @@ -3510,7 +3577,7 @@ public enum class PaymentType { @kotlinx.serialization.Serializable public enum class PubkyAuthKind { - + SIGNIN, SIGNUP; public companion object @@ -3523,68 +3590,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` }" } - + } @@ -3644,7 +3711,7 @@ public sealed class Scanner { val `amount`: kotlin.ULong, ) : Scanner() { } - + } @@ -3655,7 +3722,7 @@ public sealed class Scanner { @kotlinx.serialization.Serializable public enum class SortDirection { - + ASC, DESC; public companion object @@ -3668,26 +3735,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() = "" } - + } @@ -3699,7 +3766,7 @@ public sealed class SweepException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class TrezorCoinType { - + /** * Bitcoin mainnet */ @@ -3729,7 +3796,7 @@ public enum class TrezorCoinType { * Trezor-related errors exposed via FFI. */ public sealed class TrezorException: kotlin.Exception() { - + /** * Transport layer error (USB/Bluetooth communication) */ @@ -3739,7 +3806,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * No Trezor device found */ @@ -3748,7 +3815,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Device disconnected during operation */ @@ -3757,7 +3824,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Connection error */ @@ -3767,7 +3834,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Protocol error (encoding/decoding) */ @@ -3777,7 +3844,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Pairing required for Bluetooth connection */ @@ -3786,7 +3853,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Pairing failed */ @@ -3796,7 +3863,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * PIN is required */ @@ -3805,7 +3872,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * PIN entry cancelled */ @@ -3814,7 +3881,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Invalid PIN entered */ @@ -3823,7 +3890,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Passphrase is required */ @@ -3832,7 +3899,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Passphrase entry cancelled */ @@ -3841,7 +3908,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Action cancelled by user on device */ @@ -3850,7 +3917,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Operation timed out */ @@ -3859,7 +3926,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Invalid derivation path */ @@ -3869,7 +3936,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Device returned an error */ @@ -3879,7 +3946,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * Trezor manager not initialized */ @@ -3888,7 +3955,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * No device connected */ @@ -3897,7 +3964,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "" } - + /** * Session error */ @@ -3907,7 +3974,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + /** * IO error */ @@ -3917,7 +3984,7 @@ public sealed class TrezorException: kotlin.Exception() { override val message: String get() = "errorDetails=${ `errorDetails` }" } - + } @@ -3929,7 +3996,7 @@ public sealed class TrezorException: kotlin.Exception() { @kotlinx.serialization.Serializable public enum class TrezorScriptType { - + /** * P2PKH (legacy) */ @@ -3968,7 +4035,7 @@ public enum class TrezorScriptType { @kotlinx.serialization.Serializable public enum class TrezorTransportType { - + /** * USB connection */ @@ -3991,7 +4058,7 @@ public enum class TrezorTransportType { @kotlinx.serialization.Serializable public enum class TxDirection { - + /** * Wallet sent funds to an external address */ @@ -4023,14 +4090,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 @@ -4038,14 +4105,62 @@ 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() + + +} + + + + +/** + * Events emitted by the onchain xpub watcher. + */ +@kotlinx.serialization.Serializable +public sealed class WatcherEvent { + + /** + * Transaction activity changed — contains full updated state. + */@kotlinx.serialization.Serializable + public data class TransactionsChanged( + val `transactions`: List, + val `balance`: WalletBalance, + val `txCount`: kotlin.UInt, + val `blockHeight`: kotlin.UInt, + val `accountType`: AccountType, + ) : WatcherEvent() { + } + + /** + * An error occurred in the watcher loop. + */@kotlinx.serialization.Serializable + public data class Error( + val `message`: kotlin.String, + ) : WatcherEvent() { + } + + /** + * Connection to the Electrum server was lost. + */@kotlinx.serialization.Serializable + public data class Disconnected( + val `message`: kotlin.String, + ) : WatcherEvent() { + } + + /** + * Connection to the Electrum server was restored. + */ + @kotlinx.serialization.Serializable + public data object Reconnected : WatcherEvent() + + } @@ -4056,7 +4171,7 @@ public sealed class WalletSelection { @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 f623d4e..817bc81 100644 Binary files a/bindings/ios/BitkitCore.xcframework.zip and b/bindings/ios/BitkitCore.xcframework.zip differ 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 b445fda..adc6b27 100644 --- a/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/Headers/bitkitcoreFFI.h +++ b/bindings/ios/BitkitCore.xcframework/ios-arm64-simulator/Headers/bitkitcoreFFI.h @@ -250,97 +250,112 @@ typedef struct UniffiForeignFutureStructVoid { typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid ); +#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, + 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 ); +#endif +#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_EVENT_LISTENER +#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_EVENT_LISTENER +typedef struct UniffiVTableCallbackInterfaceEventListener { + UniffiCallbackInterfaceEventListenerMethod0 _Nonnull onEvent; + UniffiCallbackInterfaceFree _Nonnull uniffiFree; +} UniffiVTableCallbackInterfaceEventListener; + #endif #ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK #define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK @@ -368,6 +383,26 @@ typedef struct UniffiVTableCallbackInterfaceTrezorUiCallback { UniffiCallbackInterfaceFree _Nonnull uniffiFree; } UniffiVTableCallbackInterfaceTrezorUiCallback; +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_EVENTLISTENER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_EVENTLISTENER +void*_Nonnull uniffi_bitkitcore_fn_clone_eventlistener(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FREE_EVENTLISTENER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FREE_EVENTLISTENER +void uniffi_bitkitcore_fn_free_eventlistener(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_INIT_CALLBACK_VTABLE_EVENTLISTENER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_INIT_CALLBACK_VTABLE_EVENTLISTENER +void uniffi_bitkitcore_fn_init_callback_vtable_eventlistener(const UniffiVTableCallbackInterfaceEventListener* _Nonnull vtable +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_METHOD_EVENTLISTENER_ON_EVENT +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_METHOD_EVENTLISTENER_ON_EVENT +void uniffi_bitkitcore_fn_method_eventlistener_on_event(void*_Nonnull ptr, RustBuffer watcher_id, RustBuffer event, RustCallStatus *_Nonnull out_status +); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_TREZORTRANSPORTCALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_TREZORTRANSPORTCALLBACK @@ -467,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 @@ -493,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 @@ -521,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 @@ -532,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 @@ -663,7 +698,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_activity_by_tx_id(RustBuffer tx_id, Rus #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 @@ -674,19 +709,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 @@ -697,7 +732,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 @@ -840,6 +875,22 @@ uint64_t uniffi_bitkitcore_fn_func_onchain_get_transaction_detail(RustBuffer ext uint64_t uniffi_bitkitcore_fn_func_onchain_get_transaction_history(RustBuffer extended_key, RustBuffer electrum_url, RustBuffer network, RustBuffer script_type ); #endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_START_WATCHER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_START_WATCHER +uint64_t uniffi_bitkitcore_fn_func_onchain_start_watcher(RustBuffer params, void*_Nonnull listener +); +#endif +#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 +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_WATCHER +void uniffi_bitkitcore_fn_func_onchain_stop_watcher(RustBuffer watcher_id, RustCallStatus *_Nonnull out_status +); +#endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_OPEN_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_OPEN_CHANNEL uint64_t uniffi_bitkitcore_fn_func_open_channel(RustBuffer order_id, RustBuffer connection_string @@ -898,13 +949,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 @@ -995,7 +1046,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 @@ -1006,19 +1057,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 @@ -1034,31 +1085,31 @@ 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_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 @@ -1174,19 +1225,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 @@ -1472,925 +1523,949 @@ 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_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_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_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 e7fe1aa..58a5438 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 b445fda..adc6b27 100644 --- a/bindings/ios/BitkitCore.xcframework/ios-arm64/Headers/bitkitcoreFFI.h +++ b/bindings/ios/BitkitCore.xcframework/ios-arm64/Headers/bitkitcoreFFI.h @@ -250,97 +250,112 @@ typedef struct UniffiForeignFutureStructVoid { typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid ); +#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, + 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 ); +#endif +#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_EVENT_LISTENER +#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_EVENT_LISTENER +typedef struct UniffiVTableCallbackInterfaceEventListener { + UniffiCallbackInterfaceEventListenerMethod0 _Nonnull onEvent; + UniffiCallbackInterfaceFree _Nonnull uniffiFree; +} UniffiVTableCallbackInterfaceEventListener; + #endif #ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK #define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_TREZOR_TRANSPORT_CALLBACK @@ -368,6 +383,26 @@ typedef struct UniffiVTableCallbackInterfaceTrezorUiCallback { UniffiCallbackInterfaceFree _Nonnull uniffiFree; } UniffiVTableCallbackInterfaceTrezorUiCallback; +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_EVENTLISTENER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_EVENTLISTENER +void*_Nonnull uniffi_bitkitcore_fn_clone_eventlistener(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FREE_EVENTLISTENER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FREE_EVENTLISTENER +void uniffi_bitkitcore_fn_free_eventlistener(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_INIT_CALLBACK_VTABLE_EVENTLISTENER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_INIT_CALLBACK_VTABLE_EVENTLISTENER +void uniffi_bitkitcore_fn_init_callback_vtable_eventlistener(const UniffiVTableCallbackInterfaceEventListener* _Nonnull vtable +); +#endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_METHOD_EVENTLISTENER_ON_EVENT +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_METHOD_EVENTLISTENER_ON_EVENT +void uniffi_bitkitcore_fn_method_eventlistener_on_event(void*_Nonnull ptr, RustBuffer watcher_id, RustBuffer event, RustCallStatus *_Nonnull out_status +); #endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_TREZORTRANSPORTCALLBACK #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_CLONE_TREZORTRANSPORTCALLBACK @@ -467,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 @@ -493,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 @@ -521,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 @@ -532,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 @@ -663,7 +698,7 @@ RustBuffer uniffi_bitkitcore_fn_func_get_activity_by_tx_id(RustBuffer tx_id, Rus #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 @@ -674,19 +709,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 @@ -697,7 +732,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 @@ -840,6 +875,22 @@ uint64_t uniffi_bitkitcore_fn_func_onchain_get_transaction_detail(RustBuffer ext uint64_t uniffi_bitkitcore_fn_func_onchain_get_transaction_history(RustBuffer extended_key, RustBuffer electrum_url, RustBuffer network, RustBuffer script_type ); #endif +#ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_START_WATCHER +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_START_WATCHER +uint64_t uniffi_bitkitcore_fn_func_onchain_start_watcher(RustBuffer params, void*_Nonnull listener +); +#endif +#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 +#define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_ONCHAIN_STOP_WATCHER +void uniffi_bitkitcore_fn_func_onchain_stop_watcher(RustBuffer watcher_id, RustCallStatus *_Nonnull out_status +); +#endif #ifndef UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_OPEN_CHANNEL #define UNIFFI_FFIDEF_UNIFFI_BITKITCORE_FN_FUNC_OPEN_CHANNEL uint64_t uniffi_bitkitcore_fn_func_open_channel(RustBuffer order_id, RustBuffer connection_string @@ -898,13 +949,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 @@ -995,7 +1046,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 @@ -1006,19 +1057,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 @@ -1034,31 +1085,31 @@ 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_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 @@ -1174,19 +1225,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 @@ -1472,925 +1523,949 @@ 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_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_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_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_CREDEN{"code":"deadline_exceeded","msg":"operation timed out"}