@@ -1497,6 +1497,16 @@ internal typealias UniffiVTableCallbackInterfaceVssHeaderProviderUniffiByValue =
14971497
14981498
14991499
1500+
1501+
1502+
1503+
1504+
1505+
1506+
1507+
1508+
1509+
15001510
15011511
15021512
@@ -2192,6 +2202,19 @@ internal interface UniffiLib : Library {
21922202 `ptr`: Pointer?,
21932203 uniffiCallStatus: UniffiRustCallStatus,
21942204 ): Unit
2205+ fun uniffi_ldk_node_fn_method_node_add_address_type_to_monitor(
2206+ `ptr`: Pointer?,
2207+ `addressType`: RustBufferByValue,
2208+ `seedBytes`: RustBufferByValue,
2209+ uniffiCallStatus: UniffiRustCallStatus,
2210+ ): Unit
2211+ fun uniffi_ldk_node_fn_method_node_add_address_type_to_monitor_with_mnemonic(
2212+ `ptr`: Pointer?,
2213+ `addressType`: RustBufferByValue,
2214+ `mnemonic`: RustBufferByValue,
2215+ `passphrase`: RustBufferByValue,
2216+ uniffiCallStatus: UniffiRustCallStatus,
2217+ ): Unit
21952218 fun uniffi_ldk_node_fn_method_node_announcement_addresses(
21962219 `ptr`: Pointer?,
21972220 uniffiCallStatus: UniffiRustCallStatus,
@@ -2334,11 +2357,29 @@ internal interface UniffiLib : Library {
23342357 `paymentId`: RustBufferByValue,
23352358 uniffiCallStatus: UniffiRustCallStatus,
23362359 ): RustBufferByValue
2360+ fun uniffi_ldk_node_fn_method_node_remove_address_type_from_monitor(
2361+ `ptr`: Pointer?,
2362+ `addressType`: RustBufferByValue,
2363+ uniffiCallStatus: UniffiRustCallStatus,
2364+ ): Unit
23372365 fun uniffi_ldk_node_fn_method_node_remove_payment(
23382366 `ptr`: Pointer?,
23392367 `paymentId`: RustBufferByValue,
23402368 uniffiCallStatus: UniffiRustCallStatus,
23412369 ): Unit
2370+ fun uniffi_ldk_node_fn_method_node_set_primary_address_type(
2371+ `ptr`: Pointer?,
2372+ `addressType`: RustBufferByValue,
2373+ `seedBytes`: RustBufferByValue,
2374+ uniffiCallStatus: UniffiRustCallStatus,
2375+ ): Unit
2376+ fun uniffi_ldk_node_fn_method_node_set_primary_address_type_with_mnemonic(
2377+ `ptr`: Pointer?,
2378+ `addressType`: RustBufferByValue,
2379+ `mnemonic`: RustBufferByValue,
2380+ `passphrase`: RustBufferByValue,
2381+ uniffiCallStatus: UniffiRustCallStatus,
2382+ ): Unit
23422383 fun uniffi_ldk_node_fn_method_node_sign_message(
23432384 `ptr`: Pointer?,
23442385 `msg`: RustBufferByValue,
@@ -3141,6 +3182,10 @@ internal interface UniffiLib : Library {
31413182 ): Short
31423183 fun uniffi_ldk_node_checksum_method_networkgraph_node(
31433184 ): Short
3185+ fun uniffi_ldk_node_checksum_method_node_add_address_type_to_monitor(
3186+ ): Short
3187+ fun uniffi_ldk_node_checksum_method_node_add_address_type_to_monitor_with_mnemonic(
3188+ ): Short
31443189 fun uniffi_ldk_node_checksum_method_node_announcement_addresses(
31453190 ): Short
31463191 fun uniffi_ldk_node_checksum_method_node_bolt11_payment(
@@ -3201,8 +3246,14 @@ internal interface UniffiLib : Library {
32013246 ): Short
32023247 fun uniffi_ldk_node_checksum_method_node_payment(
32033248 ): Short
3249+ fun uniffi_ldk_node_checksum_method_node_remove_address_type_from_monitor(
3250+ ): Short
32043251 fun uniffi_ldk_node_checksum_method_node_remove_payment(
32053252 ): Short
3253+ fun uniffi_ldk_node_checksum_method_node_set_primary_address_type(
3254+ ): Short
3255+ fun uniffi_ldk_node_checksum_method_node_set_primary_address_type_with_mnemonic(
3256+ ): Short
32063257 fun uniffi_ldk_node_checksum_method_node_sign_message(
32073258 ): Short
32083259 fun uniffi_ldk_node_checksum_method_node_splice_in(
@@ -3654,6 +3705,12 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
36543705 if (lib.uniffi_ldk_node_checksum_method_networkgraph_node() != 48925.toShort()) {
36553706 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
36563707 }
3708+ if (lib.uniffi_ldk_node_checksum_method_node_add_address_type_to_monitor() != 14706.toShort()) {
3709+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3710+ }
3711+ if (lib.uniffi_ldk_node_checksum_method_node_add_address_type_to_monitor_with_mnemonic() != 4517.toShort()) {
3712+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3713+ }
36573714 if (lib.uniffi_ldk_node_checksum_method_node_announcement_addresses() != 61426.toShort()) {
36583715 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
36593716 }
@@ -3744,9 +3801,18 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
37443801 if (lib.uniffi_ldk_node_checksum_method_node_payment() != 60296.toShort()) {
37453802 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
37463803 }
3804+ if (lib.uniffi_ldk_node_checksum_method_node_remove_address_type_from_monitor() != 37081.toShort()) {
3805+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3806+ }
37473807 if (lib.uniffi_ldk_node_checksum_method_node_remove_payment() != 47952.toShort()) {
37483808 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
37493809 }
3810+ if (lib.uniffi_ldk_node_checksum_method_node_set_primary_address_type() != 11005.toShort()) {
3811+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3812+ }
3813+ if (lib.uniffi_ldk_node_checksum_method_node_set_primary_address_type_with_mnemonic() != 50783.toShort()) {
3814+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3815+ }
37503816 if (lib.uniffi_ldk_node_checksum_method_node_sign_message() != 49319.toShort()) {
37513817 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
37523818 }
@@ -6887,6 +6953,35 @@ open class Node: Disposable, NodeInterface {
68876953 }
68886954
68896955
6956+ @Throws(NodeException::class)
6957+ override fun `addAddressTypeToMonitor`(`addressType`: AddressType, `seedBytes`: List<kotlin.UByte>) {
6958+ callWithPointer {
6959+ uniffiRustCallWithError(NodeExceptionErrorHandler) { uniffiRustCallStatus ->
6960+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_node_add_address_type_to_monitor(
6961+ it,
6962+ FfiConverterTypeAddressType.lower(`addressType`),
6963+ FfiConverterSequenceUByte.lower(`seedBytes`),
6964+ uniffiRustCallStatus,
6965+ )
6966+ }
6967+ }
6968+ }
6969+
6970+ @Throws(NodeException::class)
6971+ override fun `addAddressTypeToMonitorWithMnemonic`(`addressType`: AddressType, `mnemonic`: Mnemonic, `passphrase`: kotlin.String?) {
6972+ callWithPointer {
6973+ uniffiRustCallWithError(NodeExceptionErrorHandler) { uniffiRustCallStatus ->
6974+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_node_add_address_type_to_monitor_with_mnemonic(
6975+ it,
6976+ FfiConverterTypeAddressType.lower(`addressType`),
6977+ FfiConverterTypeMnemonic.lower(`mnemonic`),
6978+ FfiConverterOptionalString.lower(`passphrase`),
6979+ uniffiRustCallStatus,
6980+ )
6981+ }
6982+ }
6983+ }
6984+
68906985 override fun `announcementAddresses`(): List<SocketAddress>? {
68916986 return FfiConverterOptionalSequenceTypeSocketAddress.lift(callWithPointer {
68926987 uniffiRustCall { uniffiRustCallStatus ->
@@ -7257,6 +7352,19 @@ open class Node: Disposable, NodeInterface {
72577352 })
72587353 }
72597354
7355+ @Throws(NodeException::class)
7356+ override fun `removeAddressTypeFromMonitor`(`addressType`: AddressType) {
7357+ callWithPointer {
7358+ uniffiRustCallWithError(NodeExceptionErrorHandler) { uniffiRustCallStatus ->
7359+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_node_remove_address_type_from_monitor(
7360+ it,
7361+ FfiConverterTypeAddressType.lower(`addressType`),
7362+ uniffiRustCallStatus,
7363+ )
7364+ }
7365+ }
7366+ }
7367+
72607368 @Throws(NodeException::class)
72617369 override fun `removePayment`(`paymentId`: PaymentId) {
72627370 callWithPointer {
@@ -7270,6 +7378,35 @@ open class Node: Disposable, NodeInterface {
72707378 }
72717379 }
72727380
7381+ @Throws(NodeException::class)
7382+ override fun `setPrimaryAddressType`(`addressType`: AddressType, `seedBytes`: List<kotlin.UByte>) {
7383+ callWithPointer {
7384+ uniffiRustCallWithError(NodeExceptionErrorHandler) { uniffiRustCallStatus ->
7385+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_node_set_primary_address_type(
7386+ it,
7387+ FfiConverterTypeAddressType.lower(`addressType`),
7388+ FfiConverterSequenceUByte.lower(`seedBytes`),
7389+ uniffiRustCallStatus,
7390+ )
7391+ }
7392+ }
7393+ }
7394+
7395+ @Throws(NodeException::class)
7396+ override fun `setPrimaryAddressTypeWithMnemonic`(`addressType`: AddressType, `mnemonic`: Mnemonic, `passphrase`: kotlin.String?) {
7397+ callWithPointer {
7398+ uniffiRustCallWithError(NodeExceptionErrorHandler) { uniffiRustCallStatus ->
7399+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_node_set_primary_address_type_with_mnemonic(
7400+ it,
7401+ FfiConverterTypeAddressType.lower(`addressType`),
7402+ FfiConverterTypeMnemonic.lower(`mnemonic`),
7403+ FfiConverterOptionalString.lower(`passphrase`),
7404+ uniffiRustCallStatus,
7405+ )
7406+ }
7407+ }
7408+ }
7409+
72737410 override fun `signMessage`(`msg`: List<kotlin.UByte>): kotlin.String {
72747411 return FfiConverterString.lift(callWithPointer {
72757412 uniffiRustCall { uniffiRustCallStatus ->
@@ -11319,6 +11456,10 @@ object FfiConverterTypeNodeError : FfiConverterRustBuffer<NodeException> {
1131911456 61 -> NodeException.CoinSelectionFailed(FfiConverterString.read(buf))
1132011457 62 -> NodeException.InvalidMnemonic(FfiConverterString.read(buf))
1132111458 63 -> NodeException.BackgroundSyncNotEnabled(FfiConverterString.read(buf))
11459+ 64 -> NodeException.AddressTypeAlreadyMonitored(FfiConverterString.read(buf))
11460+ 65 -> NodeException.AddressTypeIsPrimary(FfiConverterString.read(buf))
11461+ 66 -> NodeException.AddressTypeNotMonitored(FfiConverterString.read(buf))
11462+ 67 -> NodeException.InvalidSeedBytes(FfiConverterString.read(buf))
1132211463 else -> throw RuntimeException("invalid error enum value, something is very wrong!!")
1132311464 }
1132411465 }
@@ -11581,6 +11722,22 @@ object FfiConverterTypeNodeError : FfiConverterRustBuffer<NodeException> {
1158111722 buf.putInt(63)
1158211723 Unit
1158311724 }
11725+ is NodeException.AddressTypeAlreadyMonitored -> {
11726+ buf.putInt(64)
11727+ Unit
11728+ }
11729+ is NodeException.AddressTypeIsPrimary -> {
11730+ buf.putInt(65)
11731+ Unit
11732+ }
11733+ is NodeException.AddressTypeNotMonitored -> {
11734+ buf.putInt(66)
11735+ Unit
11736+ }
11737+ is NodeException.InvalidSeedBytes -> {
11738+ buf.putInt(67)
11739+ Unit
11740+ }
1158411741 }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
1158511742 }
1158611743}
0 commit comments