Skip to content

Commit cd33be3

Browse files
committed
bindings
1 parent 5e0b636 commit cd33be3

15 files changed

Lines changed: 504 additions & 437 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 0.7.0-rc.31 (Synonym Fork)
1+
# 0.7.0-rc.34 (Synonym Fork)
22

33
## Bug Fixes
44

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exclude = ["bindings/uniffi-bindgen"]
44

55
[package]
66
name = "ldk-node"
7-
version = "0.7.0-rc.31"
7+
version = "0.7.0-rc.34"
88
authors = ["Elias Rohrer <dev@tnull.de>"]
99
homepage = "https://lightningdevkit.org/"
1010
license = "MIT OR Apache-2.0"

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let tag = "v0.7.0-rc.31"
7-
let checksum = "aa189d355dc048664652832747f9236eddd97cdf78eb1659d7def06eae72b9b4"
6+
let tag = "v0.7.0-rc.34"
7+
let checksum = "9dc82b297b67ebe60d39d2d0d79881aa8d2defdc55c4203af07839099cc72518"
88
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"
99

1010
let package = Package(

bindgen.sh

100644100755
File mode changed.

bindings/kotlin/ldk-node-android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ android.useAndroidX=true
33
android.enableJetifier=true
44
kotlin.code.style=official
55
group=com.synonym
6-
version=0.7.0-rc.31
6+
version=0.7.0-rc.34

bindings/kotlin/ldk-node-android/lib/src/main/kotlin/org/lightningdevkit/ldknode/ldk_node.android.kt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ->

bindings/kotlin/ldk-node-android/lib/src/main/kotlin/org/lightningdevkit/ldknode/ldk_node.common.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ interface BuilderInterface {
299299
@Throws(BuildException::class)
300300
fun `buildWithVssStoreAndHeaderProvider`(`vssUrl`: kotlin.String, `storeId`: kotlin.String, `headerProvider`: VssHeaderProvider): Node
301301

302+
fun `setAcceptStaleChannelMonitors`(`accept`: kotlin.Boolean)
303+
302304
fun `setAddressType`(`addressType`: AddressType)
303305

304306
fun `setAddressTypesToMonitor`(`addressTypesToMonitor`: List<AddressType>)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536m
22
kotlin.code.style=official
33
group=com.synonym
4-
version=0.7.0-rc.31
4+
version=0.7.0-rc.34

bindings/kotlin/ldk-node-jvm/lib/src/main/kotlin/org/lightningdevkit/ldknode/ldk_node.common.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ interface BuilderInterface {
299299
@Throws(BuildException::class)
300300
fun `buildWithVssStoreAndHeaderProvider`(`vssUrl`: kotlin.String, `storeId`: kotlin.String, `headerProvider`: VssHeaderProvider): Node
301301

302+
fun `setAcceptStaleChannelMonitors`(`accept`: kotlin.Boolean)
303+
302304
fun `setAddressType`(`addressType`: AddressType)
303305

304306
fun `setAddressTypesToMonitor`(`addressTypesToMonitor`: List<AddressType>)

bindings/kotlin/ldk-node-jvm/lib/src/main/kotlin/org/lightningdevkit/ldknode/ldk_node.jvm.kt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ internal typealias UniffiVTableCallbackInterfaceVssHeaderProviderUniffiByValue =
15151515

15161516

15171517

1518+
1519+
15181520

15191521

15201522

@@ -1969,6 +1971,11 @@ internal interface UniffiLib : Library {
19691971
`headerProvider`: Pointer?,
19701972
uniffiCallStatus: UniffiRustCallStatus,
19711973
): Pointer?
1974+
fun uniffi_ldk_node_fn_method_builder_set_accept_stale_channel_monitors(
1975+
`ptr`: Pointer?,
1976+
`accept`: Byte,
1977+
uniffiCallStatus: UniffiRustCallStatus,
1978+
): Unit
19721979
fun uniffi_ldk_node_fn_method_builder_set_address_type(
19731980
`ptr`: Pointer?,
19741981
`addressType`: RustBufferByValue,
@@ -3121,6 +3128,8 @@ internal interface UniffiLib : Library {
31213128
): Short
31223129
fun uniffi_ldk_node_checksum_method_builder_build_with_vss_store_and_header_provider(
31233130
): Short
3131+
fun uniffi_ldk_node_checksum_method_builder_set_accept_stale_channel_monitors(
3132+
): Short
31243133
fun uniffi_ldk_node_checksum_method_builder_set_address_type(
31253134
): Short
31263135
fun uniffi_ldk_node_checksum_method_builder_set_address_types_to_monitor(
@@ -3612,6 +3621,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
36123621
if (lib.uniffi_ldk_node_checksum_method_builder_build_with_vss_store_and_header_provider() != 9090.toShort()) {
36133622
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
36143623
}
3624+
if (lib.uniffi_ldk_node_checksum_method_builder_set_accept_stale_channel_monitors() != 25727.toShort()) {
3625+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3626+
}
36153627
if (lib.uniffi_ldk_node_checksum_method_builder_set_address_type() != 647.toShort()) {
36163628
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
36173629
}
@@ -5769,6 +5781,18 @@ open class Builder: Disposable, BuilderInterface {
57695781
})
57705782
}
57715783

5784+
override fun `setAcceptStaleChannelMonitors`(`accept`: kotlin.Boolean) {
5785+
callWithPointer {
5786+
uniffiRustCall { uniffiRustCallStatus ->
5787+
UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_builder_set_accept_stale_channel_monitors(
5788+
it,
5789+
FfiConverterBoolean.lower(`accept`),
5790+
uniffiRustCallStatus,
5791+
)
5792+
}
5793+
}
5794+
}
5795+
57725796
override fun `setAddressType`(`addressType`: AddressType) {
57735797
callWithPointer {
57745798
uniffiRustCall { uniffiRustCallStatus ->

0 commit comments

Comments
 (0)