@@ -1517,6 +1517,8 @@ internal typealias UniffiVTableCallbackInterfaceVssHeaderProviderUniffiByValue =
15171517
15181518
15191519
1520+
1521+
15201522
15211523
15221524
@@ -1971,6 +1973,11 @@ internal interface UniffiLib : Library {
19711973 `headerProvider`: Pointer?,
19721974 uniffiCallStatus: UniffiRustCallStatus,
19731975 ): Pointer?
1976+ fun uniffi_ldk_node_fn_method_builder_set_accept_stale_channel_monitors(
1977+ `ptr`: Pointer?,
1978+ `accept`: Byte,
1979+ uniffiCallStatus: UniffiRustCallStatus,
1980+ ): Unit
19741981 fun uniffi_ldk_node_fn_method_builder_set_address_type(
19751982 `ptr`: Pointer?,
19761983 `addressType`: RustBufferByValue,
@@ -3123,6 +3130,8 @@ internal interface UniffiLib : Library {
31233130 ): Short
31243131 fun uniffi_ldk_node_checksum_method_builder_build_with_vss_store_and_header_provider(
31253132 ): Short
3133+ fun uniffi_ldk_node_checksum_method_builder_set_accept_stale_channel_monitors(
3134+ ): Short
31263135 fun uniffi_ldk_node_checksum_method_builder_set_address_type(
31273136 ): Short
31283137 fun uniffi_ldk_node_checksum_method_builder_set_address_types_to_monitor(
@@ -3614,6 +3623,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
36143623 if (lib.uniffi_ldk_node_checksum_method_builder_build_with_vss_store_and_header_provider() != 9090.toShort()) {
36153624 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
36163625 }
3626+ if (lib.uniffi_ldk_node_checksum_method_builder_set_accept_stale_channel_monitors() != 25727.toShort()) {
3627+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3628+ }
36173629 if (lib.uniffi_ldk_node_checksum_method_builder_set_address_type() != 647.toShort()) {
36183630 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
36193631 }
@@ -5780,6 +5792,18 @@ open class Builder: Disposable, BuilderInterface {
57805792 })
57815793 }
57825794
5795+ override fun `setAcceptStaleChannelMonitors`(`accept`: kotlin.Boolean) {
5796+ callWithPointer {
5797+ uniffiRustCall { uniffiRustCallStatus ->
5798+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_builder_set_accept_stale_channel_monitors(
5799+ it,
5800+ FfiConverterBoolean.lower(`accept`),
5801+ uniffiRustCallStatus,
5802+ )
5803+ }
5804+ }
5805+ }
5806+
57835807 override fun `setAddressType`(`addressType`: AddressType) {
57845808 callWithPointer {
57855809 uniffiRustCall { uniffiRustCallStatus ->
@@ -10290,13 +10314,14 @@ object FfiConverterTypeBuildError : FfiConverterRustBuffer<BuildException> {
1029010314 7 -> BuildException.InvalidNodeAlias(FfiConverterString.read(buf))
1029110315 8 -> BuildException.RuntimeSetupFailed(FfiConverterString.read(buf))
1029210316 9 -> BuildException.ReadFailed(FfiConverterString.read(buf))
10293- 10 -> BuildException.WriteFailed(FfiConverterString.read(buf))
10294- 11 -> BuildException.StoragePathAccessFailed(FfiConverterString.read(buf))
10295- 12 -> BuildException.KvStoreSetupFailed(FfiConverterString.read(buf))
10296- 13 -> BuildException.WalletSetupFailed(FfiConverterString.read(buf))
10297- 14 -> BuildException.LoggerSetupFailed(FfiConverterString.read(buf))
10298- 15 -> BuildException.NetworkMismatch(FfiConverterString.read(buf))
10299- 16 -> BuildException.AsyncPaymentsConfigMismatch(FfiConverterString.read(buf))
10317+ 10 -> BuildException.DangerousValue(FfiConverterString.read(buf))
10318+ 11 -> BuildException.WriteFailed(FfiConverterString.read(buf))
10319+ 12 -> BuildException.StoragePathAccessFailed(FfiConverterString.read(buf))
10320+ 13 -> BuildException.KvStoreSetupFailed(FfiConverterString.read(buf))
10321+ 14 -> BuildException.WalletSetupFailed(FfiConverterString.read(buf))
10322+ 15 -> BuildException.LoggerSetupFailed(FfiConverterString.read(buf))
10323+ 16 -> BuildException.NetworkMismatch(FfiConverterString.read(buf))
10324+ 17 -> BuildException.AsyncPaymentsConfigMismatch(FfiConverterString.read(buf))
1030010325 else -> throw RuntimeException("invalid error enum value, something is very wrong!!")
1030110326 }
1030210327 }
@@ -10343,34 +10368,38 @@ object FfiConverterTypeBuildError : FfiConverterRustBuffer<BuildException> {
1034310368 buf.putInt(9)
1034410369 Unit
1034510370 }
10346- is BuildException.WriteFailed -> {
10371+ is BuildException.DangerousValue -> {
1034710372 buf.putInt(10)
1034810373 Unit
1034910374 }
10350- is BuildException.StoragePathAccessFailed -> {
10375+ is BuildException.WriteFailed -> {
1035110376 buf.putInt(11)
1035210377 Unit
1035310378 }
10354- is BuildException.KvStoreSetupFailed -> {
10379+ is BuildException.StoragePathAccessFailed -> {
1035510380 buf.putInt(12)
1035610381 Unit
1035710382 }
10358- is BuildException.WalletSetupFailed -> {
10383+ is BuildException.KvStoreSetupFailed -> {
1035910384 buf.putInt(13)
1036010385 Unit
1036110386 }
10362- is BuildException.LoggerSetupFailed -> {
10387+ is BuildException.WalletSetupFailed -> {
1036310388 buf.putInt(14)
1036410389 Unit
1036510390 }
10366- is BuildException.NetworkMismatch -> {
10391+ is BuildException.LoggerSetupFailed -> {
1036710392 buf.putInt(15)
1036810393 Unit
1036910394 }
10370- is BuildException.AsyncPaymentsConfigMismatch -> {
10395+ is BuildException.NetworkMismatch -> {
1037110396 buf.putInt(16)
1037210397 Unit
1037310398 }
10399+ is BuildException.AsyncPaymentsConfigMismatch -> {
10400+ buf.putInt(17)
10401+ Unit
10402+ }
1037410403 }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
1037510404 }
1037610405}
0 commit comments