Skip to content

Commit b2aa511

Browse files
committed
chore: update bindings
- Updates bindings - Bumps version to 0.6.1-rc.4
1 parent 7809799 commit b2aa511

File tree

11 files changed

+29
-17
lines changed

11 files changed

+29
-17
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ldk-node"
3-
version = "0.6.1-rc.3"
3+
version = "0.6.1-rc.4"
44
authors = ["Elias Rohrer <[email protected]>"]
55
homepage = "https://lightningdevkit.org/"
66
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.6.1-rc.3"
7-
let checksum = "da5c2248d7b6c69b68626e89c9a44012b99232f8163e33bbd4292c9367cb06a2"
6+
let tag = "v0.6.1-rc.4"
7+
let checksum = "827824d292db54baf9c9ac5b2de2ed84f6c93e22a8fe64b838ca85bb0753d495"
88
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"
99

1010
let package = Package(

bindings/kotlin/ldk-node-android/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Publishing new version guide.
3131
- add dependency in `libs.versions.toml`:
3232
```toml
3333
# by tag
34-
ldk-node-android = { module = "com.github.synonymdev:ldk-node", version = "v0.6.1-rc.3"
34+
ldk-node-android = { module = "com.github.synonymdev:ldk-node", version = "v0.6.1-rc.4"
3535

3636
# or by branch
3737
ldk-node-android = { module = "com.github.synonymdev:ldk-node", version = "main-SNAPSHOT"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx1536m
22
android.useAndroidX=true
33
android.enableJetifier=true
44
kotlin.code.style=official
5-
libraryVersion=v0.6.1-rc.3
5+
libraryVersion=v0.6.1-rc.4
Binary file not shown.
Binary file not shown.
Binary file not shown.

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10270,7 +10270,8 @@ sealed class PaymentKind {
1027010270
val `hash`: PaymentHash,
1027110271
val `preimage`: PaymentPreimage?,
1027210272
val `secret`: PaymentSecret?,
10273-
val `description`: kotlin.String?) : PaymentKind() {
10273+
val `description`: kotlin.String?,
10274+
val `bolt11`: kotlin.String?) : PaymentKind() {
1027410275
companion object
1027510276
}
1027610277

@@ -10280,7 +10281,8 @@ sealed class PaymentKind {
1028010281
val `secret`: PaymentSecret?,
1028110282
val `counterpartySkimmedFeeMsat`: kotlin.ULong?,
1028210283
val `lspFeeLimits`: LspFeeLimits,
10283-
val `description`: kotlin.String?) : PaymentKind() {
10284+
val `description`: kotlin.String?,
10285+
val `bolt11`: kotlin.String?) : PaymentKind() {
1028410286
companion object
1028510287
}
1028610288

@@ -10326,6 +10328,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1032610328
FfiConverterOptionalTypePaymentPreimage.read(buf),
1032710329
FfiConverterOptionalTypePaymentSecret.read(buf),
1032810330
FfiConverterOptionalString.read(buf),
10331+
FfiConverterOptionalString.read(buf),
1032910332
)
1033010333
3 -> PaymentKind.Bolt11Jit(
1033110334
FfiConverterTypePaymentHash.read(buf),
@@ -10334,6 +10337,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1033410337
FfiConverterOptionalULong.read(buf),
1033510338
FfiConverterTypeLSPFeeLimits.read(buf),
1033610339
FfiConverterOptionalString.read(buf),
10340+
FfiConverterOptionalString.read(buf),
1033710341
)
1033810342
4 -> PaymentKind.Bolt12Offer(
1033910343
FfiConverterOptionalTypePaymentHash.read(buf),
@@ -10375,6 +10379,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1037510379
+ FfiConverterOptionalTypePaymentPreimage.allocationSize(value.`preimage`)
1037610380
+ FfiConverterOptionalTypePaymentSecret.allocationSize(value.`secret`)
1037710381
+ FfiConverterOptionalString.allocationSize(value.`description`)
10382+
+ FfiConverterOptionalString.allocationSize(value.`bolt11`)
1037810383
)
1037910384
}
1038010385
is PaymentKind.Bolt11Jit -> {
@@ -10387,6 +10392,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1038710392
+ FfiConverterOptionalULong.allocationSize(value.`counterpartySkimmedFeeMsat`)
1038810393
+ FfiConverterTypeLSPFeeLimits.allocationSize(value.`lspFeeLimits`)
1038910394
+ FfiConverterOptionalString.allocationSize(value.`description`)
10395+
+ FfiConverterOptionalString.allocationSize(value.`bolt11`)
1039010396
)
1039110397
}
1039210398
is PaymentKind.Bolt12Offer -> {
@@ -10436,6 +10442,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1043610442
FfiConverterOptionalTypePaymentPreimage.write(value.`preimage`, buf)
1043710443
FfiConverterOptionalTypePaymentSecret.write(value.`secret`, buf)
1043810444
FfiConverterOptionalString.write(value.`description`, buf)
10445+
FfiConverterOptionalString.write(value.`bolt11`, buf)
1043910446
Unit
1044010447
}
1044110448
is PaymentKind.Bolt11Jit -> {
@@ -10446,6 +10453,7 @@ public object FfiConverterTypePaymentKind : FfiConverterRustBuffer<PaymentKind>{
1044610453
FfiConverterOptionalULong.write(value.`counterpartySkimmedFeeMsat`, buf)
1044710454
FfiConverterTypeLSPFeeLimits.write(value.`lspFeeLimits`, buf)
1044810455
FfiConverterOptionalString.write(value.`description`, buf)
10456+
FfiConverterOptionalString.write(value.`bolt11`, buf)
1044910457
Unit
1045010458
}
1045110459
is PaymentKind.Bolt12Offer -> {

bindings/swift/Sources/LDKNode/LDKNode.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7330,9 +7330,9 @@ public enum PaymentKind {
73307330

73317331
case onchain(txid: Txid, status: ConfirmationStatus
73327332
)
7333-
case bolt11(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, description: String?
7333+
case bolt11(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, description: String?, bolt11: String?
73347334
)
7335-
case bolt11Jit(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, counterpartySkimmedFeeMsat: UInt64?, lspFeeLimits: LspFeeLimits, description: String?
7335+
case bolt11Jit(hash: PaymentHash, preimage: PaymentPreimage?, secret: PaymentSecret?, counterpartySkimmedFeeMsat: UInt64?, lspFeeLimits: LspFeeLimits, description: String?, bolt11: String?
73367336
)
73377337
case bolt12Offer(hash: PaymentHash?, preimage: PaymentPreimage?, secret: PaymentSecret?, offerId: OfferId, payerNote: UntrustedString?, quantity: UInt64?
73387338
)
@@ -7353,10 +7353,10 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
73537353
case 1: return .onchain(txid: try FfiConverterTypeTxid.read(from: &buf), status: try FfiConverterTypeConfirmationStatus.read(from: &buf)
73547354
)
73557355

7356-
case 2: return .bolt11(hash: try FfiConverterTypePaymentHash.read(from: &buf), preimage: try FfiConverterOptionTypePaymentPreimage.read(from: &buf), secret: try FfiConverterOptionTypePaymentSecret.read(from: &buf), description: try FfiConverterOptionString.read(from: &buf)
7356+
case 2: return .bolt11(hash: try FfiConverterTypePaymentHash.read(from: &buf), preimage: try FfiConverterOptionTypePaymentPreimage.read(from: &buf), secret: try FfiConverterOptionTypePaymentSecret.read(from: &buf), description: try FfiConverterOptionString.read(from: &buf), bolt11: try FfiConverterOptionString.read(from: &buf)
73577357
)
73587358

7359-
case 3: return .bolt11Jit(hash: try FfiConverterTypePaymentHash.read(from: &buf), preimage: try FfiConverterOptionTypePaymentPreimage.read(from: &buf), secret: try FfiConverterOptionTypePaymentSecret.read(from: &buf), counterpartySkimmedFeeMsat: try FfiConverterOptionUInt64.read(from: &buf), lspFeeLimits: try FfiConverterTypeLSPFeeLimits.read(from: &buf), description: try FfiConverterOptionString.read(from: &buf)
7359+
case 3: return .bolt11Jit(hash: try FfiConverterTypePaymentHash.read(from: &buf), preimage: try FfiConverterOptionTypePaymentPreimage.read(from: &buf), secret: try FfiConverterOptionTypePaymentSecret.read(from: &buf), counterpartySkimmedFeeMsat: try FfiConverterOptionUInt64.read(from: &buf), lspFeeLimits: try FfiConverterTypeLSPFeeLimits.read(from: &buf), description: try FfiConverterOptionString.read(from: &buf), bolt11: try FfiConverterOptionString.read(from: &buf)
73607360
)
73617361

73627362
case 4: return .bolt12Offer(hash: try FfiConverterOptionTypePaymentHash.read(from: &buf), preimage: try FfiConverterOptionTypePaymentPreimage.read(from: &buf), secret: try FfiConverterOptionTypePaymentSecret.read(from: &buf), offerId: try FfiConverterTypeOfferId.read(from: &buf), payerNote: try FfiConverterOptionTypeUntrustedString.read(from: &buf), quantity: try FfiConverterOptionUInt64.read(from: &buf)
@@ -7382,22 +7382,24 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
73827382
FfiConverterTypeConfirmationStatus.write(status, into: &buf)
73837383

73847384

7385-
case let .bolt11(hash,preimage,secret,description):
7385+
case let .bolt11(hash,preimage,secret,description,bolt11):
73867386
writeInt(&buf, Int32(2))
73877387
FfiConverterTypePaymentHash.write(hash, into: &buf)
73887388
FfiConverterOptionTypePaymentPreimage.write(preimage, into: &buf)
73897389
FfiConverterOptionTypePaymentSecret.write(secret, into: &buf)
73907390
FfiConverterOptionString.write(description, into: &buf)
7391+
FfiConverterOptionString.write(bolt11, into: &buf)
73917392

73927393

7393-
case let .bolt11Jit(hash,preimage,secret,counterpartySkimmedFeeMsat,lspFeeLimits,description):
7394+
case let .bolt11Jit(hash,preimage,secret,counterpartySkimmedFeeMsat,lspFeeLimits,description,bolt11):
73947395
writeInt(&buf, Int32(3))
73957396
FfiConverterTypePaymentHash.write(hash, into: &buf)
73967397
FfiConverterOptionTypePaymentPreimage.write(preimage, into: &buf)
73977398
FfiConverterOptionTypePaymentSecret.write(secret, into: &buf)
73987399
FfiConverterOptionUInt64.write(counterpartySkimmedFeeMsat, into: &buf)
73997400
FfiConverterTypeLSPFeeLimits.write(lspFeeLimits, into: &buf)
74007401
FfiConverterOptionString.write(description, into: &buf)
7402+
FfiConverterOptionString.write(bolt11, into: &buf)
74017403

74027404

74037405
case let .bolt12Offer(hash,preimage,secret,offerId,payerNote,quantity):

src/payment/onchain.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ impl OnchainPayment {
211211
///
212212
/// [`BalanceDetails::total_anchor_channels_reserve_sats`]: crate::BalanceDetails::total_anchor_channels_reserve_sats
213213
pub fn send_to_address(
214-
&self, address: &bitcoin::Address, amount_sats: u64, fee_rate: Option<FeeRate>,
214+
&self, address: &bitcoin::Address,
215+
amount_sats: u64,
216+
fee_rate: Option<FeeRate>,
215217
utxos_to_spend: Option<Vec<SpendableUtxo>>,
216218
) -> Result<Txid, Error> {
217219
let rt_lock = self.runtime.read().unwrap();

0 commit comments

Comments
 (0)